Class TypeRobotImpl
java.lang.Object
org.testfx.robot.impl.TypeRobotImpl
- All Implemented Interfaces:
TypeRobot
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KeyboardRobotprivate static final longprivate final SleepRobot -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate 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 Details
-
SLEEP_AFTER_KEY_CODE_IN_MILLIS
private static final long SLEEP_AFTER_KEY_CODE_IN_MILLIS- See Also:
-
keyboardRobot
-
sleepRobot
-
-
Constructor Details
-
TypeRobotImpl
-
-
Method Details
-
push
-
push
-
type
-
type
-
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 List<javafx.scene.input.KeyCode> filterKeyCodes(javafx.scene.input.KeyCodeCombination keyCombination)
-