Uses of Class
javafx.scene.input.KeyEvent
Package
Description
-
Uses of KeyEvent in com.sun.javafx.scene
Modifier and TypeMethodDescriptionfinal EventHandler<? super KeyEvent>
EventHandlerProperties.getOnKeyPressed()
Gets the value of theonKeyPressed
property.final EventHandler<? super KeyEvent>
EventHandlerProperties.getOnKeyReleased()
Gets the value of theonKeyReleased
property.final EventHandler<? super KeyEvent>
EventHandlerProperties.getOnKeyTyped()
Gets the value of theonKeyTyped
property.ObjectProperty<EventHandler<? super KeyEvent>>
EventHandlerProperties.onKeyPressedProperty()
ObjectProperty<EventHandler<? super KeyEvent>>
EventHandlerProperties.onKeyReleasedProperty()
ObjectProperty<EventHandler<? super KeyEvent>>
EventHandlerProperties.onKeyTypedProperty()
-
Uses of KeyEvent in com.sun.javafx.scene.control.behavior
Modifier and TypeMethodDescriptionprotected void
BehaviorBase.callActionForEvent
(KeyEvent e) Invokes the appropriate action for this key event.int
KeyBinding.getSpecificity
(Control control, KeyEvent event) 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. -
Uses of KeyEvent in javafx.scene
Modifier and TypeMethodDescriptionfinal EventHandler<? super KeyEvent>
Node.getOnKeyPressed()
Gets the value of theonKeyPressed
property.final EventHandler<? super KeyEvent>
Scene.getOnKeyPressed()
Gets the value of theonKeyPressed
property.final EventHandler<? super KeyEvent>
Node.getOnKeyReleased()
Gets the value of theonKeyReleased
property.final EventHandler<? super KeyEvent>
Scene.getOnKeyReleased()
Gets the value of theonKeyReleased
property.final EventHandler<? super KeyEvent>
Node.getOnKeyTyped()
Gets the value of theonKeyTyped
property.final EventHandler<? super KeyEvent>
Scene.getOnKeyTyped()
Gets the value of theonKeyTyped
property.final ObjectProperty<EventHandler<? super KeyEvent>>
Node.onKeyPressedProperty()
Defines a function to be called when thisNode
or its childNode
has input focus and a key has been pressed.final ObjectProperty<EventHandler<? super KeyEvent>>
Scene.onKeyPressedProperty()
Defines a function to be called when someNode
of thisScene
has input focus and a key has been pressed.final ObjectProperty<EventHandler<? super KeyEvent>>
Node.onKeyReleasedProperty()
Defines a function to be called when thisNode
or its childNode
has input focus and a key has been released.final ObjectProperty<EventHandler<? super KeyEvent>>
Scene.onKeyReleasedProperty()
Defines a function to be called when someNode
of thisScene
has input focus and a key has been released.final ObjectProperty<EventHandler<? super KeyEvent>>
Node.onKeyTypedProperty()
Defines a function to be called when thisNode
or its childNode
has input focus and a key has been typed.final ObjectProperty<EventHandler<? super KeyEvent>>
Scene.onKeyTypedProperty()
Defines a function to be called when someNode
of thisScene
has input focus and a key has been typed.Modifier and TypeMethodDescriptionfinal void
Node.setOnKeyPressed
(EventHandler<? super KeyEvent> value) Sets the value of theonKeyPressed
property.final void
Scene.setOnKeyPressed
(EventHandler<? super KeyEvent> value) Sets the value of theonKeyPressed
property.final void
Node.setOnKeyReleased
(EventHandler<? super KeyEvent> value) Sets the value of theonKeyReleased
property.final void
Scene.setOnKeyReleased
(EventHandler<? super KeyEvent> value) Sets the value of theonKeyReleased
property.final void
Node.setOnKeyTyped
(EventHandler<? super KeyEvent> value) Sets the value of theonKeyTyped
property.final void
Scene.setOnKeyTyped
(EventHandler<? super KeyEvent> value) Sets the value of theonKeyTyped
property. -
Uses of KeyEvent in javafx.scene.input
Modifier and TypeFieldDescriptionKeyEvent.ANY
Common supertype for all key event types.KeyEvent.KEY_PRESSED
This event occurs when a key has been pressed.KeyEvent.KEY_RELEASED
This event occurs when a key has been released.KeyEvent.KEY_TYPED
This event occurs when a character-generating key was typed (pressed and released).Modifier and TypeMethodDescriptionKeyEvent.copyFor
(Object newSource, EventTarget newTarget) KeyEvent.copyFor
(Object source, EventTarget target, EventType<KeyEvent> type) Creates a copy of the given event with the given fields substituted.Modifier and TypeMethodDescriptionboolean
Tests whether this key combination matches the key combination in the givenKeyEvent
.boolean
Tests whether this key combination matches the key combination in the givenKeyEvent
.boolean
Tests whether this key combination matches the combination in the givenKeyEvent
.Modifier and TypeMethodDescriptionKeyEvent.copyFor
(Object source, EventTarget target, EventType<KeyEvent> type) Creates a copy of the given event with the given fields substituted.ModifierConstructorDescriptionKeyEvent
(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.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.