Class TypeRobotImpl

  • All Implemented Interfaces:
    TypeRobot

    public class TypeRobotImpl
    extends java.lang.Object
    implements TypeRobot
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private java.util.List<javafx.scene.input.KeyCode> filterKeyCodes​(javafx.scene.input.KeyCodeCombination keyCombination)  
      void push​(javafx.scene.input.KeyCode... combination)
      Pushes a given key combination.
      void push​(javafx.scene.input.KeyCodeCombination combination)
      Pushes a given key combination.
      private void pushKeyCode​(javafx.scene.input.KeyCode keyCode)  
      private void pushKeyCodeCombination​(javafx.scene.input.KeyCode... keyCodeCombination)  
      private void pushKeyCodeCombination​(javafx.scene.input.KeyCodeCombination keyCodeCombination)  
      void type​(javafx.scene.input.KeyCode... keys)
      Types given keys one after the other.
      void type​(javafx.scene.input.KeyCode key, int times)
      Types a given key multiple times.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SLEEP_AFTER_KEY_CODE_IN_MILLIS

        private static final long SLEEP_AFTER_KEY_CODE_IN_MILLIS
        See Also:
        Constant Field Values
    • Method Detail

      • push

        public void push​(javafx.scene.input.KeyCode... combination)
        Description copied from interface: TypeRobot
        Pushes a given key combination.
        Specified by:
        push in interface TypeRobot
        Parameters:
        combination - the combination to push
      • push

        public void push​(javafx.scene.input.KeyCodeCombination combination)
        Description copied from interface: TypeRobot
        Pushes a given key combination.
        Specified by:
        push in interface TypeRobot
        Parameters:
        combination - the combination to push
      • type

        public void type​(javafx.scene.input.KeyCode... keys)
        Description copied from interface: TypeRobot
        Types given keys one after the other.
        Specified by:
        type in interface TypeRobot
        Parameters:
        keys - the key codes to type
      • type

        public void type​(javafx.scene.input.KeyCode key,
                         int times)
        Description copied from interface: TypeRobot
        Types a given key multiple times.
        Specified by:
        type in interface TypeRobot
        Parameters:
        key - the key code to type times times
        times - number of times to type the keyCode
      • pushKeyCode

        private void pushKeyCode​(javafx.scene.input.KeyCode keyCode)
      • pushKeyCodeCombination

        private void pushKeyCodeCombination​(javafx.scene.input.KeyCode... keyCodeCombination)
      • pushKeyCodeCombination

        private void pushKeyCodeCombination​(javafx.scene.input.KeyCodeCombination keyCodeCombination)
      • filterKeyCodes

        private java.util.List<javafx.scene.input.KeyCode> filterKeyCodes​(javafx.scene.input.KeyCodeCombination keyCombination)