Uses of Interface
javafx.event.EventHandler
Package
Description
Provides the set of classes for ease of use transition based animations.
Provides the set of classes for javafx.task.
Provides basic framework for FX events, their delivery and handling.
Provides the core set of base
classes for the JavaFX Scene Graph API.
The JavaFX User Interface Controls (UI Controls or just Controls) are
specialized Nodes in the JavaFX Scenegraph especially suited for reuse in
many different application contexts.
Provides the set of classes for integrating audio and video into Java FX
Applications.
Provides the set of convenient classes to perform rotating, scaling,
shearing, and translation transformations for
Affine
objects.This package provides means for loading and displaying Web content.
Provides the top-level container classes for JavaFX content.
-
Uses of EventHandler in javafx.animation
Modifier and TypeMethodDescriptionfinal EventHandler<ActionEvent>
Animation.getOnFinished()
Gets the value of the property onFinished.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 the property onFinished.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.concurrent
Modifier and TypeMethodDescriptionfinal EventHandler<WorkerStateEvent>
Service.getOnCancelled()
The onCancelled event handler is called whenever the Task state transitions to the CANCELLED state.final EventHandler<WorkerStateEvent>
Task.getOnCancelled()
The onCancelled event handler is called whenever the Task state transitions to the CANCELLED state.final EventHandler<WorkerStateEvent>
Service.getOnFailed()
The onFailed event handler is called whenever the Task state transitions to the FAILED state.final EventHandler<WorkerStateEvent>
Task.getOnFailed()
The onFailed event handler is called whenever the Task state transitions to the FAILED state.final EventHandler<WorkerStateEvent>
Service.getOnReady()
The onReady event handler is called whenever the Task state transitions to the READY state.final EventHandler<WorkerStateEvent>
Service.getOnRunning()
The onRunning event handler is called whenever the Task state transitions to the RUNNING state.final EventHandler<WorkerStateEvent>
Task.getOnRunning()
The onRunning event handler is called whenever the Task state transitions to the RUNNING state.final EventHandler<WorkerStateEvent>
Service.getOnScheduled()
The onSchedule event handler is called whenever the Task state transitions to the SCHEDULED state.final EventHandler<WorkerStateEvent>
Task.getOnScheduled()
The onSchedule event handler is called whenever the Task state transitions to the SCHEDULED state.final EventHandler<WorkerStateEvent>
Service.getOnSucceeded()
The onSucceeded event handler is called whenever the Task state transitions to the SUCCEEDED state.final EventHandler<WorkerStateEvent>
Task.getOnSucceeded()
The onSucceeded event handler is called whenever the Task state transitions to the SUCCEEDED state.Modifier and TypeMethodDescriptionService.onCancelledProperty()
The onCancelled event handler is called whenever the Task state transitions to the CANCELLED state.Task.onCancelledProperty()
The onCancelled event handler is called whenever the Task state transitions to the CANCELLED state.Service.onFailedProperty()
The onFailed event handler is called whenever the Task state transitions to the FAILED state.Task.onFailedProperty()
The onFailed event handler is called whenever the Task state transitions to the FAILED state.Service.onReadyProperty()
The onReady event handler is called whenever the Task state transitions to the READY state.Service.onRunningProperty()
The onRunning event handler is called whenever the Task state transitions to the RUNNING state.Task.onRunningProperty()
The onRunning event handler is called whenever the Task state transitions to the RUNNING state.Service.onScheduledProperty()
The onSchedule event handler is called whenever the Task state transitions to the SCHEDULED state.Task.onScheduledProperty()
The onSchedule event handler is called whenever the Task state transitions to the SCHEDULED state.Service.onSucceededProperty()
The onSucceeded event handler is called whenever the Task state transitions to the SUCCEEDED state.Task.onSucceededProperty()
The onSucceeded event handler is called whenever the Task state transitions to the SUCCEEDED state.Modifier and TypeMethodDescriptionfinal <T extends Event>
voidService.addEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter to this task.final <T extends Event>
voidTask.addEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter to this task.final <T extends Event>
voidService.addEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler to this task.final <T extends Event>
voidTask.addEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler to this task.final <T extends Event>
voidService.removeEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter from this task.final <T extends Event>
voidTask.removeEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter from this task.final <T extends Event>
voidService.removeEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler from this task.final <T extends Event>
voidTask.removeEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler from this task.protected final <T extends Event>
voidService.setEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Sets the handler to use for this event type.protected final <T extends Event>
voidTask.setEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Sets the handler to use for this event type.final void
Service.setOnCancelled
(EventHandler<WorkerStateEvent> value) The onCancelled event handler is called whenever the Task state transitions to the CANCELLED state.final void
Task.setOnCancelled
(EventHandler<WorkerStateEvent> value) The onCancelled event handler is called whenever the Task state transitions to the CANCELLED state.final void
Service.setOnFailed
(EventHandler<WorkerStateEvent> value) The onFailed event handler is called whenever the Task state transitions to the FAILED state.final void
Task.setOnFailed
(EventHandler<WorkerStateEvent> value) The onFailed event handler is called whenever the Task state transitions to the FAILED state.final void
Service.setOnReady
(EventHandler<WorkerStateEvent> value) The onReady event handler is called whenever the Task state transitions to the READY state.final void
Service.setOnRunning
(EventHandler<WorkerStateEvent> value) The onRunning event handler is called whenever the Task state transitions to the RUNNING state.final void
Task.setOnRunning
(EventHandler<WorkerStateEvent> value) The onRunning event handler is called whenever the Task state transitions to the RUNNING state.final void
Service.setOnScheduled
(EventHandler<WorkerStateEvent> value) The onSchedule event handler is called whenever the Task state transitions to the SCHEDULED state.final void
Task.setOnScheduled
(EventHandler<WorkerStateEvent> value) The onSchedule event handler is called whenever the Task state transitions to the SCHEDULED state.final void
Service.setOnSucceeded
(EventHandler<WorkerStateEvent> value) The onSucceeded event handler is called whenever the Task state transitions to the SUCCEEDED state.final void
Task.setOnSucceeded
(EventHandler<WorkerStateEvent> value) The onSucceeded event handler is called whenever the Task state transitions to the SUCCEEDED state. -
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 the property onContextMenuRequested.final EventHandler<? super ContextMenuEvent>
Scene.getOnContextMenuRequested()
Gets the value of the property onContextMenuRequested.final EventHandler<? super MouseEvent>
Node.getOnDragDetected()
Gets the value of the property onDragDetected.final EventHandler<? super MouseEvent>
Scene.getOnDragDetected()
Gets the value of the property onDragDetected.final EventHandler<? super DragEvent>
Node.getOnDragDone()
Gets the value of the property onDragDone.final EventHandler<? super DragEvent>
Scene.getOnDragDone()
Gets the value of the property onDragDone.final EventHandler<? super DragEvent>
Node.getOnDragDropped()
Gets the value of the property onDragDropped.final EventHandler<? super DragEvent>
Scene.getOnDragDropped()
Gets the value of the property onDragDropped.final EventHandler<? super DragEvent>
Node.getOnDragEntered()
Gets the value of the property onDragEntered.final EventHandler<? super DragEvent>
Scene.getOnDragEntered()
Gets the value of the property onDragEntered.final EventHandler<? super DragEvent>
Node.getOnDragExited()
Gets the value of the property onDragExited.final EventHandler<? super DragEvent>
Scene.getOnDragExited()
Gets the value of the property onDragExited.final EventHandler<? super DragEvent>
Node.getOnDragOver()
Gets the value of the property onDragOver.final EventHandler<? super DragEvent>
Scene.getOnDragOver()
Gets the value of the property onDragOver.final EventHandler<? super InputMethodEvent>
Node.getOnInputMethodTextChanged()
Gets the value of the property onInputMethodTextChanged.final EventHandler<? super InputMethodEvent>
Scene.getOnInputMethodTextChanged()
Gets the value of the property onInputMethodTextChanged.final EventHandler<? super KeyEvent>
Node.getOnKeyPressed()
Gets the value of the property onKeyPressed.final EventHandler<? super KeyEvent>
Scene.getOnKeyPressed()
Gets the value of the property onKeyPressed.final EventHandler<? super KeyEvent>
Node.getOnKeyReleased()
Gets the value of the property onKeyReleased.final EventHandler<? super KeyEvent>
Scene.getOnKeyReleased()
Gets the value of the property onKeyReleased.final EventHandler<? super KeyEvent>
Node.getOnKeyTyped()
Gets the value of the property onKeyTyped.final EventHandler<? super KeyEvent>
Scene.getOnKeyTyped()
Gets the value of the property onKeyTyped.final EventHandler<? super MouseEvent>
Node.getOnMouseClicked()
Gets the value of the property onMouseClicked.final EventHandler<? super MouseEvent>
Scene.getOnMouseClicked()
Gets the value of the property onMouseClicked.final EventHandler<? super MouseDragEvent>
Node.getOnMouseDragEntered()
Gets the value of the property onMouseDragEntered.final EventHandler<? super MouseDragEvent>
Scene.getOnMouseDragEntered()
Gets the value of the property onMouseDragEntered.final EventHandler<? super MouseDragEvent>
Node.getOnMouseDragExited()
Gets the value of the property onMouseDragExited.final EventHandler<? super MouseDragEvent>
Scene.getOnMouseDragExited()
Gets the value of the property onMouseDragExited.final EventHandler<? super MouseEvent>
Node.getOnMouseDragged()
Gets the value of the property onMouseDragged.final EventHandler<? super MouseEvent>
Scene.getOnMouseDragged()
Gets the value of the property onMouseDragged.final EventHandler<? super MouseDragEvent>
Node.getOnMouseDragOver()
Gets the value of the property onMouseDragOver.final EventHandler<? super MouseDragEvent>
Scene.getOnMouseDragOver()
Gets the value of the property onMouseDragOver.final EventHandler<? super MouseDragEvent>
Node.getOnMouseDragReleased()
Gets the value of the property onMouseDragReleased.final EventHandler<? super MouseDragEvent>
Scene.getOnMouseDragReleased()
Gets the value of the property onMouseDragReleased.final EventHandler<? super MouseEvent>
Node.getOnMouseEntered()
Gets the value of the property onMouseEntered.final EventHandler<? super MouseEvent>
Scene.getOnMouseEntered()
Gets the value of the property onMouseEntered.final EventHandler<? super MouseEvent>
Node.getOnMouseExited()
Gets the value of the property onMouseExited.final EventHandler<? super MouseEvent>
Scene.getOnMouseExited()
Gets the value of the property onMouseExited.final EventHandler<? super MouseEvent>
Node.getOnMouseMoved()
Gets the value of the property onMouseMoved.final EventHandler<? super MouseEvent>
Scene.getOnMouseMoved()
Gets the value of the property onMouseMoved.final EventHandler<? super MouseEvent>
Node.getOnMousePressed()
Gets the value of the property onMousePressed.final EventHandler<? super MouseEvent>
Scene.getOnMousePressed()
Gets the value of the property onMousePressed.final EventHandler<? super MouseEvent>
Node.getOnMouseReleased()
Gets the value of the property onMouseReleased.final EventHandler<? super MouseEvent>
Scene.getOnMouseReleased()
Gets the value of the property onMouseReleased.final EventHandler<? super RotateEvent>
Node.getOnRotate()
Gets the value of the property onRotate.final EventHandler<? super RotateEvent>
Scene.getOnRotate()
Gets the value of the property onRotate.final EventHandler<? super RotateEvent>
Node.getOnRotationFinished()
Gets the value of the property onRotationFinished.final EventHandler<? super RotateEvent>
Scene.getOnRotationFinished()
Gets the value of the property onRotationFinished.final EventHandler<? super RotateEvent>
Node.getOnRotationStarted()
Gets the value of the property onRotationStarted.final EventHandler<? super RotateEvent>
Scene.getOnRotationStarted()
Gets the value of the property onRotationStarted.final EventHandler<? super ScrollEvent>
Node.getOnScroll()
Gets the value of the property onScroll.final EventHandler<? super ScrollEvent>
Scene.getOnScroll()
Gets the value of the property onScroll.final EventHandler<? super ScrollEvent>
Node.getOnScrollFinished()
Gets the value of the property onScrollFinished.final EventHandler<? super ScrollEvent>
Scene.getOnScrollFinished()
Gets the value of the property onScrollFinished.final EventHandler<? super ScrollEvent>
Node.getOnScrollStarted()
Gets the value of the property onScrollStarted.final EventHandler<? super ScrollEvent>
Scene.getOnScrollStarted()
Gets the value of the property onScrollStarted.final EventHandler<? super SwipeEvent>
Node.getOnSwipeDown()
Gets the value of the property onSwipeDown.final EventHandler<? super SwipeEvent>
Scene.getOnSwipeDown()
Gets the value of the property onSwipeDown.final EventHandler<? super SwipeEvent>
Node.getOnSwipeLeft()
Gets the value of the property onSwipeLeft.final EventHandler<? super SwipeEvent>
Scene.getOnSwipeLeft()
Gets the value of the property onSwipeLeft.final EventHandler<? super SwipeEvent>
Node.getOnSwipeRight()
Gets the value of the property onSwipeRight.final EventHandler<? super SwipeEvent>
Scene.getOnSwipeRight()
Gets the value of the property onSwipeRight.final EventHandler<? super SwipeEvent>
Node.getOnSwipeUp()
Gets the value of the property onSwipeUp.final EventHandler<? super SwipeEvent>
Scene.getOnSwipeUp()
Gets the value of the property onSwipeUp.final EventHandler<? super TouchEvent>
Node.getOnTouchMoved()
Gets the value of the property onTouchMoved.final EventHandler<? super TouchEvent>
Scene.getOnTouchMoved()
Gets the value of the property onTouchMoved.final EventHandler<? super TouchEvent>
Node.getOnTouchPressed()
Gets the value of the property onTouchPressed.final EventHandler<? super TouchEvent>
Scene.getOnTouchPressed()
Gets the value of the property onTouchPressed.final EventHandler<? super TouchEvent>
Node.getOnTouchReleased()
Gets the value of the property onTouchReleased.final EventHandler<? super TouchEvent>
Scene.getOnTouchReleased()
Gets the value of the property onTouchReleased.final EventHandler<? super TouchEvent>
Node.getOnTouchStationary()
Gets the value of the property onTouchStationary.final EventHandler<? super TouchEvent>
Scene.getOnTouchStationary()
Gets the value of the property onTouchStationary.final EventHandler<? super ZoomEvent>
Node.getOnZoom()
Gets the value of the property onZoom.final EventHandler<? super ZoomEvent>
Scene.getOnZoom()
Gets the value of the property onZoom.final EventHandler<? super ZoomEvent>
Node.getOnZoomFinished()
Gets the value of the property onZoomFinished.final EventHandler<? super ZoomEvent>
Scene.getOnZoomFinished()
Gets the value of the property onZoomFinished.final EventHandler<? super ZoomEvent>
Node.getOnZoomStarted()
Gets the value of the property onZoomStarted.final EventHandler<? super ZoomEvent>
Scene.getOnZoomStarted()
Gets the value of the property onZoomStarted.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 ContextMenuEvent>>
Scene.onContextMenuRequestedProperty()
Defines a function to be called when a mouse button has been clicked (pressed and released) on thisScene
.final ObjectProperty<EventHandler<? super MouseEvent>>
Node.onDragDetectedProperty()
Defines a function to be called when drag gesture has been detected.final ObjectProperty<EventHandler<? super MouseEvent>>
Scene.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>>
Scene.onDragDoneProperty()
Defines a function to be called when thisScene
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>>
Scene.onDragDroppedProperty()
Defines a function to be called when the mouse button is released on thisScene
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>>
Scene.onDragEnteredProperty()
Defines a function to be called when drag gesture enters thisScene
.final ObjectProperty<EventHandler<? super DragEvent>>
Node.onDragExitedProperty()
Defines a function to be called when drag gesture exits thisNode
.final ObjectProperty<EventHandler<? super DragEvent>>
Scene.onDragExitedProperty()
Defines a function to be called when drag gesture exits thisScene
.final ObjectProperty<EventHandler<? super DragEvent>>
Node.onDragOverProperty()
Defines a function to be called when drag gesture progresses within thisNode
.final ObjectProperty<EventHandler<? super DragEvent>>
Scene.onDragOverProperty()
Defines a function to be called when drag gesture progresses within thisScene
.final ObjectProperty<EventHandler<? super InputMethodEvent>>
Defines a function to be called when thisNode
has input focus and the input method text has changed.final ObjectProperty<EventHandler<? super InputMethodEvent>>
Scene.onInputMethodTextChangedProperty()
Defines a function to be called when thisNode
has input focus and the input method text has changed.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 MouseDragEvent>>
Node.onMouseDragEnteredProperty()
Defines a function to be called when a full press-drag-release gesture enters thisNode
.final ObjectProperty<EventHandler<? super MouseDragEvent>>
Scene.onMouseDragEnteredProperty()
Defines a function to be called when a full press-drag-release gesture enters thisScene
.final ObjectProperty<EventHandler<? super MouseDragEvent>>
Node.onMouseDragExitedProperty()
Defines a function to be called when a full press-drag-release gesture leaves thisNode
.final ObjectProperty<EventHandler<? super MouseDragEvent>>
Scene.onMouseDragExitedProperty()
Defines a function to be called when a full press-drag-release gesture exits 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>>
Scene.onMouseDraggedProperty()
Defines a function to be called when a mouse button is pressed on thisScene
and then dragged.final ObjectProperty<EventHandler<? super MouseDragEvent>>
Node.onMouseDragOverProperty()
Defines a function to be called when a full press-drag-release gesture progresses within thisNode
.final ObjectProperty<EventHandler<? super MouseDragEvent>>
Scene.onMouseDragOverProperty()
Defines a function to be called when a full press-drag-release gesture progresses within thisScene
.final ObjectProperty<EventHandler<? super MouseDragEvent>>
Node.onMouseDragReleasedProperty()
Defines a function to be called when a full press-drag-release gesture ends (by releasing mouse button) within thisNode
.final ObjectProperty<EventHandler<? super MouseDragEvent>>
Scene.onMouseDragReleasedProperty()
Defines a function to be called when a full press-drag-release gesture ends within thisScene
.final ObjectProperty<EventHandler<? super MouseEvent>>
Node.onMouseEnteredProperty()
Defines a function to be called when the mouse enters thisNode
.final ObjectProperty<EventHandler<? super MouseEvent>>
Scene.onMouseEnteredProperty()
Defines a function to be called when the mouse enters thisScene
.final ObjectProperty<EventHandler<? super MouseEvent>>
Node.onMouseExitedProperty()
Defines a function to be called when the mouse exits thisNode
.final ObjectProperty<EventHandler<? super MouseEvent>>
Scene.onMouseExitedProperty()
Defines a function to be called when the mouse exits thisScene
.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>>
Scene.onMouseMovedProperty()
Defines a function to be called when mouse cursor moves within thisScene
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 RotateEvent>>
Node.onRotateProperty()
Defines a function to be called when user performs a rotation action.final ObjectProperty<EventHandler<? super RotateEvent>>
Scene.onRotateProperty()
Defines a function to be called when user performs a rotating action.final ObjectProperty<EventHandler<? super RotateEvent>>
Node.onRotationFinishedProperty()
Defines a function to be called when a rotation gesture ends.final ObjectProperty<EventHandler<? super RotateEvent>>
Scene.onRotationFinishedProperty()
Defines a function to be called when a rotating gesture ends.final ObjectProperty<EventHandler<? super RotateEvent>>
Node.onRotationStartedProperty()
Defines a function to be called when a rotation gesture is detected.final ObjectProperty<EventHandler<? super RotateEvent>>
Scene.onRotationStartedProperty()
Defines a function to be called when a rotating gesture is detected.final ObjectProperty<EventHandler<? super ScrollEvent>>
Node.onScrollFinishedProperty()
Defines a function to be called when a scrolling gesture ends.final ObjectProperty<EventHandler<? super ScrollEvent>>
Scene.onScrollFinishedProperty()
Defines a function to be called when a scrolling gesture ends.final ObjectProperty<EventHandler<? super ScrollEvent>>
Node.onScrollProperty()
Defines a function to be called when user performs a scrolling action.final ObjectProperty<EventHandler<? super ScrollEvent>>
Scene.onScrollProperty()
Defines a function to be called when user performs a scrolling action.final ObjectProperty<EventHandler<? super ScrollEvent>>
Node.onScrollStartedProperty()
Defines a function to be called when a scrolling gesture is detected.final ObjectProperty<EventHandler<? super ScrollEvent>>
Scene.onScrollStartedProperty()
Defines a function to be called when a scrolling gesture is detected.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>>
Scene.onSwipeDownProperty()
Defines a function to be called when an downward swipe gesture happens in this scene.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>>
Scene.onSwipeLeftProperty()
Defines a function to be called when an leftward swipe gesture happens in this scene.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>>
Scene.onSwipeRightProperty()
Defines a function to be called when an rightward swipe gesture happens in this scene.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 SwipeEvent>>
Scene.onSwipeUpProperty()
Defines a function to be called when an upward swipe gesture happens in this scene.final ObjectProperty<EventHandler<? super TouchEvent>>
Node.onTouchMovedProperty()
Defines a function to be called when a touch point is moved.final ObjectProperty<EventHandler<? super TouchEvent>>
Scene.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>>
Scene.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>>
Scene.onTouchReleasedProperty()
Defines a function to be called when a new touch point is pressed.final ObjectProperty<EventHandler<? super TouchEvent>>
Node.onTouchStationaryProperty()
Defines a function to be called when a touch point stays pressed and still.final ObjectProperty<EventHandler<? super TouchEvent>>
Scene.onTouchStationaryProperty()
Defines a function to be called when a touch point stays pressed and still.final ObjectProperty<EventHandler<? super ZoomEvent>>
Node.onZoomFinishedProperty()
Defines a function to be called when a zooming gesture ends.final ObjectProperty<EventHandler<? super ZoomEvent>>
Scene.onZoomFinishedProperty()
Defines a function to be called when a zooming gesture ends.final ObjectProperty<EventHandler<? super ZoomEvent>>
Node.onZoomProperty()
Defines a function to be called when user performs a zooming action.final ObjectProperty<EventHandler<? super ZoomEvent>>
Scene.onZoomProperty()
Defines a function to be called when user performs a zooming action.final ObjectProperty<EventHandler<? super ZoomEvent>>
Node.onZoomStartedProperty()
Defines a function to be called when a zooming gesture is detected.final ObjectProperty<EventHandler<? super ZoomEvent>>
Scene.onZoomStartedProperty()
Defines a function to be called when a zooming gesture is detected.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 the property onContextMenuRequested.final void
Scene.setOnContextMenuRequested
(EventHandler<? super ContextMenuEvent> value) Sets the value of the property onContextMenuRequested.final void
Node.setOnDragDetected
(EventHandler<? super MouseEvent> value) Sets the value of the property onDragDetected.final void
Scene.setOnDragDetected
(EventHandler<? super MouseEvent> value) Sets the value of the property onDragDetected.final void
Node.setOnDragDone
(EventHandler<? super DragEvent> value) Sets the value of the property onDragDone.final void
Scene.setOnDragDone
(EventHandler<? super DragEvent> value) Sets the value of the property onDragDone.final void
Node.setOnDragDropped
(EventHandler<? super DragEvent> value) Sets the value of the property onDragDropped.final void
Scene.setOnDragDropped
(EventHandler<? super DragEvent> value) Sets the value of the property onDragDropped.final void
Node.setOnDragEntered
(EventHandler<? super DragEvent> value) Sets the value of the property onDragEntered.final void
Scene.setOnDragEntered
(EventHandler<? super DragEvent> value) Sets the value of the property onDragEntered.final void
Node.setOnDragExited
(EventHandler<? super DragEvent> value) Sets the value of the property onDragExited.final void
Scene.setOnDragExited
(EventHandler<? super DragEvent> value) Sets the value of the property onDragExited.final void
Node.setOnDragOver
(EventHandler<? super DragEvent> value) Sets the value of the property onDragOver.final void
Scene.setOnDragOver
(EventHandler<? super DragEvent> value) Sets the value of the property onDragOver.final void
Node.setOnInputMethodTextChanged
(EventHandler<? super InputMethodEvent> value) Sets the value of the property onInputMethodTextChanged.final void
Scene.setOnInputMethodTextChanged
(EventHandler<? super InputMethodEvent> value) Sets the value of the property onInputMethodTextChanged.final void
Node.setOnKeyPressed
(EventHandler<? super KeyEvent> value) Sets the value of the property onKeyPressed.final void
Scene.setOnKeyPressed
(EventHandler<? super KeyEvent> value) Sets the value of the property onKeyPressed.final void
Node.setOnKeyReleased
(EventHandler<? super KeyEvent> value) Sets the value of the property onKeyReleased.final void
Scene.setOnKeyReleased
(EventHandler<? super KeyEvent> value) Sets the value of the property onKeyReleased.final void
Node.setOnKeyTyped
(EventHandler<? super KeyEvent> value) Sets the value of the property onKeyTyped.final void
Scene.setOnKeyTyped
(EventHandler<? super KeyEvent> value) Sets the value of the property onKeyTyped.final void
Node.setOnMouseClicked
(EventHandler<? super MouseEvent> value) Sets the value of the property onMouseClicked.final void
Scene.setOnMouseClicked
(EventHandler<? super MouseEvent> value) Sets the value of the property onMouseClicked.final void
Node.setOnMouseDragEntered
(EventHandler<? super MouseDragEvent> value) Sets the value of the property onMouseDragEntered.final void
Scene.setOnMouseDragEntered
(EventHandler<? super MouseDragEvent> value) Sets the value of the property onMouseDragEntered.final void
Node.setOnMouseDragExited
(EventHandler<? super MouseDragEvent> value) Sets the value of the property onMouseDragExited.final void
Scene.setOnMouseDragExited
(EventHandler<? super MouseDragEvent> value) Sets the value of the property onMouseDragExited.final void
Node.setOnMouseDragged
(EventHandler<? super MouseEvent> value) Sets the value of the property onMouseDragged.final void
Scene.setOnMouseDragged
(EventHandler<? super MouseEvent> value) Sets the value of the property onMouseDragged.final void
Node.setOnMouseDragOver
(EventHandler<? super MouseDragEvent> value) Sets the value of the property onMouseDragOver.final void
Scene.setOnMouseDragOver
(EventHandler<? super MouseDragEvent> value) Sets the value of the property onMouseDragOver.final void
Node.setOnMouseDragReleased
(EventHandler<? super MouseDragEvent> value) Sets the value of the property onMouseDragReleased.final void
Scene.setOnMouseDragReleased
(EventHandler<? super MouseDragEvent> value) Sets the value of the property onMouseDragReleased.final void
Node.setOnMouseEntered
(EventHandler<? super MouseEvent> value) Sets the value of the property onMouseEntered.final void
Scene.setOnMouseEntered
(EventHandler<? super MouseEvent> value) Sets the value of the property onMouseEntered.final void
Node.setOnMouseExited
(EventHandler<? super MouseEvent> value) Sets the value of the property onMouseExited.final void
Scene.setOnMouseExited
(EventHandler<? super MouseEvent> value) Sets the value of the property onMouseExited.final void
Node.setOnMouseMoved
(EventHandler<? super MouseEvent> value) Sets the value of the property onMouseMoved.final void
Scene.setOnMouseMoved
(EventHandler<? super MouseEvent> value) Sets the value of the property onMouseMoved.final void
Node.setOnMousePressed
(EventHandler<? super MouseEvent> value) Sets the value of the property onMousePressed.final void
Scene.setOnMousePressed
(EventHandler<? super MouseEvent> value) Sets the value of the property onMousePressed.final void
Node.setOnMouseReleased
(EventHandler<? super MouseEvent> value) Sets the value of the property onMouseReleased.final void
Scene.setOnMouseReleased
(EventHandler<? super MouseEvent> value) Sets the value of the property onMouseReleased.final void
Node.setOnRotate
(EventHandler<? super RotateEvent> value) Sets the value of the property onRotate.final void
Scene.setOnRotate
(EventHandler<? super RotateEvent> value) Sets the value of the property onRotate.final void
Node.setOnRotationFinished
(EventHandler<? super RotateEvent> value) Sets the value of the property onRotationFinished.final void
Scene.setOnRotationFinished
(EventHandler<? super RotateEvent> value) Sets the value of the property onRotationFinished.final void
Node.setOnRotationStarted
(EventHandler<? super RotateEvent> value) Sets the value of the property onRotationStarted.final void
Scene.setOnRotationStarted
(EventHandler<? super RotateEvent> value) Sets the value of the property onRotationStarted.final void
Node.setOnScroll
(EventHandler<? super ScrollEvent> value) Sets the value of the property onScroll.final void
Scene.setOnScroll
(EventHandler<? super ScrollEvent> value) Sets the value of the property onScroll.final void
Node.setOnScrollFinished
(EventHandler<? super ScrollEvent> value) Sets the value of the property onScrollFinished.final void
Scene.setOnScrollFinished
(EventHandler<? super ScrollEvent> value) Sets the value of the property onScrollFinished.final void
Node.setOnScrollStarted
(EventHandler<? super ScrollEvent> value) Sets the value of the property onScrollStarted.final void
Scene.setOnScrollStarted
(EventHandler<? super ScrollEvent> value) Sets the value of the property onScrollStarted.final void
Node.setOnSwipeDown
(EventHandler<? super SwipeEvent> value) Sets the value of the property onSwipeDown.final void
Scene.setOnSwipeDown
(EventHandler<? super SwipeEvent> value) Sets the value of the property onSwipeDown.final void
Node.setOnSwipeLeft
(EventHandler<? super SwipeEvent> value) Sets the value of the property onSwipeLeft.final void
Scene.setOnSwipeLeft
(EventHandler<? super SwipeEvent> value) Sets the value of the property onSwipeLeft.final void
Node.setOnSwipeRight
(EventHandler<? super SwipeEvent> value) Sets the value of the property onSwipeRight.final void
Scene.setOnSwipeRight
(EventHandler<? super SwipeEvent> value) Sets the value of the property onSwipeRight.final void
Node.setOnSwipeUp
(EventHandler<? super SwipeEvent> value) Sets the value of the property onSwipeUp.final void
Scene.setOnSwipeUp
(EventHandler<? super SwipeEvent> value) Sets the value of the property onSwipeUp.final void
Node.setOnTouchMoved
(EventHandler<? super TouchEvent> value) Sets the value of the property onTouchMoved.final void
Scene.setOnTouchMoved
(EventHandler<? super TouchEvent> value) Sets the value of the property onTouchMoved.final void
Node.setOnTouchPressed
(EventHandler<? super TouchEvent> value) Sets the value of the property onTouchPressed.final void
Scene.setOnTouchPressed
(EventHandler<? super TouchEvent> value) Sets the value of the property onTouchPressed.final void
Node.setOnTouchReleased
(EventHandler<? super TouchEvent> value) Sets the value of the property onTouchReleased.final void
Scene.setOnTouchReleased
(EventHandler<? super TouchEvent> value) Sets the value of the property onTouchReleased.final void
Node.setOnTouchStationary
(EventHandler<? super TouchEvent> value) Sets the value of the property onTouchStationary.final void
Scene.setOnTouchStationary
(EventHandler<? super TouchEvent> value) Sets the value of the property onTouchStationary.final void
Node.setOnZoom
(EventHandler<? super ZoomEvent> value) Sets the value of the property onZoom.final void
Scene.setOnZoom
(EventHandler<? super ZoomEvent> value) Sets the value of the property onZoom.final void
Node.setOnZoomFinished
(EventHandler<? super ZoomEvent> value) Sets the value of the property onZoomFinished.final void
Scene.setOnZoomFinished
(EventHandler<? super ZoomEvent> value) Sets the value of the property onZoomFinished.final void
Node.setOnZoomStarted
(EventHandler<? super ZoomEvent> value) Sets the value of the property onZoomStarted.final void
Scene.setOnZoomStarted
(EventHandler<? super ZoomEvent> value) Sets the value of the property onZoomStarted. -
Uses of EventHandler in javafx.scene.control
Modifier and TypeMethodDescriptionfinal EventHandler<ActionEvent>
ButtonBase.getOnAction()
Gets the value of the property onAction.final EventHandler<ActionEvent>
ChoiceBox.getOnAction()
Gets the value of the property onAction.final EventHandler<ActionEvent>
ComboBoxBase.getOnAction()
Gets the value of the property onAction.final EventHandler<ActionEvent>
ContextMenu.getOnAction()
Gets the value of the property onAction.final EventHandler<ActionEvent>
MenuItem.getOnAction()
Gets the value of the property onAction.final EventHandler<ActionEvent>
TextField.getOnAction()
Gets the value of the property onAction.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 the property onCloseRequest.Tab.getOnCloseRequest()
Gets the value of the property onCloseRequest.final EventHandler<ListView.EditEvent<T>>
ListView.getOnEditCancel()
Returns theEventHandler
that will be called when the user cancels an edit.final EventHandler<TableColumn.CellEditEvent<S,
T>> TableColumn.getOnEditCancel()
Gets the value of the property onEditCancel.final EventHandler<TreeTableColumn.CellEditEvent<S,
T>> TreeTableColumn.getOnEditCancel()
Gets the value of the property onEditCancel.final EventHandler<TreeView.EditEvent<T>>
TreeView.getOnEditCancel()
Returns theEventHandler
that will be called when the user cancels an edit.final EventHandler<ListView.EditEvent<T>>
ListView.getOnEditCommit()
Returns theEventHandler
that will be called when the user commits an edit.final EventHandler<TableColumn.CellEditEvent<S,
T>> TableColumn.getOnEditCommit()
Gets the value of the property onEditCommit.final EventHandler<TreeTableColumn.CellEditEvent<S,
T>> TreeTableColumn.getOnEditCommit()
Gets the value of the property onEditCommit.final EventHandler<TreeView.EditEvent<T>>
TreeView.getOnEditCommit()
Returns theEventHandler
that will be called when the user commits an edit.final EventHandler<ListView.EditEvent<T>>
ListView.getOnEditStart()
Returns theEventHandler
that will be called when the user begins an edit.final EventHandler<TableColumn.CellEditEvent<S,
T>> TableColumn.getOnEditStart()
Gets the value of the property onEditStart.final EventHandler<TreeTableColumn.CellEditEvent<S,
T>> TreeTableColumn.getOnEditStart()
Gets the value of the property onEditStart.final EventHandler<TreeView.EditEvent<T>>
TreeView.getOnEditStart()
Returns theEventHandler
that will be called when the user begins an edit.final EventHandler<Event>
ChoiceBox.getOnHidden()
Gets the value of the property onHidden.final EventHandler<Event>
ComboBoxBase.getOnHidden()
Gets the value of the property onHidden.final EventHandler<DialogEvent>
Dialog.getOnHidden()
Gets the value of the property onHidden.final EventHandler<Event>
Menu.getOnHidden()
Gets the value of the property onHidden.final EventHandler<Event>
MenuButton.getOnHidden()
Gets the value of the property onHidden.final EventHandler<Event>
ChoiceBox.getOnHiding()
Gets the value of the property onHiding.final EventHandler<Event>
ComboBoxBase.getOnHiding()
Gets the value of the property onHiding.final EventHandler<DialogEvent>
Dialog.getOnHiding()
Gets the value of the property onHiding.final EventHandler<Event>
Menu.getOnHiding()
Gets the value of the property onHiding.final EventHandler<Event>
MenuButton.getOnHiding()
Gets the value of the property onHiding.final EventHandler<Event>
MenuItem.getOnMenuValidation()
Gets the value of the property onMenuValidation.ListView.getOnScrollTo()
Gets the value of the property onScrollTo.TableView.getOnScrollTo()
Gets the value of the property onScrollTo.TreeTableView.getOnScrollTo()
Gets the value of the property onScrollTo.TreeView.getOnScrollTo()
Gets the value of the property onScrollTo.TableView.getOnScrollToColumn()
Gets the value of the property onScrollToColumn.TreeTableView.getOnScrollToColumn()
Gets the value of the property onScrollToColumn.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 the property onShowing.final EventHandler<Event>
ComboBoxBase.getOnShowing()
Gets the value of the property onShowing.final EventHandler<DialogEvent>
Dialog.getOnShowing()
Gets the value of the property onShowing.final EventHandler<Event>
Menu.getOnShowing()
Gets the value of the property onShowing.final EventHandler<Event>
MenuButton.getOnShowing()
Gets the value of the property onShowing.final EventHandler<Event>
ChoiceBox.getOnShown()
Gets the value of the property onShown.final EventHandler<Event>
ComboBoxBase.getOnShown()
Gets the value of the property onShown.final EventHandler<DialogEvent>
Dialog.getOnShown()
Gets the value of the property onShown.final EventHandler<Event>
Menu.getOnShown()
Gets the value of the property onShown.final EventHandler<Event>
MenuButton.getOnShown()
Gets the value of the property onShown.TableView.getOnSort()
Gets the value of the property onSort.TreeTableView.getOnSort()
Gets the value of the property onSort.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<ListView.EditEvent<T>>>
ListView.onEditCancelProperty()
This event handler will be fired when the user cancels editing a cell.TableColumn.onEditCancelProperty()
This event handler will be fired when the user cancels editing a cell.TreeTableColumn.onEditCancelProperty()
This event handler will be fired when the user cancels editing a cell.final ObjectProperty<EventHandler<TreeView.EditEvent<T>>>
TreeView.onEditCancelProperty()
This event handler will be fired when the user cancels editing a cell.final ObjectProperty<EventHandler<ListView.EditEvent<T>>>
ListView.onEditCommitProperty()
This property is used when the user performs an action that should result in their editing input being persisted.TableColumn.onEditCommitProperty()
This event handler will be fired when the user successfully commits their editing.TreeTableColumn.onEditCommitProperty()
This event handler will be fired when the user successfully commits their editing.final ObjectProperty<EventHandler<TreeView.EditEvent<T>>>
TreeView.onEditCommitProperty()
This property is used when the user performs an action that should result in their editing input being persisted.final ObjectProperty<EventHandler<ListView.EditEvent<T>>>
ListView.onEditStartProperty()
This event handler will be fired when the user successfully initiates editing.TableColumn.onEditStartProperty()
This event handler will be fired when the user successfully initiates editing.TreeTableColumn.onEditStartProperty()
This event handler will be fired when the user successfully initiates editing.final ObjectProperty<EventHandler<TreeView.EditEvent<T>>>
TreeView.onEditStartProperty()
This event handler will be fired when the user successfully initiates editing.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>>
MenuButton.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>>
MenuButton.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.TableView.onScrollToColumnProperty()
Called when there's a request to scroll a column into view usingTableView.scrollToColumn(TableColumn)
orTableView.scrollToColumnIndex(int)
TreeTableView.onScrollToColumnProperty()
Called when there's a request to scroll a column into view usingTreeTableView.scrollToColumn(TreeTableColumn)
orTreeTableView.scrollToColumnIndex(int)
ListView.onScrollToProperty()
Called when there's a request to scroll an index into view usingListView.scrollTo(int)
orListView.scrollTo(Object)
TableView.onScrollToProperty()
Called when there's a request to scroll an index into view usingTableView.scrollTo(int)
orTableView.scrollTo(Object)
TreeTableView.onScrollToProperty()
Called when there's a request to scroll an index into view usingTreeTableView.scrollTo(int)
TreeView.onScrollToProperty()
Called when there's a request to scroll an index into view usingTreeView.scrollTo(int)
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>>
MenuButton.onShowingProperty()
Called just prior to theContextMenu
being shown.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.final ObjectProperty<EventHandler<Event>>
MenuButton.onShownProperty()
Called just after theContextMenu
is shown.TableView.onSortProperty()
Called when there's a request to sort the control.TreeTableView.onSortProperty()
Called when there's a request to sort the control.Modifier and TypeMethodDescription<E extends Event>
voidMenuItem.addEventHandler
(EventType<E> eventType, EventHandler<E> eventHandler) Registers an event handler to this MenuItem.<E extends Event>
voidTableColumnBase.addEventHandler
(EventType<E> eventType, EventHandler<E> eventHandler) Registers an event handler to this table column.<E extends Event>
voidTreeItem.addEventHandler
(EventType<E> eventType, EventHandler<E> eventHandler) Registers an event handler to this TreeItem.<E extends Event>
voidMenuItem.removeEventHandler
(EventType<E> eventType, EventHandler<E> eventHandler) Unregisters a previously registered event handler from this MenuItem.<E extends Event>
voidTableColumnBase.removeEventHandler
(EventType<E> eventType, EventHandler<E> eventHandler) Unregisters a previously registered event handler from this table column.<E extends Event>
voidTreeItem.removeEventHandler
(EventType<E> eventType, EventHandler<E> eventHandler) Unregisters a previously registered event handler from this TreeItem.final void
ButtonBase.setOnAction
(EventHandler<ActionEvent> value) Sets the value of the property onAction.final void
ChoiceBox.setOnAction
(EventHandler<ActionEvent> value) Sets the value of the property onAction.final void
ComboBoxBase.setOnAction
(EventHandler<ActionEvent> value) Sets the value of the property onAction.final void
ContextMenu.setOnAction
(EventHandler<ActionEvent> value) Sets the value of the property onAction.final void
MenuItem.setOnAction
(EventHandler<ActionEvent> value) Sets the value of the property onAction.final void
TextField.setOnAction
(EventHandler<ActionEvent> value) Sets the value of the property onAction.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 the property onCloseRequest.void
Tab.setOnCloseRequest
(EventHandler<Event> value) Sets the value of the property onCloseRequest.final void
ListView.setOnEditCancel
(EventHandler<ListView.EditEvent<T>> value) Sets theEventHandler
that will be called when the user cancels an edit.final void
TableColumn.setOnEditCancel
(EventHandler<TableColumn.CellEditEvent<S, T>> value) Sets the value of the property onEditCancel.final void
TreeTableColumn.setOnEditCancel
(EventHandler<TreeTableColumn.CellEditEvent<S, T>> value) Sets the value of the property onEditCancel.final void
TreeView.setOnEditCancel
(EventHandler<TreeView.EditEvent<T>> value) Sets theEventHandler
that will be called when the user cancels an edit.final void
ListView.setOnEditCommit
(EventHandler<ListView.EditEvent<T>> value) Sets theEventHandler
that will be called when the user has completed their editing.final void
TableColumn.setOnEditCommit
(EventHandler<TableColumn.CellEditEvent<S, T>> value) Sets the value of the property onEditCommit.final void
TreeTableColumn.setOnEditCommit
(EventHandler<TreeTableColumn.CellEditEvent<S, T>> value) Sets the value of the property onEditCommit.final void
TreeView.setOnEditCommit
(EventHandler<TreeView.EditEvent<T>> value) Sets theEventHandler
that will be called when the user commits an edit.final void
ListView.setOnEditStart
(EventHandler<ListView.EditEvent<T>> value) Sets theEventHandler
that will be called when the user begins an edit.final void
TableColumn.setOnEditStart
(EventHandler<TableColumn.CellEditEvent<S, T>> value) Sets the value of the property onEditStart.final void
TreeTableColumn.setOnEditStart
(EventHandler<TreeTableColumn.CellEditEvent<S, T>> value) Sets the value of the property onEditStart.final void
TreeView.setOnEditStart
(EventHandler<TreeView.EditEvent<T>> value) Sets theEventHandler
that will be called when the user begins an edit.final void
ChoiceBox.setOnHidden
(EventHandler<Event> value) Sets the value of the property onHidden.final void
ComboBoxBase.setOnHidden
(EventHandler<Event> value) Sets the value of the property onHidden.final void
Dialog.setOnHidden
(EventHandler<DialogEvent> value) Sets the value of the property onHidden.final void
Menu.setOnHidden
(EventHandler<Event> value) Sets the value of the property onHidden.final void
MenuButton.setOnHidden
(EventHandler<Event> value) Sets the value of the property onHidden.final void
ChoiceBox.setOnHiding
(EventHandler<Event> value) Sets the value of the property onHiding.final void
ComboBoxBase.setOnHiding
(EventHandler<Event> value) Sets the value of the property onHiding.final void
Dialog.setOnHiding
(EventHandler<DialogEvent> value) Sets the value of the property onHiding.final void
Menu.setOnHiding
(EventHandler<Event> value) Sets the value of the property onHiding.final void
MenuButton.setOnHiding
(EventHandler<Event> value) Sets the value of the property onHiding.final void
MenuItem.setOnMenuValidation
(EventHandler<Event> value) Sets the value of the property onMenuValidation.void
ListView.setOnScrollTo
(EventHandler<ScrollToEvent<Integer>> value) Sets the value of the property onScrollTo.void
TableView.setOnScrollTo
(EventHandler<ScrollToEvent<Integer>> value) Sets the value of the property onScrollTo.void
TreeTableView.setOnScrollTo
(EventHandler<ScrollToEvent<Integer>> value) Sets the value of the property onScrollTo.void
TreeView.setOnScrollTo
(EventHandler<ScrollToEvent<Integer>> value) Sets the value of the property onScrollTo.void
TableView.setOnScrollToColumn
(EventHandler<ScrollToEvent<TableColumn<S, ?>>> value) Sets the value of the property onScrollToColumn.void
TreeTableView.setOnScrollToColumn
(EventHandler<ScrollToEvent<TreeTableColumn<S, ?>>> value) Sets the value of the property onScrollToColumn.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 the property onShowing.final void
ComboBoxBase.setOnShowing
(EventHandler<Event> value) Sets the value of the property onShowing.final void
Dialog.setOnShowing
(EventHandler<DialogEvent> value) Sets the value of the property onShowing.final void
Menu.setOnShowing
(EventHandler<Event> value) Sets the value of the property onShowing.final void
MenuButton.setOnShowing
(EventHandler<Event> value) Sets the value of the property onShowing.final void
ChoiceBox.setOnShown
(EventHandler<Event> value) Sets the value of the property onShown.final void
ComboBoxBase.setOnShown
(EventHandler<Event> value) Sets the value of the property onShown.final void
Dialog.setOnShown
(EventHandler<DialogEvent> value) Sets the value of the property onShown.final void
Menu.setOnShown
(EventHandler<Event> value) Sets the value of the property onShown.final void
MenuButton.setOnShown
(EventHandler<Event> value) Sets the value of the property onShown.void
TableView.setOnSort
(EventHandler<SortEvent<TableView<S>>> value) Sets the value of the property onSort.void
TreeTableView.setOnSort
(EventHandler<SortEvent<TreeTableView<S>>> value) Sets the value of the property onSort. -
Uses of EventHandler in javafx.scene.media
Modifier and TypeMethodDescriptionfinal EventHandler<MediaErrorEvent>
MediaView.getOnError()
Retrieves the error event handler.final EventHandler<MediaMarkerEvent>
MediaPlayer.getOnMarker()
Retrieves the marker event handler.Modifier and TypeMethodDescriptionMediaView.onErrorProperty()
Event handler to be invoked whenever an error occurs on thisMediaView
.MediaPlayer.onMarkerProperty()
Event handler invoked when the playercurrentTime
reaches a media marker.Modifier and TypeMethodDescriptionfinal void
MediaView.setOnError
(EventHandler<MediaErrorEvent> value) Sets the error event handler.final void
MediaPlayer.setOnMarker
(EventHandler<MediaMarkerEvent> onMarker) Sets the marker event handler. -
Uses of EventHandler in javafx.scene.transform
Modifier and TypeMethodDescriptionfinal EventHandler<? super TransformChangedEvent>
Transform.getOnTransformChanged()
Gets the onTransformChanged event handler.Modifier and TypeMethodDescriptionfinal ObjectProperty<EventHandler<? super TransformChangedEvent>>
Transform.onTransformChangedProperty()
The onTransformChanged event handler is called whenever the transform changes any of its parameters.Modifier and TypeMethodDescriptionfinal <T extends Event>
voidTransform.addEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter to this transform.final <T extends Event>
voidTransform.addEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler to this transform.final <T extends Event>
voidTransform.removeEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter from this transform.final <T extends Event>
voidTransform.removeEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler from this transform.final void
Transform.setOnTransformChanged
(EventHandler<? super TransformChangedEvent> value) Sets the onTransformChanged event handler which is called whenever the transform changes any of its parameters. -
Uses of EventHandler in javafx.scene.web
Modifier and TypeMethodDescriptionfinal EventHandler<WebEvent<String>>
WebEngine.getOnAlert()
Gets the value of the property onAlert.final EventHandler<WebErrorEvent>
WebEngine.getOnError()
Gets the value of the property onError.final EventHandler<WebEvent<Rectangle2D>>
WebEngine.getOnResized()
Gets the value of the property onResized.final EventHandler<WebEvent<String>>
WebEngine.getOnStatusChanged()
Gets the value of the property onStatusChanged.final EventHandler<WebEvent<Boolean>>
WebEngine.getOnVisibilityChanged()
Gets the value of the property onVisibilityChanged.Modifier and TypeMethodDescriptionfinal ObjectProperty<EventHandler<WebEvent<String>>>
WebEngine.onAlertProperty()
JavaScriptalert
handler property.final ObjectProperty<EventHandler<WebErrorEvent>>
WebEngine.onErrorProperty()
The event handler called when an error occurs.final ObjectProperty<EventHandler<WebEvent<Rectangle2D>>>
WebEngine.onResizedProperty()
JavaScript window resize handler property.final ObjectProperty<EventHandler<WebEvent<String>>>
WebEngine.onStatusChangedProperty()
JavaScript status handler property.final ObjectProperty<EventHandler<WebEvent<Boolean>>>
WebEngine.onVisibilityChangedProperty()
JavaScript window visibility handler property.Modifier and TypeMethodDescriptionfinal void
WebEngine.setOnAlert
(EventHandler<WebEvent<String>> handler) Sets the value of the property onAlert.final void
WebEngine.setOnError
(EventHandler<WebErrorEvent> handler) Sets the value of the property onError.final void
WebEngine.setOnResized
(EventHandler<WebEvent<Rectangle2D>> handler) Sets the value of the property onResized.final void
WebEngine.setOnStatusChanged
(EventHandler<WebEvent<String>> handler) Sets the value of the property onStatusChanged.final void
WebEngine.setOnVisibilityChanged
(EventHandler<WebEvent<Boolean>> handler) Sets the value of the property onVisibilityChanged. -
Uses of EventHandler in javafx.stage
Modifier and TypeMethodDescriptionfinal EventHandler<Event>
PopupWindow.getOnAutoHide()
Gets the value of the property onAutoHide.final EventHandler<WindowEvent>
Window.getOnCloseRequest()
Gets the value of the property onCloseRequest.final EventHandler<WindowEvent>
Window.getOnHidden()
Gets the value of the property onHidden.final EventHandler<WindowEvent>
Window.getOnHiding()
Gets the value of the property onHiding.final EventHandler<WindowEvent>
Window.getOnShowing()
Gets the value of the property onShowing.final EventHandler<WindowEvent>
Window.getOnShown()
Gets the value of the property onShown.Modifier and TypeMethodDescriptionfinal ObjectProperty<EventHandler<Event>>
PopupWindow.onAutoHideProperty()
Called after autoHide is run.final ObjectProperty<EventHandler<WindowEvent>>
Window.onCloseRequestProperty()
Called when there is an external request to close thisWindow
.final ObjectProperty<EventHandler<WindowEvent>>
Window.onHiddenProperty()
Called just after the Window has been hidden.final ObjectProperty<EventHandler<WindowEvent>>
Window.onHidingProperty()
Called just prior to the Window being hidden.final ObjectProperty<EventHandler<WindowEvent>>
Window.onShowingProperty()
Called just prior to the Window being shown.final ObjectProperty<EventHandler<WindowEvent>>
Window.onShownProperty()
Called just after the Window is shown.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
PopupWindow.setOnAutoHide
(EventHandler<Event> value) Sets the value of the property onAutoHide.final void
Window.setOnCloseRequest
(EventHandler<WindowEvent> value) Sets the value of the property onCloseRequest.final void
Window.setOnHidden
(EventHandler<WindowEvent> value) Sets the value of the property onHidden.final void
Window.setOnHiding
(EventHandler<WindowEvent> value) Sets the value of the property onHiding.final void
Window.setOnShowing
(EventHandler<WindowEvent> value) Sets the value of the property onShowing.final void
Window.setOnShown
(EventHandler<WindowEvent> value) Sets the value of the property onShown.