Class WriteRobotImpl

  • All Implemented Interfaces:
    WriteRobot

    public class WriteRobotImpl
    extends java.lang.Object
    implements WriteRobot
    • Field Detail

      • SLEEP_AFTER_CHARACTER_IN_MILLIS

        private static final int SLEEP_AFTER_CHARACTER_IN_MILLIS
      • baseRobot

        private final BaseRobot baseRobot
    • Method Detail

      • write

        public void write​(char character)
        Description copied from interface: WriteRobot
        Writes a given text character.
        Specified by:
        write in interface WriteRobot
        Parameters:
        character - the text character to write
      • write

        public void write​(java.lang.String text)
        Description copied from interface: WriteRobot
        Writes the given text characters one after the other.
        Specified by:
        write in interface WriteRobot
        Parameters:
        text - the text characters to write
      • write

        public void write​(java.lang.String text,
                          int sleepMillis)
        Description copied from interface: WriteRobot
        Writes the given text characters one after the other, sleeping for sleepMillis milliseconds after each typed character.
        Specified by:
        write in interface WriteRobot
        Parameters:
        text - the text characters to write
        sleepMillis - the milliseconds to sleep for after each character
      • fetchTargetWindow

        private javafx.stage.Window fetchTargetWindow()
      • typeCharacterInScene

        private void typeCharacterInScene​(char character,
                                          javafx.scene.Scene scene)
      • determineKeyCode

        private javafx.scene.input.KeyCode determineKeyCode​(char character)