public class KeyboardImpl extends Object implements Keyboard
Keyboard.KeyboardButton, Keyboard.KeyboardButtons, Keyboard.KeyboardModifier, Keyboard.KeyboardModifiers| Constructor and Description |
|---|
KeyboardImpl(Wrap<?> target) |
| Modifier and Type | Method and Description |
|---|---|
Keyboard |
detached() |
Environment |
getEnvironment() |
void |
pressKey(Keyboard.KeyboardButton kbdButton) |
void |
pressKey(Keyboard.KeyboardButton kbdButton,
Modifier... modifiers)
Press the keyboard key specified by kbdButton preceding with
pressing of modifier buttons specified by modifiers
|
void |
pushKey(Keyboard.KeyboardButton kbdButton) |
void |
pushKey(Keyboard.KeyboardButton kbdButton,
Modifier... modifiers) |
void |
pushKey(Keyboard.KeyboardButton kbdButton,
Modifier[] modifiers,
Timeout pushTime) |
void |
pushKey(Timeout pushTime,
Keyboard.KeyboardButton key,
Modifier... modifiers) |
void |
releaseKey(Keyboard.KeyboardButton kbdButton) |
void |
releaseKey(Keyboard.KeyboardButton kbdButton,
Modifier... modifiers)
Release the keyboard key specified by kbdButton and then release
all the modifier keys specified by modifiers
|
void |
typeChar(char keyChar) |
void |
typeChar(char keyChar,
Timeout pushTime) |
public KeyboardImpl(Wrap<?> target)
public Environment getEnvironment()
public void pushKey(Keyboard.KeyboardButton kbdButton, Modifier[] modifiers, Timeout pushTime)
public void typeChar(char keyChar,
Timeout pushTime)
public void pressKey(Keyboard.KeyboardButton kbdButton, Modifier... modifiers)
pressKey in interface KeyboardkbdButton - one of InputEvent.VK_* constantsmodifiers - combination of InputEvent.*_DOWN_MASK constantsInputEventpublic void releaseKey(Keyboard.KeyboardButton kbdButton, Modifier... modifiers)
releaseKey in interface KeyboardkbdButton - one of InputEvent.VK_* constantsmodifiers - combination of InputEvent.*_DOWN_MASK constantsInputEventpublic void pressKey(Keyboard.KeyboardButton kbdButton)
public void releaseKey(Keyboard.KeyboardButton kbdButton)
releaseKey in interface Keyboardpublic void pushKey(Keyboard.KeyboardButton kbdButton, Modifier... modifiers)
public void pushKey(Keyboard.KeyboardButton kbdButton)
public void pushKey(Timeout pushTime, Keyboard.KeyboardButton key, Modifier... modifiers)
Copyright © 2018. All rights reserved.