Package | Description |
---|---|
com.sun.javafx.embed | |
com.sun.javafx.robot.impl | |
com.sun.javafx.scene | |
com.sun.javafx.scene.control.behavior | |
com.sun.javafx.scene.control.skin | |
com.sun.javafx.tk | |
com.sun.javafx.tk.quantum | |
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 |
---|---|
static EventType<KeyEvent> |
AbstractEvents.keyIDToFXEventType(int embedKeyID) |
Modifier and Type | Method and Description |
---|---|
abstract KeyEvent |
FXRobotHelper.FXRobotInputAccessor.createKeyEvent(EventType<? extends KeyEvent> eventType,
KeyCode keyCode,
String keyChar,
String keyText,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown) |
Modifier and Type | Method and Description |
---|---|
abstract void |
FXRobotHelper.FXRobotSceneAccessor.processKeyEvent(Scene scene,
KeyEvent keyEvent) |
Modifier and Type | Method and Description |
---|---|
abstract KeyEvent |
FXRobotHelper.FXRobotInputAccessor.createKeyEvent(EventType<? extends KeyEvent> eventType,
KeyCode keyCode,
String keyChar,
String keyText,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown) |
Modifier and Type | Method and Description |
---|---|
EventHandler<? super KeyEvent> |
EventHandlerProperties.getOnKeyPressed() |
EventHandler<? super KeyEvent> |
EventHandlerProperties.getOnKeyReleased() |
EventHandler<? super KeyEvent> |
EventHandlerProperties.getOnKeyTyped() |
ObjectProperty<EventHandler<? super KeyEvent>> |
EventHandlerProperties.onKeyPressedProperty() |
ObjectProperty<EventHandler<? super KeyEvent>> |
EventHandlerProperties.onKeyReleasedProperty() |
ObjectProperty<EventHandler<? super KeyEvent>> |
EventHandlerProperties.onKeyTypedProperty() |
Modifier and Type | Method and Description |
---|---|
EventType<KeyEvent> |
KeyBinding.getType() |
Modifier and Type | Method and Description |
---|---|
protected void |
TreeViewBehavior.callActionForEvent(KeyEvent e) |
protected void |
TextInputControlBehavior.callActionForEvent(KeyEvent e)
Records the last KeyEvent we saw.
|
protected void |
TableViewBehaviorBase.callActionForEvent(KeyEvent e) |
protected void |
ListViewBehavior.callActionForEvent(KeyEvent e) |
protected void |
ComboBoxBaseBehavior.callActionForEvent(KeyEvent e) |
protected void |
BehaviorBase.callActionForEvent(KeyEvent e)
Invokes the appropriate action for this key event.
|
protected void |
TextInputControlBehavior.cancelEdit(KeyEvent event) |
protected void |
TextFieldBehavior.cancelEdit(KeyEvent event) |
protected void |
ComboBoxBaseBehavior.cancelEdit(KeyEvent event) |
protected void |
TextInputControlBehavior.fire(KeyEvent event) |
protected void |
TextFieldBehavior.fire(KeyEvent event) |
protected void |
TextInputControlBehavior.forwardToParent(KeyEvent event) |
protected void |
ComboBoxBaseBehavior.forwardToParent(KeyEvent event) |
int |
OrientedKeyBinding.getSpecificity(Control control,
KeyEvent event) |
int |
KeyBinding.getSpecificity(Control control,
KeyEvent event) |
boolean |
TextBinding.MnemonicKeyCombination.match(KeyEvent event)
Tests whether this key combination matches the key combination in the
given
KeyEvent . |
protected String |
TreeViewBehavior.matchActionForEvent(KeyEvent e) |
protected String |
TreeTableViewBehavior.matchActionForEvent(KeyEvent e) |
protected String |
SliderBehavior.matchActionForEvent(KeyEvent e) |
protected String |
ScrollPaneBehavior.matchActionForEvent(KeyEvent e) |
protected String |
ScrollBarBehavior.matchActionForEvent(KeyEvent e) |
protected String |
PaginationBehavior.matchActionForEvent(KeyEvent e) |
protected String |
ListViewBehavior.matchActionForEvent(KeyEvent e) |
protected String |
BehaviorBase.matchActionForEvent(KeyEvent e)
Given a key event, this method will find the matching action name, or null if there
is not one.
|
Constructor and Description |
---|
KeyBinding(KeyCode code,
EventType<KeyEvent> type,
String action) |
OrientedKeyBinding(KeyCode code,
EventType<KeyEvent> type,
String action) |
ScrollBarKeyBinding(KeyCode code,
EventType<KeyEvent> type,
String action) |
SliderKeyBinding(KeyCode code,
EventType<KeyEvent> type,
String action) |
Modifier and Type | Method and Description |
---|---|
EventHandler<KeyEvent> |
FXVK.getOnAction() |
ObjectProperty<EventHandler<KeyEvent>> |
FXVK.onActionProperty() |
Modifier and Type | Method and Description |
---|---|
void |
FXVK.setOnAction(EventHandler<KeyEvent> value) |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
Toolkit.isBackwardTraversalKey(KeyEvent e) |
boolean |
DummyToolkit.isBackwardTraversalKey(KeyEvent e) |
abstract boolean |
Toolkit.isForwardTraversalKey(KeyEvent e) |
boolean |
DummyToolkit.isForwardTraversalKey(KeyEvent e) |
void |
TKSceneListener.keyEvent(KeyEvent keyEvent)
Pass a key event to the scene to handle
|
Modifier and Type | Method and Description |
---|---|
boolean |
QuantumToolkit.isBackwardTraversalKey(KeyEvent e) |
boolean |
QuantumToolkit.isForwardTraversalKey(KeyEvent e) |
Modifier and Type | Method and Description |
---|---|
EventHandler<? super KeyEvent> |
Scene.getOnKeyPressed() |
EventHandler<? super KeyEvent> |
Node.getOnKeyPressed() |
EventHandler<? super KeyEvent> |
Scene.getOnKeyReleased() |
EventHandler<? super KeyEvent> |
Node.getOnKeyReleased() |
EventHandler<? super KeyEvent> |
Scene.getOnKeyTyped() |
EventHandler<? super KeyEvent> |
Node.getOnKeyTyped() |
ObjectProperty<EventHandler<? super KeyEvent>> |
Scene.onKeyPressedProperty() |
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.onKeyReleasedProperty() |
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.onKeyTypedProperty() |
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. |
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 |
---|---|
B |
SceneBuilder.onKeyPressed(EventHandler<? super KeyEvent> x)
Deprecated.
Set the value of the
onKeyPressed property for the instance constructed by this builder. |
B |
NodeBuilder.onKeyPressed(EventHandler<? super KeyEvent> x)
Deprecated.
Set the value of the
onKeyPressed property for the instance constructed by this builder. |
B |
SceneBuilder.onKeyReleased(EventHandler<? super KeyEvent> x)
Deprecated.
Set the value of the
onKeyReleased property for the instance constructed by this builder. |
B |
NodeBuilder.onKeyReleased(EventHandler<? super KeyEvent> x)
Deprecated.
Set the value of the
onKeyReleased property for the instance constructed by this builder. |
B |
SceneBuilder.onKeyTyped(EventHandler<? super KeyEvent> x)
Deprecated.
Set the value of the
onKeyTyped property for the instance constructed by this builder. |
B |
NodeBuilder.onKeyTyped(EventHandler<? super KeyEvent> x)
Deprecated.
Set the value of the
onKeyTyped property for the instance constructed by this builder. |
void |
Scene.setOnKeyPressed(EventHandler<? super KeyEvent> value) |
void |
Node.setOnKeyPressed(EventHandler<? super KeyEvent> value) |
void |
Scene.setOnKeyReleased(EventHandler<? super KeyEvent> value) |
void |
Node.setOnKeyReleased(EventHandler<? super KeyEvent> value) |
void |
Scene.setOnKeyTyped(EventHandler<? super KeyEvent> value) |
void |
Node.setOnKeyTyped(EventHandler<? super KeyEvent> value) |
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 |
KeyCombination.match(KeyEvent event)
Tests whether this key combination matches the combination in the given
KeyEvent . |
boolean |
KeyCodeCombination.match(KeyEvent event)
Tests whether this key combination matches the key combination in the
given
KeyEvent . |
boolean |
KeyCharacterCombination.match(KeyEvent event)
Tests whether this key combination matches the key 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.
|
Copyright © 2020. All rights reserved.