Package org.testfx.robot.impl
Class TypeRobotImpl
- java.lang.Object
-
- org.testfx.robot.impl.TypeRobotImpl
-
-
Field Summary
Fields Modifier and Type Field Description private KeyboardRobotkeyboardRobotprivate static longSLEEP_AFTER_KEY_CODE_IN_MILLISprivate SleepRobotsleepRobot
-
Constructor Summary
Constructors Constructor Description TypeRobotImpl(KeyboardRobot keyboardRobot, SleepRobot sleepRobot)
-
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)voidpush(javafx.scene.input.KeyCode... combination)Pushes a given key combination.voidpush(javafx.scene.input.KeyCodeCombination combination)Pushes a given key combination.private voidpushKeyCode(javafx.scene.input.KeyCode keyCode)private voidpushKeyCodeCombination(javafx.scene.input.KeyCode... keyCodeCombination)private voidpushKeyCodeCombination(javafx.scene.input.KeyCodeCombination keyCodeCombination)voidtype(javafx.scene.input.KeyCode... keys)Types given keys one after the other.voidtype(javafx.scene.input.KeyCode key, int times)Types a given key multiple times.
-
-
-
Field Detail
-
SLEEP_AFTER_KEY_CODE_IN_MILLIS
private static final long SLEEP_AFTER_KEY_CODE_IN_MILLIS
- See Also:
- Constant Field Values
-
keyboardRobot
private final KeyboardRobot keyboardRobot
-
sleepRobot
private final SleepRobot sleepRobot
-
-
Constructor Detail
-
TypeRobotImpl
public TypeRobotImpl(KeyboardRobot keyboardRobot, SleepRobot sleepRobot)
-
-
Method Detail
-
push
public void push(javafx.scene.input.KeyCode... combination)
Description copied from interface:TypeRobotPushes a given key combination.
-
push
public void push(javafx.scene.input.KeyCodeCombination combination)
Description copied from interface:TypeRobotPushes a given key combination.
-
type
public void type(javafx.scene.input.KeyCode... keys)
Description copied from interface:TypeRobotTypes given keys one after the other.
-
type
public void type(javafx.scene.input.KeyCode key, int times)Description copied from interface:TypeRobotTypes a given key multiple times.
-
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)
-
-