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.embed.swing |
Provides the set of classes to use JavaFX inside Swing applications.
|
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.
|
javafx.scene.web |
This package provides means for loading and displaying Web content.
|
javafx.stage |
Provides the top-level container classes for JavaFX content.
|
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,
java.lang.String keyChar,
java.lang.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,
java.lang.String keyChar,
java.lang.String keyText,
boolean shiftDown,
boolean controlDown,
boolean altDown,
boolean metaDown) |
private void |
BaseFXRobot.doKeyEvent(EventType<KeyEvent> eventType,
KeyCode keyCode,
java.lang.String character) |
Modifier and Type | Field and Description |
---|---|
private EventHandlerProperties.EventHandlerProperty<KeyEvent> |
EventHandlerProperties.onKeyPressed |
private EventHandlerProperties.EventHandlerProperty<KeyEvent> |
EventHandlerProperties.onKeyReleased |
private EventHandlerProperties.EventHandlerProperty<KeyEvent> |
EventHandlerProperties.onKeyTyped |
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 |
---|---|
private void |
KeyboardShortcutsHandler.processAccelerators(KeyEvent event) |
private void |
KeyboardShortcutsHandler.processMnemonics(KeyEvent event) |
Modifier and Type | Field and Description |
---|---|
private KeyEvent |
ComboBoxBaseBehavior.lastEvent
Used to keep track of the most recent key event.
|
private KeyEvent |
TextInputControlBehavior.lastEvent
Used to keep track of the most recent key event.
|
Modifier and Type | Field and Description |
---|---|
private EventType<KeyEvent> |
KeyBinding.eventType |
private EventHandler<KeyEvent> |
BehaviorBase.keyEventListener
Listens to any key events on the Control and responds to them
|
private EventHandler<KeyEvent> |
TwoLevelFocusBehavior.keyEventListener |
private EventHandler<KeyEvent> |
TwoLevelFocusComboBehavior.keyEventListener |
private EventHandler<KeyEvent> |
TwoLevelFocusListBehavior.keyEventListener |
private EventHandler<KeyEvent> |
TwoLevelFocusPopupBehavior.keyEventListener |
Modifier and Type | Method and Description |
---|---|
EventType<KeyEvent> |
KeyBinding.getType() |
Modifier and Type | Method and Description |
---|---|
protected void |
BehaviorBase.callActionForEvent(KeyEvent e)
Invokes the appropriate action for this key event.
|
protected void |
ComboBoxBaseBehavior.callActionForEvent(KeyEvent e) |
protected void |
ListViewBehavior.callActionForEvent(KeyEvent e) |
protected void |
TableViewBehaviorBase.callActionForEvent(KeyEvent e) |
protected void |
TextInputControlBehavior.callActionForEvent(KeyEvent e)
Records the last KeyEvent we saw.
|
protected void |
TreeViewBehavior.callActionForEvent(KeyEvent e) |
protected void |
ComboBoxBaseBehavior.cancelEdit(KeyEvent event) |
protected void |
TextFieldBehavior.cancelEdit(KeyEvent event) |
protected void |
TextInputControlBehavior.cancelEdit(KeyEvent event) |
private void |
TextInputControlBehavior.defaultKeyTyped(KeyEvent event)
The default handler for a key typed event, which is called when none of
the other key bindings match.
|
protected void |
TextFieldBehavior.fire(KeyEvent event) |
protected void |
TextInputControlBehavior.fire(KeyEvent event) |
protected void |
ComboBoxBaseBehavior.forwardToParent(KeyEvent event) |
protected void |
TextInputControlBehavior.forwardToParent(KeyEvent event) |
int |
KeyBinding.getSpecificity(Control control,
KeyEvent event) |
int |
OrientedKeyBinding.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 java.lang.String |
BehaviorBase.matchActionForEvent(KeyEvent e)
Given a key event, this method will find the matching action name, or null if there
is not one.
|
protected java.lang.String |
ListViewBehavior.matchActionForEvent(KeyEvent e) |
protected java.lang.String |
PaginationBehavior.matchActionForEvent(KeyEvent e) |
protected java.lang.String |
ScrollBarBehavior.matchActionForEvent(KeyEvent e) |
protected java.lang.String |
ScrollPaneBehavior.matchActionForEvent(KeyEvent e) |
protected java.lang.String |
SliderBehavior.matchActionForEvent(KeyEvent e) |
protected java.lang.String |
TreeTableViewBehavior.matchActionForEvent(KeyEvent e) |
protected java.lang.String |
TreeViewBehavior.matchActionForEvent(KeyEvent e) |
Constructor and Description |
---|
KeyBinding(KeyCode code,
EventType<KeyEvent> type,
java.lang.String action) |
ListViewKeyBinding(KeyCode code,
EventType<KeyEvent> type,
java.lang.String action) |
OrientedKeyBinding(KeyCode code,
EventType<KeyEvent> type,
java.lang.String action) |
ScrollBarKeyBinding(KeyCode code,
EventType<KeyEvent> type,
java.lang.String action) |
SliderKeyBinding(KeyCode code,
EventType<KeyEvent> type,
java.lang.String action) |
Modifier and Type | Field and Description |
---|---|
private EventHandler<KeyEvent> |
MenuBarSkin.keyEventHandler |
private EventHandler<KeyEvent> |
CustomColorDialog.keyEventListener |
private EventHandler<KeyEvent> |
ContextMenuSkin.keyListener |
private ObjectProperty<EventHandler<KeyEvent>> |
FXVK.onAction |
private WeakEventHandler<KeyEvent> |
MenuBarSkin.weakSceneKeyEventHandler |
Modifier and Type | Method and Description |
---|---|
(package private) EventHandler<KeyEvent> |
MenuBarSkin.getKeyEventHandler() |
EventHandler<KeyEvent> |
FXVK.getOnAction() |
ObjectProperty<EventHandler<KeyEvent>> |
FXVK.onActionProperty() |
Modifier and Type | Method and Description |
---|---|
private void |
ComboBoxPopupControl.forwardToParent(KeyEvent event) |
private void |
ComboBoxPopupControl.handleKeyEvent(KeyEvent ke,
boolean doConsume) |
private void |
ContextMenuContent.processLeftKey(KeyEvent ke) |
private void |
ContextMenuContent.processRightKey(KeyEvent ke) |
private void |
ColorPalette.processSelectKey(KeyEvent ke) |
void |
ColorPalette.ColorSquare.selectColor(KeyEvent event) |
Modifier and Type | Method and Description |
---|---|
void |
FXVK.setOnAction(EventHandler<KeyEvent> value) |
Modifier and Type | Method and Description |
---|---|
boolean |
DummyToolkit.isBackwardTraversalKey(KeyEvent e) |
abstract boolean |
Toolkit.isBackwardTraversalKey(KeyEvent e) |
boolean |
DummyToolkit.isForwardTraversalKey(KeyEvent e) |
abstract boolean |
Toolkit.isForwardTraversalKey(KeyEvent e) |
void |
TKSceneListener.keyEvent(KeyEvent keyEvent)
Pass a key event to the scene to handle
|
Modifier and Type | Method and Description |
---|---|
private static EventType<KeyEvent> |
GlassViewEventHandler.keyEventType(int glassType) |
Modifier and Type | Method and Description |
---|---|
boolean |
QuantumToolkit.isBackwardTraversalKey(KeyEvent e) |
boolean |
QuantumToolkit.isForwardTraversalKey(KeyEvent e) |
Modifier and Type | Method and Description |
---|---|
(package private) static int |
SwingEvents.fxKeyEventTypeToKeyID(KeyEvent event) |
(package private) static int |
SwingEvents.fxKeyModsToKeyMods(KeyEvent event) |
void |
SwingNode.SwingKeyEventHandler.handle(KeyEvent event) |
Modifier and Type | Field and Description |
---|---|
private ObjectProperty<EventHandler<? super KeyEvent>> |
Scene.onKeyPressed
Defines a function to be called when some
Node of this
Scene has input focus and a key has been pressed. |
private EventHandler<? super KeyEvent> |
NodeBuilder.onKeyPressed
Deprecated.
|
private EventHandler<? super KeyEvent> |
SceneBuilder.onKeyPressed
Deprecated.
|
private ObjectProperty<EventHandler<? super KeyEvent>> |
Scene.onKeyReleased
Defines a function to be called when some
Node of this
Scene has input focus and a key has been released. |
private EventHandler<? super KeyEvent> |
NodeBuilder.onKeyReleased
Deprecated.
|
private EventHandler<? super KeyEvent> |
SceneBuilder.onKeyReleased
Deprecated.
|
private ObjectProperty<EventHandler<? super KeyEvent>> |
Scene.onKeyTyped
Defines a function to be called when some
Node of this
Scene has input focus and a key has been typed. |
private EventHandler<? super KeyEvent> |
NodeBuilder.onKeyTyped
Deprecated.
|
private EventHandler<? super KeyEvent> |
SceneBuilder.onKeyTyped
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
EventHandler<? super KeyEvent> |
Node.getOnKeyPressed() |
EventHandler<? super KeyEvent> |
Scene.getOnKeyPressed() |
EventHandler<? super KeyEvent> |
Node.getOnKeyReleased() |
EventHandler<? super KeyEvent> |
Scene.getOnKeyReleased() |
EventHandler<? super KeyEvent> |
Node.getOnKeyTyped() |
EventHandler<? super KeyEvent> |
Scene.getOnKeyTyped() |
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() |
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() |
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() |
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
|
void |
Scene.ScenePeerListener.keyEvent(KeyEvent keyEvent) |
private void |
Scene.KeyHandler.process(KeyEvent e) |
private boolean |
Scene.DnDGesture.processKey(KeyEvent e) |
Modifier and Type | Method and Description |
---|---|
B |
NodeBuilder.onKeyPressed(EventHandler<? super KeyEvent> x)
Deprecated.
Set the value of the
onKeyPressed property for the instance constructed by this builder. |
B |
SceneBuilder.onKeyPressed(EventHandler<? super KeyEvent> x)
Deprecated.
Set the value of the
onKeyPressed 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.onKeyReleased(EventHandler<? super KeyEvent> x)
Deprecated.
Set the value of the
onKeyReleased 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. |
B |
SceneBuilder.onKeyTyped(EventHandler<? super KeyEvent> x)
Deprecated.
Set the value of the
onKeyTyped property for the instance constructed by this builder. |
void |
Node.setOnKeyPressed(EventHandler<? super KeyEvent> value) |
void |
Scene.setOnKeyPressed(EventHandler<? super KeyEvent> value) |
void |
Node.setOnKeyReleased(EventHandler<? super KeyEvent> value) |
void |
Scene.setOnKeyReleased(EventHandler<? super KeyEvent> value) |
void |
Node.setOnKeyTyped(EventHandler<? super KeyEvent> value) |
void |
Scene.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(java.lang.Object newSource,
EventTarget newTarget) |
KeyEvent |
KeyEvent.copyFor(java.lang.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(java.lang.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,
java.lang.String character,
java.lang.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(java.lang.Object source,
EventTarget target,
EventType<KeyEvent> eventType,
java.lang.String character,
java.lang.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.
|
Modifier and Type | Method and Description |
---|---|
private void |
WebView.processKeyEvent(KeyEvent ev) |
Modifier and Type | Method and Description |
---|---|
private void |
PopupWindow.PopupEventRedirector.handleKeyEvent(KeyEvent event) |