Package | Description |
---|---|
javafx.scene |
Provides the core set of base
classes for the JavaFX Scene Graph API.
|
javafx.scene.input |
Provides the set of classes for mouse and keyboard input event handling.
|
Modifier and Type | Method and Description |
---|---|
EventHandler<? super KeyEvent> |
Node.getOnKeyPressed()
Gets the value of the property onKeyPressed.
|
EventHandler<? super KeyEvent> |
Scene.getOnKeyPressed()
Gets the value of the property onKeyPressed.
|
EventHandler<? super KeyEvent> |
Node.getOnKeyReleased()
Gets the value of the property onKeyReleased.
|
EventHandler<? super KeyEvent> |
Scene.getOnKeyReleased()
Gets the value of the property onKeyReleased.
|
EventHandler<? super KeyEvent> |
Node.getOnKeyTyped()
Gets the value of the property onKeyTyped.
|
EventHandler<? super KeyEvent> |
Scene.getOnKeyTyped()
Gets the value of the property onKeyTyped.
|
ObjectProperty<EventHandler<? super KeyEvent>> |
Node.onKeyPressedProperty()
Defines a function to be called when this
Node or its child
Node has input focus and a key has been pressed. |
ObjectProperty<EventHandler<? super KeyEvent>> |
Scene.onKeyPressedProperty()
Defines a function to be called when some
Node of this
Scene has input focus and a key has been pressed. |
ObjectProperty<EventHandler<? super KeyEvent>> |
Node.onKeyReleasedProperty()
Defines a function to be called when this
Node or its child
Node has input focus and a key has been released. |
ObjectProperty<EventHandler<? super KeyEvent>> |
Scene.onKeyReleasedProperty()
Defines a function to be called when some
Node of this
Scene has input focus and a key has been released. |
ObjectProperty<EventHandler<? super KeyEvent>> |
Node.onKeyTypedProperty()
Defines a function to be called when this
Node or its child
Node has input focus and a key has been typed. |
ObjectProperty<EventHandler<? super KeyEvent>> |
Scene.onKeyTypedProperty()
Defines a function to be called when some
Node of this
Scene has input focus and a key has been typed. |
Modifier and Type | Method and Description |
---|---|
void |
Scene.impl_processKeyEvent(KeyEvent e)
Deprecated.
This is an internal API that is not intended for use and will be removed in the next version
|
Modifier and Type | Method and Description |
---|---|
void |
Node.setOnKeyPressed(EventHandler<? super KeyEvent> value)
Sets the value of the property onKeyPressed.
|
void |
Scene.setOnKeyPressed(EventHandler<? super KeyEvent> value)
Sets the value of the property onKeyPressed.
|
void |
Node.setOnKeyReleased(EventHandler<? super KeyEvent> value)
Sets the value of the property onKeyReleased.
|
void |
Scene.setOnKeyReleased(EventHandler<? super KeyEvent> value)
Sets the value of the property onKeyReleased.
|
void |
Node.setOnKeyTyped(EventHandler<? super KeyEvent> value)
Sets the value of the property onKeyTyped.
|
void |
Scene.setOnKeyTyped(EventHandler<? super KeyEvent> value)
Sets the value of the property onKeyTyped.
|
Modifier and Type | Field and Description |
---|---|
static EventType<KeyEvent> |
KeyEvent.ANY
Common supertype for all key event types.
|
static EventType<KeyEvent> |
KeyEvent.KEY_PRESSED
This event occurs when a key has been pressed.
|
static EventType<KeyEvent> |
KeyEvent.KEY_RELEASED
This event occurs when a key has been released.
|
static EventType<KeyEvent> |
KeyEvent.KEY_TYPED
This event occurs when a character-generating key was typed
(pressed and released).
|
Modifier and Type | Method and Description |
---|---|
KeyEvent |
KeyEvent.copyFor(Object newSource,
EventTarget newTarget) |
KeyEvent |
KeyEvent.copyFor(Object source,
EventTarget target,
EventType<KeyEvent> type)
Creates a copy of the given event with the given fields substituted.
|
Modifier and Type | Method and Description |
---|---|
EventType<KeyEvent> |
KeyEvent.getEventType() |
Modifier and Type | Method and Description |
---|---|
boolean |
KeyCharacterCombination.match(KeyEvent event)
Tests whether this key combination matches the key combination in the
given
KeyEvent . |
boolean |
KeyCodeCombination.match(KeyEvent event)
Tests whether this key combination matches the key combination in the
given
KeyEvent . |
boolean |
KeyCombination.match(KeyEvent event)
Tests whether this key combination matches the combination in the given
KeyEvent . |
Modifier and Type | Method and Description |
---|---|
KeyEvent |
KeyEvent.copyFor(Object source,
EventTarget target,
EventType<KeyEvent> type)
Creates a copy of the given event with the given fields substituted.
|
Constructor and Description |
---|
KeyEvent(EventType<KeyEvent> eventType,
String character,
String text,
KeyCode code,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown)
Constructs new KeyEvent event with null source and target and KeyCode object directly specified.
|
KeyEvent(Object source,
EventTarget target,
EventType<KeyEvent> eventType,
String character,
String text,
KeyCode code,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown)
Constructs new KeyEvent event with null source and target and KeyCode object directly specified.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.