Ejemplo n.º 1
0
 /**
  * A constructor that should only be used when the keyboard or mouse were extended to provide
  * additional functionality (for example, dragging-and-dropping from the desktop).
  *
  * @param keyboard the {@link Keyboard} implementation to delegate to.
  * @param mouse the {@link Mouse} implementation to delegate to.
  */
 public Actions(Keyboard keyboard, Mouse mouse) {
   this.mouse = mouse;
   this.keyboard = keyboard;
   resetCompositeAction();
 }
Ejemplo n.º 2
0
 /**
  * Only used by the TouchActions class.
  *
  * @param keyboard implementation to delegate to.
  */
 public Actions(Keyboard keyboard) {
   this.keyboard = keyboard;
   resetCompositeAction();
 }
Ejemplo n.º 3
0
 /**
  * Generates a composite action containing all actions so far, ready to be performed (and resets
  * the internal builder state, so subsequent calls to build() will contain fresh sequences).
  *
  * @return the composite action
  */
 public Action build() {
   CompositeAction toReturn = action;
   resetCompositeAction();
   return toReturn;
 }