Uses of Interface
javafx.event.EventHandler
Package
Description
-
Uses of EventHandler in com.sun.javafx.event
Modifier and TypeMethodDescriptionfinal <T extends Event>
EventHandler<? super T>EventHandlerManager.getEventHandler
(EventType<T> eventType) Modifier and TypeMethodDescriptionfinal <T extends Event>
voidEventHandlerManager.addEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter inEventHandlerManager
.final <T extends Event>
voidEventHandlerManager.addEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler inEventHandlerManager
.final <T extends Event>
voidEventHandlerManager.removeEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter.final <T extends Event>
voidEventHandlerManager.removeEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler.final <T extends Event>
voidEventHandlerManager.setEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Sets the specified singleton handler. -
Uses of EventHandler in com.sun.javafx.scene
Modifier and TypeMethodDescriptionfinal EventHandler<? super MouseEvent>
EventHandlerProperties.getOnDragDetected()
Gets the value of theonDragDetected
property.final EventHandler<? super DragEvent>
EventHandlerProperties.getOnDragDone()
Gets the value of theonDragDone
property.final EventHandler<? super DragEvent>
EventHandlerProperties.getOnDragDropped()
Gets the value of theonDragDropped
property.final EventHandler<? super DragEvent>
EventHandlerProperties.getOnDragEntered()
Gets the value of theonDragEntered
property.final EventHandler<? super DragEvent>
EventHandlerProperties.getOnDragExited()
Gets the value of theonDragExited
property.final EventHandler<? super DragEvent>
EventHandlerProperties.getOnDragOver()
Gets the value of theonDragOver
property.final 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.final EventHandler<? super MouseEvent>
EventHandlerProperties.getOnMouseClicked()
Gets the value of theonMouseClicked
property.final EventHandler<? super MouseDragEvent>
EventHandlerProperties.getOnMouseDragEntered()
Gets the value of theonMouseDragEntered
property.final EventHandler<? super MouseDragEvent>
EventHandlerProperties.getOnMouseDragExited()
Gets the value of theonMouseDragExited
property.final EventHandler<? super MouseEvent>
EventHandlerProperties.getOnMouseDragged()
Gets the value of theonMouseDragged
property.final EventHandler<? super MouseDragEvent>
EventHandlerProperties.getOnMouseDragOver()
Gets the value of theonMouseDragOver
property.final EventHandler<? super MouseDragEvent>
EventHandlerProperties.getOnMouseDragReleased()
Gets the value of theonMouseDragReleased
property.final EventHandler<? super MouseEvent>
EventHandlerProperties.getOnMouseEntered()
Gets the value of theonMouseEntered
property.final EventHandler<? super MouseEvent>
EventHandlerProperties.getOnMouseExited()
Gets the value of theonMouseExited
property.final EventHandler<? super MouseEvent>
EventHandlerProperties.getOnMouseMoved()
Gets the value of theonMouseMoved
property.final EventHandler<? super MouseEvent>
EventHandlerProperties.getOnMousePressed()
Gets the value of theonMousePressed
property.final EventHandler<? super MouseEvent>
EventHandlerProperties.getOnMouseReleased()
Gets the value of theonMouseReleased
property.final EventHandler<? super ScrollEvent>
EventHandlerProperties.getOnScroll()
Gets the value of theonScroll
property.final EventHandler<? super SwipeEvent>
EventHandlerProperties.getOnSwipeDown()
Gets the value of theonSwipeDown
property.final EventHandler<? super SwipeEvent>
EventHandlerProperties.getOnSwipeLeft()
Gets the value of theonSwipeLeft
property.final EventHandler<? super SwipeEvent>
EventHandlerProperties.getOnSwipeRight()
Gets the value of theonSwipeRight
property.final EventHandler<? super SwipeEvent>
EventHandlerProperties.getOnSwipeUp()
Gets the value of theonSwipeUp
property.final EventHandler<? super TouchEvent>
EventHandlerProperties.getOnTouchMoved()
Gets the value of theonTouchMoved
property.final EventHandler<? super TouchEvent>
EventHandlerProperties.getOnTouchPressed()
Gets the value of theonTouchPressed
property.final EventHandler<? super TouchEvent>
EventHandlerProperties.getOnTouchReleased()
Gets the value of theonTouchReleased
property.final EventHandler<? super TouchEvent>
EventHandlerProperties.getOnTouchStationary()
Gets the value of theonTouchStationary
property.final EventHandler<? super ContextMenuEvent>
EventHandlerProperties.onContextMenuRequested()
Modifier and TypeMethodDescriptionObjectProperty<EventHandler<? super ContextMenuEvent>>
EventHandlerProperties.onContextMenuRequestedProperty()
ObjectProperty<EventHandler<? super MouseEvent>>
EventHandlerProperties.onDragDetectedProperty()
ObjectProperty<EventHandler<? super DragEvent>>
EventHandlerProperties.onDragDoneProperty()
ObjectProperty<EventHandler<? super DragEvent>>
EventHandlerProperties.onDragDroppedProperty()
ObjectProperty<EventHandler<? super DragEvent>>
EventHandlerProperties.onDragEnteredProperty()
ObjectProperty<EventHandler<? super DragEvent>>
EventHandlerProperties.onDragExitedProperty()
ObjectProperty<EventHandler<? super DragEvent>>
EventHandlerProperties.onDragOverProperty()
ObjectProperty<EventHandler<? super KeyEvent>>
EventHandlerProperties.onKeyPressedProperty()
ObjectProperty<EventHandler<? super KeyEvent>>
EventHandlerProperties.onKeyReleasedProperty()
ObjectProperty<EventHandler<? super KeyEvent>>
EventHandlerProperties.onKeyTypedProperty()
ObjectProperty<EventHandler<? super MouseEvent>>
EventHandlerProperties.onMouseClickedProperty()
ObjectProperty<EventHandler<? super MouseDragEvent>>
EventHandlerProperties.onMouseDragEnteredProperty()
ObjectProperty<EventHandler<? super MouseDragEvent>>
EventHandlerProperties.onMouseDragExitedProperty()
ObjectProperty<EventHandler<? super MouseEvent>>
EventHandlerProperties.onMouseDraggedProperty()
ObjectProperty<EventHandler<? super MouseDragEvent>>
EventHandlerProperties.onMouseDragOverProperty()
ObjectProperty<EventHandler<? super MouseDragEvent>>
EventHandlerProperties.onMouseDragReleasedProperty()
ObjectProperty<EventHandler<? super MouseEvent>>
EventHandlerProperties.onMouseEnteredProperty()
ObjectProperty<EventHandler<? super MouseEvent>>
EventHandlerProperties.onMouseExitedProperty()
ObjectProperty<EventHandler<? super MouseEvent>>
EventHandlerProperties.onMouseMovedProperty()
ObjectProperty<EventHandler<? super MouseEvent>>
EventHandlerProperties.onMousePressedProperty()
ObjectProperty<EventHandler<? super MouseEvent>>
EventHandlerProperties.onMouseReleasedProperty()
ObjectProperty<EventHandler<? super ScrollEvent>>
EventHandlerProperties.onScrollProperty()
ObjectProperty<EventHandler<? super SwipeEvent>>
EventHandlerProperties.onSwipeDownProperty()
ObjectProperty<EventHandler<? super SwipeEvent>>
EventHandlerProperties.onSwipeLeftProperty()
ObjectProperty<EventHandler<? super SwipeEvent>>
EventHandlerProperties.onSwipeRightProperty()
ObjectProperty<EventHandler<? super SwipeEvent>>
EventHandlerProperties.onSwipeUpProperty()
ObjectProperty<EventHandler<? super TouchEvent>>
EventHandlerProperties.onTouchMovedProperty()
ObjectProperty<EventHandler<? super TouchEvent>>
EventHandlerProperties.onTouchPressedProperty()
ObjectProperty<EventHandler<? super TouchEvent>>
EventHandlerProperties.onTouchReleasedProperty()
ObjectProperty<EventHandler<? super TouchEvent>>
EventHandlerProperties.onTouchStationaryProperty()
-
Uses of EventHandler in dev.webfx.kit.mapper.peers.javafxgraphics.base
Modifier and TypeMethodDescriptionvoid
NodePeerMixin.updateOnDragDetected
(EventHandler<? super MouseEvent> eventHandler) void
NodePeerMixin.updateOnDragDone
(EventHandler<? super DragEvent> eventHandler) void
NodePeerMixin.updateOnDragDropped
(EventHandler<? super DragEvent> eventHandler) void
NodePeerMixin.updateOnDragEntered
(EventHandler<? super DragEvent> eventHandler) void
NodePeerMixin.updateOnDragExited
(EventHandler<? super DragEvent> eventHandler) void
NodePeerMixin.updateOnDragOver
(EventHandler<? super DragEvent> eventHandler) -
Uses of EventHandler in dev.webfx.kit.mapper.peers.javafxgraphics.markers
Modifier and TypeMethodDescriptiondefault EventHandler<? super MouseEvent>
HasOnMouseClickedProperty.getOnMouseClicked()
Gets the value of theonMouseClicked
property.Modifier and TypeMethodDescriptionObjectProperty<EventHandler<? super MouseEvent>>
HasOnMouseClickedProperty.onMouseClickedProperty()
Defines a function to be called when a mouse button has been clicked (pressed and released).Modifier and TypeMethodDescriptiondefault void
HasOnMouseClickedProperty.setOnMouseClicked
(EventHandler<? super MouseEvent> value) Sets the value of theonMouseClicked
property. -
Uses of EventHandler in dev.webfx.kit.mapper.peers.javafxgraphics.openjfx
Modifier and TypeMethodDescriptionvoid
FxNodePeer.updateOnDragDetected
(EventHandler<? super MouseEvent> eventHandler) void
FxNodePeer.updateOnDragDone
(EventHandler<? super DragEvent> eventHandler) void
FxNodePeer.updateOnDragDropped
(EventHandler<? super DragEvent> eventHandler) void
FxNodePeer.updateOnDragEntered
(EventHandler<? super DragEvent> eventHandler) void
FxNodePeer.updateOnDragExited
(EventHandler<? super DragEvent> eventHandler) void
FxNodePeer.updateOnDragOver
(EventHandler<? super DragEvent> eventHandler) -
Uses of EventHandler in javafx.animation
Modifier and TypeMethodDescriptionfinal EventHandler<ActionEvent>
Animation.getOnFinished()
Gets the value of theonFinished
property.KeyFrame.getOnFinished()
Returns theonFinished
event handler of thisKeyFrame
.Modifier and TypeMethodDescriptionfinal ObjectProperty<EventHandler<ActionEvent>>
Animation.onFinishedProperty()
The action to be executed at the conclusion of thisAnimation
.Modifier and TypeMethodDescriptionfinal void
Animation.setOnFinished
(EventHandler<ActionEvent> value) Sets the value of theonFinished
property.ModifierConstructorDescriptionKeyFrame
(Duration time, String name, EventHandler<ActionEvent> onFinished, Collection<KeyValue> values) Constructor ofKeyFrame
KeyFrame
(Duration time, String name, EventHandler<ActionEvent> onFinished, KeyValue... values) Constructor ofKeyFrame
KeyFrame
(Duration time, EventHandler<ActionEvent> onFinished, KeyValue... values) Constructor ofKeyFrame
-
Uses of EventHandler in javafx.event
Modifier and TypeClassDescriptionfinal class
WeakEventHandler<T extends Event>
Used in event handler registration in place of its associated event handler.ModifierConstructorDescriptionWeakEventHandler
(EventHandler<T> eventHandler) Creates a new instance ofWeakEventHandler
. -
Uses of EventHandler in javafx.scene
Modifier and TypeMethodDescriptionfinal EventHandler<? super ContextMenuEvent>
Node.getOnContextMenuRequested()
Gets the value of theonContextMenuRequested
property.final EventHandler<? super MouseEvent>
Node.getOnDragDetected()
Gets the value of theonDragDetected
property.final EventHandler<? super DragEvent>
Node.getOnDragDone()
Gets the value of theonDragDone
property.final EventHandler<? super DragEvent>
Node.getOnDragDropped()
Gets the value of theonDragDropped
property.final EventHandler<? super DragEvent>
Node.getOnDragEntered()
Gets the value of theonDragEntered
property.final EventHandler<? super DragEvent>
Node.getOnDragExited()
Gets the value of theonDragExited
property.final EventHandler<? super DragEvent>
Node.getOnDragOver()
Gets the value of theonDragOver
property.final 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 EventHandler<? super MouseEvent>
Scene.getOnMouseClicked()
Gets the value of theonMouseClicked
property.final EventHandler<? super MouseEvent>
Node.getOnMouseDragged()
Gets the value of theonMouseDragged
property.final EventHandler<? super MouseEvent>
Node.getOnMouseEntered()
Gets the value of theonMouseEntered
property.final EventHandler<? super MouseEvent>
Node.getOnMouseExited()
Gets the value of theonMouseExited
property.final EventHandler<? super MouseEvent>
Node.getOnMouseMoved()
Gets the value of theonMouseMoved
property.final EventHandler<? super MouseEvent>
Node.getOnMousePressed()
Gets the value of theonMousePressed
property.final EventHandler<? super MouseEvent>
Scene.getOnMousePressed()
Gets the value of theonMousePressed
property.final EventHandler<? super MouseEvent>
Node.getOnMouseReleased()
Gets the value of theonMouseReleased
property.final EventHandler<? super MouseEvent>
Scene.getOnMouseReleased()
Gets the value of theonMouseReleased
property.final EventHandler<? super ScrollEvent>
Node.getOnScroll()
Gets the value of theonScroll
property.final EventHandler<? super SwipeEvent>
Node.getOnSwipeDown()
Gets the value of theonSwipeDown
property.final EventHandler<? super SwipeEvent>
Node.getOnSwipeLeft()
Gets the value of theonSwipeLeft
property.final EventHandler<? super SwipeEvent>
Node.getOnSwipeRight()
Gets the value of theonSwipeRight
property.final EventHandler<? super SwipeEvent>
Node.getOnSwipeUp()
Gets the value of theonSwipeUp
property.final EventHandler<? super TouchEvent>
Node.getOnTouchMoved()
Gets the value of theonTouchMoved
property.final EventHandler<? super TouchEvent>
Node.getOnTouchPressed()
Gets the value of theonTouchPressed
property.final EventHandler<? super TouchEvent>
Node.getOnTouchReleased()
Gets the value of theonTouchReleased
property.final EventHandler<? super TouchEvent>
Node.getOnTouchStationary()
Gets the value of theonTouchStationary
property.Modifier and TypeMethodDescriptionfinal ObjectProperty<EventHandler<? super ContextMenuEvent>>
Defines a function to be called when a context menu has been requested on thisNode
.final ObjectProperty<EventHandler<? super MouseEvent>>
Node.onDragDetectedProperty()
Defines a function to be called when drag gesture has been detected.final ObjectProperty<EventHandler<? super DragEvent>>
Node.onDragDoneProperty()
Defines a function to be called when thisNode
is a drag and drop gesture source after its data has been dropped on a drop target.final ObjectProperty<EventHandler<? super DragEvent>>
Node.onDragDroppedProperty()
Defines a function to be called when the mouse button is released on thisNode
during drag and drop gesture.final ObjectProperty<EventHandler<? super DragEvent>>
Node.onDragEnteredProperty()
Defines a function to be called when drag gesture enters thisNode
.final ObjectProperty<EventHandler<? super DragEvent>>
Node.onDragExitedProperty()
Defines a function to be called when drag gesture exits thisNode
.final ObjectProperty<EventHandler<? super DragEvent>>
Node.onDragOverProperty()
Defines a function to be called when drag gesture progresses within thisNode
.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.final ObjectProperty<EventHandler<? super MouseEvent>>
Node.onMouseClickedProperty()
Defines a function to be called when a mouse button has been clicked (pressed and released) on thisNode
.final ObjectProperty<EventHandler<? super MouseEvent>>
Scene.onMouseClickedProperty()
Defines a function to be called when a mouse button has been clicked (pressed and released) on thisScene
.final ObjectProperty<EventHandler<? super MouseEvent>>
Node.onMouseDraggedProperty()
Defines a function to be called when a mouse button is pressed on thisNode
and then dragged.final ObjectProperty<EventHandler<? super MouseEvent>>
Node.onMouseEnteredProperty()
Defines a function to be called when the mouse enters thisNode
.final ObjectProperty<EventHandler<? super MouseEvent>>
Node.onMouseExitedProperty()
Defines a function to be called when the mouse exits thisNode
.final ObjectProperty<EventHandler<? super MouseEvent>>
Node.onMouseMovedProperty()
Defines a function to be called when mouse cursor moves within thisNode
but no buttons have been pushed.final ObjectProperty<EventHandler<? super MouseEvent>>
Node.onMousePressedProperty()
Defines a function to be called when a mouse button has been pressed on thisNode
.final ObjectProperty<EventHandler<? super MouseEvent>>
Scene.onMousePressedProperty()
Defines a function to be called when a mouse button has been pressed on thisScene
.final ObjectProperty<EventHandler<? super MouseEvent>>
Node.onMouseReleasedProperty()
Defines a function to be called when a mouse button has been released on thisNode
.final ObjectProperty<EventHandler<? super MouseEvent>>
Scene.onMouseReleasedProperty()
Defines a function to be called when a mouse button has been released on thisScene
.final ObjectProperty<EventHandler<? super ScrollEvent>>
Node.onScrollProperty()
Defines a function to be called when user performs a scrolling action.final ObjectProperty<EventHandler<? super SwipeEvent>>
Node.onSwipeDownProperty()
Defines a function to be called when a downward swipe gesture centered over this node happens.final ObjectProperty<EventHandler<? super SwipeEvent>>
Node.onSwipeLeftProperty()
Defines a function to be called when a leftward swipe gesture centered over this node happens.final ObjectProperty<EventHandler<? super SwipeEvent>>
Node.onSwipeRightProperty()
Defines a function to be called when an rightward swipe gesture centered over this node happens.final ObjectProperty<EventHandler<? super SwipeEvent>>
Node.onSwipeUpProperty()
Defines a function to be called when an upward swipe gesture centered over this node happens.final ObjectProperty<EventHandler<? super TouchEvent>>
Node.onTouchMovedProperty()
Defines a function to be called when a touch point is moved.final ObjectProperty<EventHandler<? super TouchEvent>>
Node.onTouchPressedProperty()
Defines a function to be called when a new touch point is pressed.final ObjectProperty<EventHandler<? super TouchEvent>>
Node.onTouchReleasedProperty()
Defines a function to be called when a touch point is released.final ObjectProperty<EventHandler<? super TouchEvent>>
Node.onTouchStationaryProperty()
Defines a function to be called when a touch point stays pressed and still.Modifier and TypeMethodDescriptionfinal <T extends Event>
voidNode.addEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter to this node.final <T extends Event>
voidScene.addEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter to this scene.final <T extends Event>
voidNode.addEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler to this node.final <T extends Event>
voidScene.addEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler to this scene.final <T extends Event>
voidNode.removeEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter from this node.final <T extends Event>
voidScene.removeEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter from this scene.final <T extends Event>
voidNode.removeEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler from this node.final <T extends Event>
voidScene.removeEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler from this scene.protected final <T extends Event>
voidNode.setEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Sets the handler to use for this event type.protected final <T extends Event>
voidScene.setEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Sets the handler to use for this event type.final void
Node.setOnContextMenuRequested
(EventHandler<? super ContextMenuEvent> value) Sets the value of theonContextMenuRequested
property.final void
Node.setOnDragDetected
(EventHandler<? super MouseEvent> value) Sets the value of theonDragDetected
property.final void
Node.setOnDragDone
(EventHandler<? super DragEvent> value) Sets the value of theonDragDone
property.final void
Node.setOnDragDropped
(EventHandler<? super DragEvent> value) Sets the value of theonDragDropped
property.final void
Node.setOnDragEntered
(EventHandler<? super DragEvent> value) Sets the value of theonDragEntered
property.final void
Node.setOnDragExited
(EventHandler<? super DragEvent> value) Sets the value of theonDragExited
property.final void
Node.setOnDragOver
(EventHandler<? super DragEvent> value) Sets the value of theonDragOver
property.final 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.final void
Scene.setOnMouseClicked
(EventHandler<? super MouseEvent> value) Sets the value of theonMouseClicked
property.final void
Node.setOnMouseDragged
(EventHandler<? super MouseEvent> value) Sets the value of theonMouseDragged
property.final void
Node.setOnMouseEntered
(EventHandler<? super MouseEvent> value) Sets the value of theonMouseEntered
property.final void
Node.setOnMouseExited
(EventHandler<? super MouseEvent> value) Sets the value of theonMouseExited
property.final void
Node.setOnMouseMoved
(EventHandler<? super MouseEvent> value) Sets the value of theonMouseMoved
property.final void
Node.setOnMousePressed
(EventHandler<? super MouseEvent> value) Sets the value of theonMousePressed
property.final void
Scene.setOnMousePressed
(EventHandler<? super MouseEvent> value) Sets the value of theonMousePressed
property.final void
Node.setOnMouseReleased
(EventHandler<? super MouseEvent> value) Sets the value of theonMouseReleased
property.final void
Scene.setOnMouseReleased
(EventHandler<? super MouseEvent> value) Sets the value of theonMouseReleased
property.final void
Node.setOnScroll
(EventHandler<? super ScrollEvent> value) Sets the value of theonScroll
property.final void
Node.setOnSwipeDown
(EventHandler<? super SwipeEvent> value) Sets the value of theonSwipeDown
property.final void
Node.setOnSwipeLeft
(EventHandler<? super SwipeEvent> value) Sets the value of theonSwipeLeft
property.final void
Node.setOnSwipeRight
(EventHandler<? super SwipeEvent> value) Sets the value of theonSwipeRight
property.final void
Node.setOnSwipeUp
(EventHandler<? super SwipeEvent> value) Sets the value of theonSwipeUp
property.final void
Node.setOnTouchMoved
(EventHandler<? super TouchEvent> value) Sets the value of theonTouchMoved
property.final void
Node.setOnTouchPressed
(EventHandler<? super TouchEvent> value) Sets the value of theonTouchPressed
property.final void
Node.setOnTouchReleased
(EventHandler<? super TouchEvent> value) Sets the value of theonTouchReleased
property.final void
Node.setOnTouchStationary
(EventHandler<? super TouchEvent> value) Sets the value of theonTouchStationary
property. -
Uses of EventHandler in javafx.scene.control
Modifier and TypeMethodDescriptionfinal EventHandler<ActionEvent>
ButtonBase.getOnAction()
Gets the value of theonAction
property.final EventHandler<ActionEvent>
ChoiceBox.getOnAction()
Gets the value of theonAction
property.final EventHandler<ActionEvent>
ComboBoxBase.getOnAction()
Gets the value of theonAction
property.final EventHandler<ActionEvent>
ContextMenu.getOnAction()
Gets the value of theonAction
property.final EventHandler<ActionEvent>
MenuItem.getOnAction()
Gets the value of theonAction
property.final EventHandler<ActionEvent>
TextField.getOnAction()
Gets the value of theonAction
property.final EventHandler<Event>
Tab.getOnClosed()
The event handler that is associated with the tab when the tab is closed.final EventHandler<DialogEvent>
Dialog.getOnCloseRequest()
Gets the value of theonCloseRequest
property.Tab.getOnCloseRequest()
Gets the value of theonCloseRequest
property.final EventHandler<Event>
ChoiceBox.getOnHidden()
Gets the value of theonHidden
property.final EventHandler<Event>
ComboBoxBase.getOnHidden()
Gets the value of theonHidden
property.final EventHandler<DialogEvent>
Dialog.getOnHidden()
Gets the value of theonHidden
property.final EventHandler<Event>
Menu.getOnHidden()
Gets the value of theonHidden
property.final EventHandler<Event>
ChoiceBox.getOnHiding()
Gets the value of theonHiding
property.final EventHandler<Event>
ComboBoxBase.getOnHiding()
Gets the value of theonHiding
property.final EventHandler<DialogEvent>
Dialog.getOnHiding()
Gets the value of theonHiding
property.final EventHandler<Event>
Menu.getOnHiding()
Gets the value of theonHiding
property.final EventHandler<Event>
MenuItem.getOnMenuValidation()
Gets the value of theonMenuValidation
property.final EventHandler<Event>
Tab.getOnSelectionChanged()
The event handler that is associated with a selection on the tab.final EventHandler<Event>
ChoiceBox.getOnShowing()
Gets the value of theonShowing
property.final EventHandler<Event>
ComboBoxBase.getOnShowing()
Gets the value of theonShowing
property.final EventHandler<DialogEvent>
Dialog.getOnShowing()
Gets the value of theonShowing
property.final EventHandler<Event>
Menu.getOnShowing()
Gets the value of theonShowing
property.final EventHandler<Event>
ChoiceBox.getOnShown()
Gets the value of theonShown
property.final EventHandler<Event>
ComboBoxBase.getOnShown()
Gets the value of theonShown
property.final EventHandler<DialogEvent>
Dialog.getOnShown()
Gets the value of theonShown
property.final EventHandler<Event>
Menu.getOnShown()
Gets the value of theonShown
property.Modifier and TypeMethodDescriptionfinal ObjectProperty<EventHandler<ActionEvent>>
ButtonBase.onActionProperty()
The button's action, which is invoked whenever the button is fired.final ObjectProperty<EventHandler<ActionEvent>>
ChoiceBox.onActionProperty()
The ChoiceBox action, which is invoked whenever the ChoiceBoxvalue
property is changed.final ObjectProperty<EventHandler<ActionEvent>>
ComboBoxBase.onActionProperty()
The ComboBox action, which is invoked whenever the ComboBoxvalue
property is changed.final ObjectProperty<EventHandler<ActionEvent>>
ContextMenu.onActionProperty()
Callback function to be informed when an item contained within thisContextMenu
has been activated.final ObjectProperty<EventHandler<ActionEvent>>
MenuItem.onActionProperty()
The action, which is invoked whenever the MenuItem is fired.final ObjectProperty<EventHandler<ActionEvent>>
TextField.onActionProperty()
The action handler associated with this text field, ornull
if no action handler is assigned.final ObjectProperty<EventHandler<Event>>
Tab.onClosedProperty()
The event handler that is associated with the tab when the tab is closed.final ObjectProperty<EventHandler<DialogEvent>>
Dialog.onCloseRequestProperty()
Called when there is an external request to close thisDialog
.final ObjectProperty<EventHandler<Event>>
Tab.onCloseRequestProperty()
Called when there is an external request to close thisTab
.final ObjectProperty<EventHandler<Event>>
ChoiceBox.onHiddenProperty()
Called just after theChoiceBox
popup has been hidden.final ObjectProperty<EventHandler<Event>>
ComboBoxBase.onHiddenProperty()
Called just after theComboBoxBase
popup/display has been hidden.final ObjectProperty<EventHandler<DialogEvent>>
Dialog.onHiddenProperty()
Called just after the Dialog has been hidden.final ObjectProperty<EventHandler<Event>>
Menu.onHiddenProperty()
Called just after theContextMenu
has been hidden.final ObjectProperty<EventHandler<Event>>
ChoiceBox.onHidingProperty()
Called just prior to theChoiceBox
popup being hidden.final ObjectProperty<EventHandler<Event>>
ComboBoxBase.onHidingProperty()
Called just prior to theComboBox
popup/display being hidden.final ObjectProperty<EventHandler<DialogEvent>>
Dialog.onHidingProperty()
Called just prior to the Dialog being hidden.final ObjectProperty<EventHandler<Event>>
Menu.onHidingProperty()
Called just prior to theContextMenu
being hidden.final ObjectProperty<EventHandler<Event>>
MenuItem.onMenuValidationProperty()
The event handler that is associated with invocation of an accelerator for a MenuItem.final ObjectProperty<EventHandler<Event>>
The event handler that is associated with a selection on the tab.final ObjectProperty<EventHandler<Event>>
ChoiceBox.onShowingProperty()
Called just prior to theChoiceBox
popup being shown.final ObjectProperty<EventHandler<Event>>
ComboBoxBase.onShowingProperty()
Called just prior to theComboBoxBase
popup/display being shown.final ObjectProperty<EventHandler<DialogEvent>>
Dialog.onShowingProperty()
Called just prior to the Dialog being shown.final ObjectProperty<EventHandler<Event>>
Menu.onShowingProperty()
Called just prior to theContextMenu
being shown, even if the menu has no items to show.final ObjectProperty<EventHandler<Event>>
ChoiceBox.onShownProperty()
Called just after theChoiceBox
popup is shown.final ObjectProperty<EventHandler<Event>>
ComboBoxBase.onShownProperty()
Called just after theComboBoxBase
popup/display is shown.final ObjectProperty<EventHandler<DialogEvent>>
Dialog.onShownProperty()
Called just after the Dialog is shown.final ObjectProperty<EventHandler<Event>>
Menu.onShownProperty()
Called just after theContextMenu
is shown.Modifier and TypeMethodDescription<E extends Event>
voidMenu.addEventHandler
(EventType<E> eventType, EventHandler<E> eventHandler) Registers an event handler to this MenuItem.<E extends Event>
voidMenuItem.addEventHandler
(EventType<E> eventType, EventHandler<E> eventHandler) Registers an event handler to this MenuItem.<E extends Event>
voidMenu.removeEventHandler
(EventType<E> eventType, EventHandler<E> eventHandler) Unregisters a previously registered event handler from this MenuItem.<E extends Event>
voidMenuItem.removeEventHandler
(EventType<E> eventType, EventHandler<E> eventHandler) Unregisters a previously registered event handler from this MenuItem.final void
ButtonBase.setOnAction
(EventHandler<ActionEvent> value) Sets the value of theonAction
property.final void
ChoiceBox.setOnAction
(EventHandler<ActionEvent> value) Sets the value of theonAction
property.final void
ComboBoxBase.setOnAction
(EventHandler<ActionEvent> value) Sets the value of theonAction
property.final void
ContextMenu.setOnAction
(EventHandler<ActionEvent> value) Sets the value of theonAction
property.final void
MenuItem.setOnAction
(EventHandler<ActionEvent> value) Sets the value of theonAction
property.final void
TextField.setOnAction
(EventHandler<ActionEvent> value) Sets the value of theonAction
property.final void
Tab.setOnClosed
(EventHandler<Event> value) Defines a function to be called when the tab is closed.final void
Dialog.setOnCloseRequest
(EventHandler<DialogEvent> value) Sets the value of theonCloseRequest
property.void
Tab.setOnCloseRequest
(EventHandler<Event> value) Sets the value of theonCloseRequest
property.final void
ChoiceBox.setOnHidden
(EventHandler<Event> value) Sets the value of theonHidden
property.final void
ComboBoxBase.setOnHidden
(EventHandler<Event> value) Sets the value of theonHidden
property.final void
Dialog.setOnHidden
(EventHandler<DialogEvent> value) Sets the value of theonHidden
property.final void
Menu.setOnHidden
(EventHandler<Event> value) Sets the value of theonHidden
property.final void
ChoiceBox.setOnHiding
(EventHandler<Event> value) Sets the value of theonHiding
property.final void
ComboBoxBase.setOnHiding
(EventHandler<Event> value) Sets the value of theonHiding
property.final void
Dialog.setOnHiding
(EventHandler<DialogEvent> value) Sets the value of theonHiding
property.final void
Menu.setOnHiding
(EventHandler<Event> value) Sets the value of theonHiding
property.final void
MenuItem.setOnMenuValidation
(EventHandler<Event> value) Sets the value of theonMenuValidation
property.final void
Tab.setOnSelectionChanged
(EventHandler<Event> value) Defines a function to be called when a selection changed has occurred on the tab.final void
ChoiceBox.setOnShowing
(EventHandler<Event> value) Sets the value of theonShowing
property.final void
ComboBoxBase.setOnShowing
(EventHandler<Event> value) Sets the value of theonShowing
property.final void
Dialog.setOnShowing
(EventHandler<DialogEvent> value) Sets the value of theonShowing
property.final void
Menu.setOnShowing
(EventHandler<Event> value) Sets the value of theonShowing
property.final void
ChoiceBox.setOnShown
(EventHandler<Event> value) Sets the value of theonShown
property.final void
ComboBoxBase.setOnShown
(EventHandler<Event> value) Sets the value of theonShown
property.final void
Dialog.setOnShown
(EventHandler<DialogEvent> value) Sets the value of theonShown
property.final void
Menu.setOnShown
(EventHandler<Event> value) Sets the value of theonShown
property. -
Uses of EventHandler in javafx.scene.web
Modifier and TypeMethodDescriptionfinal EventHandler<WebErrorEvent>
WebEngine.getOnError()
Gets the value of theonError
property.Modifier and TypeMethodDescriptionfinal ObjectProperty<EventHandler<WebErrorEvent>>
WebEngine.onErrorProperty()
Modifier and TypeMethodDescriptionfinal void
WebEngine.setOnError
(EventHandler<WebErrorEvent> handler) Sets the value of theonError
property. -
Uses of EventHandler in javafx.stage
Modifier and TypeMethodDescriptionfinal EventHandler<WindowEvent>
Window.getOnCloseRequest()
Gets the value of theonCloseRequest
property.Modifier and TypeMethodDescriptionfinal ObjectProperty<EventHandler<WindowEvent>>
Window.onCloseRequestProperty()
Called when there is an external request to close thisWindow
.Modifier and TypeMethodDescriptionfinal <T extends Event>
voidWindow.addEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter to this node.final <T extends Event>
voidWindow.addEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler to this node.final <T extends Event>
voidWindow.removeEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter from this node.final <T extends Event>
voidWindow.removeEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler from this node.protected final <T extends Event>
voidWindow.setEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Sets the handler to use for this event type.final void
Window.setOnCloseRequest
(EventHandler<WindowEvent> value) Sets the value of theonCloseRequest
property.