java.lang.Object
is.codion.plugin.swing.robot.KeyController
Keyboard controller with high-level operations, based on
Robot
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delay
(int milliseconds) static KeyController
static KeyController
keyController
(GraphicsDevice device) void
Processes the given keystroke.void
Processes the given keystroke.void
Processes the given keystroke.void
Processes the given keystroke.static void
run
(Consumer<KeyController> controller) static void
run
(Consumer<KeyController> controller, GraphicsDevice device) void
setAutoDelay
(int autoDelay) void
Types the given text.void
Types the given text.
-
Method Details
-
setAutoDelay
public void setAutoDelay(int autoDelay) - Parameters:
autoDelay
- the robot auto delay- See Also:
-
type
Types the given text.- Parameters:
text
- the text to type
-
type
Types the given text.- Parameters:
text
- the text to typedescription
- the description
-
keyStroke
Processes the given keystroke.- Parameters:
keyStroke
- the AWT formatted keystroke
-
keyStroke
Processes the given keystroke.- Parameters:
keyStroke
- the keystroke
-
keyStroke
Processes the given keystroke.- Parameters:
keyStroke
- the keystrokedescription
- the description
-
keyStroke
Processes the given keystroke.- Parameters:
keyStroke
- the keystrokedescription
- the description
-
delay
public void delay(int milliseconds) -
keyController
- Returns:
- a
KeyController
for the default screen device
-
keyController
- Parameters:
device
- the screen device- Returns:
- a
KeyController
for the given screen device
-
run
- Parameters:
controller
- the controller to use
-
run
- Parameters:
controller
- the controller to usedevice
- the screen device
-