Modifier and Type | Interface and Description |
---|---|
static class |
KeyPressed.Builder
A builder of
KeyPressed . |
Modifier and Type | Method and Description |
---|---|
default char |
keyChar()
Returns the character corresponding to the pressed key.
|
default KeyCode |
keyCode()
Returns the code of the key.
|
default KeyModifiers |
keyModifiers()
Returns the keyboard modifiers applied.
|
static KeyPressed.Builder |
newBuilder(KeyCode keyCode)
Creates a new
KeyPressed builder with the given required parameters. |
static KeyPressed.Builder newBuilder(KeyCode keyCode)
KeyPressed
builder with the given required parameters.keyCode
- the code of the keyKeyPressed.Builder
instancedefault KeyCode keyCode()
KeyEvent
default KeyModifiers keyModifiers()
KeyEvent
keyModifiers
in interface KeyEvent
default char keyChar()