Uses of Interface
javafx.event.EventHandler
| Package | Description |
|---|---|
| javafx.animation |
Provides the set of classes for ease of use transition based animations.
|
| javafx.concurrent |
Provides the set of classes for javafx.task.
|
| javafx.event |
Provides basic framework for FX events, their delivery and handling.
|
| javafx.scene |
Provides the core set of base
classes for the JavaFX Scene Graph API.
|
| javafx.scene.control |
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.
|
| javafx.scene.media |
Provides the set of classes for integrating audio and video into Java FX
Applications.
|
| javafx.scene.transform |
Provides the set of convenient classes to perform rotating, scaling,
shearing, and translation transformations for
Affine objects. |
| javafx.scene.web |
This package provides means for loading and displaying Web content.
|
| javafx.stage |
Provides the top-level container classes for JavaFX content.
|
-
Uses of EventHandler in javafx.animation
Methods in javafx.animation that return EventHandler Modifier and Type Method Description EventHandler<ActionEvent>Animation. getOnFinished()Gets the value of the property onFinished.EventHandler<ActionEvent>KeyFrame. getOnFinished()Returns theonFinishedevent handler of thisKeyFrame.Methods in javafx.animation that return types with arguments of type EventHandler Modifier and Type Method Description ObjectProperty<EventHandler<ActionEvent>>Animation. onFinishedProperty()The action to be executed at the conclusion of thisAnimation.Methods in javafx.animation with parameters of type EventHandler Modifier and Type Method Description voidAnimation. setOnFinished(EventHandler<ActionEvent> value)Sets the value of the property onFinished.Constructors in javafx.animation with parameters of type EventHandler Constructor Description KeyFrame(Duration time, String name, EventHandler<ActionEvent> onFinished, Collection<KeyValue> values)Constructor ofKeyFrameKeyFrame(Duration time, String name, EventHandler<ActionEvent> onFinished, KeyValue... values)Constructor ofKeyFrameKeyFrame(Duration time, EventHandler<ActionEvent> onFinished, KeyValue... values)Constructor ofKeyFrame -
Uses of EventHandler in javafx.concurrent
Methods in javafx.concurrent that return EventHandler Modifier and Type Method Description EventHandler<WorkerStateEvent>Service. getOnCancelled()The onCancelled event handler is called whenever the Task state transitions to the CANCELLED state.EventHandler<WorkerStateEvent>Task. getOnCancelled()The onCancelled event handler is called whenever the Task state transitions to the CANCELLED state.EventHandler<WorkerStateEvent>Service. getOnFailed()The onFailed event handler is called whenever the Task state transitions to the FAILED state.EventHandler<WorkerStateEvent>Task. getOnFailed()The onFailed event handler is called whenever the Task state transitions to the FAILED state.EventHandler<WorkerStateEvent>Service. getOnReady()The onReady event handler is called whenever the Task state transitions to the READY state.EventHandler<WorkerStateEvent>Service. getOnRunning()The onRunning event handler is called whenever the Task state transitions to the RUNNING state.EventHandler<WorkerStateEvent>Task. getOnRunning()The onRunning event handler is called whenever the Task state transitions to the RUNNING state.EventHandler<WorkerStateEvent>Service. getOnScheduled()The onSchedule event handler is called whenever the Task state transitions to the SCHEDULED state.EventHandler<WorkerStateEvent>Task. getOnScheduled()The onSchedule event handler is called whenever the Task state transitions to the SCHEDULED state.EventHandler<WorkerStateEvent>Service. getOnSucceeded()The onSucceeded event handler is called whenever the Task state transitions to the SUCCEEDED state.EventHandler<WorkerStateEvent>Task. getOnSucceeded()The onSucceeded event handler is called whenever the Task state transitions to the SUCCEEDED state.Methods in javafx.concurrent that return types with arguments of type EventHandler Modifier and Type Method Description ObjectProperty<EventHandler<WorkerStateEvent>>Service. onCancelledProperty()The onCancelled event handler is called whenever the Task state transitions to the CANCELLED state.ObjectProperty<EventHandler<WorkerStateEvent>>Task. onCancelledProperty()The onCancelled event handler is called whenever the Task state transitions to the CANCELLED state.ObjectProperty<EventHandler<WorkerStateEvent>>Service. onFailedProperty()The onFailed event handler is called whenever the Task state transitions to the FAILED state.ObjectProperty<EventHandler<WorkerStateEvent>>Task. onFailedProperty()The onFailed event handler is called whenever the Task state transitions to the FAILED state.ObjectProperty<EventHandler<WorkerStateEvent>>Service. onReadyProperty()The onReady event handler is called whenever the Task state transitions to the READY state.ObjectProperty<EventHandler<WorkerStateEvent>>Service. onRunningProperty()The onRunning event handler is called whenever the Task state transitions to the RUNNING state.ObjectProperty<EventHandler<WorkerStateEvent>>Task. onRunningProperty()The onRunning event handler is called whenever the Task state transitions to the RUNNING state.ObjectProperty<EventHandler<WorkerStateEvent>>Service. onScheduledProperty()The onSchedule event handler is called whenever the Task state transitions to the SCHEDULED state.ObjectProperty<EventHandler<WorkerStateEvent>>Task. onScheduledProperty()The onSchedule event handler is called whenever the Task state transitions to the SCHEDULED state.ObjectProperty<EventHandler<WorkerStateEvent>>Service. onSucceededProperty()The onSucceeded event handler is called whenever the Task state transitions to the SUCCEEDED state.ObjectProperty<EventHandler<WorkerStateEvent>>Task. onSucceededProperty()The onSucceeded event handler is called whenever the Task state transitions to the SUCCEEDED state.Methods in javafx.concurrent with parameters of type EventHandler Modifier and Type Method Description <T extends Event>
voidService. addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)Registers an event filter to this task.<T extends Event>
voidTask. addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)Registers an event filter to this task.<T extends Event>
voidService. addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Registers an event handler to this task.<T extends Event>
voidTask. addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Registers an event handler to this task.<T extends Event>
voidService. removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)Unregisters a previously registered event filter from this task.<T extends Event>
voidTask. removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)Unregisters a previously registered event filter from this task.<T extends Event>
voidService. removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Unregisters a previously registered event handler from this task.<T extends Event>
voidTask. removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Unregisters a previously registered event handler from this task.protected <T extends Event>
voidService. setEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Sets the handler to use for this event type.protected <T extends Event>
voidTask. setEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Sets the handler to use for this event type.voidService. setOnCancelled(EventHandler<WorkerStateEvent> value)The onCancelled event handler is called whenever the Task state transitions to the CANCELLED state.voidTask. setOnCancelled(EventHandler<WorkerStateEvent> value)The onCancelled event handler is called whenever the Task state transitions to the CANCELLED state.voidService. setOnFailed(EventHandler<WorkerStateEvent> value)The onFailed event handler is called whenever the Task state transitions to the FAILED state.voidTask. setOnFailed(EventHandler<WorkerStateEvent> value)The onFailed event handler is called whenever the Task state transitions to the FAILED state.voidService. setOnReady(EventHandler<WorkerStateEvent> value)The onReady event handler is called whenever the Task state transitions to the READY state.voidService. setOnRunning(EventHandler<WorkerStateEvent> value)The onRunning event handler is called whenever the Task state transitions to the RUNNING state.voidTask. setOnRunning(EventHandler<WorkerStateEvent> value)The onRunning event handler is called whenever the Task state transitions to the RUNNING state.voidService. setOnScheduled(EventHandler<WorkerStateEvent> value)The onSchedule event handler is called whenever the Task state transitions to the SCHEDULED state.voidTask. setOnScheduled(EventHandler<WorkerStateEvent> value)The onSchedule event handler is called whenever the Task state transitions to the SCHEDULED state.voidService. setOnSucceeded(EventHandler<WorkerStateEvent> value)The onSucceeded event handler is called whenever the Task state transitions to the SUCCEEDED state.voidTask. 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
Classes in javafx.event that implement EventHandler Modifier and Type Class Description classWeakEventHandler<T extends Event>Used in event handler registration in place of its associated event handler.Constructors in javafx.event with parameters of type EventHandler Constructor Description WeakEventHandler(EventHandler<T> eventHandler)Creates a new instance ofWeakEventHandler. -
Uses of EventHandler in javafx.scene
Methods in javafx.scene that return EventHandler Modifier and Type Method Description EventHandler<? super ContextMenuEvent>Node. getOnContextMenuRequested()Gets the value of the property onContextMenuRequested.EventHandler<? super ContextMenuEvent>Scene. getOnContextMenuRequested()Gets the value of the property onContextMenuRequested.EventHandler<? super MouseEvent>Node. getOnDragDetected()Gets the value of the property onDragDetected.EventHandler<? super MouseEvent>Scene. getOnDragDetected()Gets the value of the property onDragDetected.EventHandler<? super DragEvent>Node. getOnDragDone()Gets the value of the property onDragDone.EventHandler<? super DragEvent>Scene. getOnDragDone()Gets the value of the property onDragDone.EventHandler<? super DragEvent>Node. getOnDragDropped()Gets the value of the property onDragDropped.EventHandler<? super DragEvent>Scene. getOnDragDropped()Gets the value of the property onDragDropped.EventHandler<? super DragEvent>Node. getOnDragEntered()Gets the value of the property onDragEntered.EventHandler<? super DragEvent>Scene. getOnDragEntered()Gets the value of the property onDragEntered.EventHandler<? super DragEvent>Node. getOnDragExited()Gets the value of the property onDragExited.EventHandler<? super DragEvent>Scene. getOnDragExited()Gets the value of the property onDragExited.EventHandler<? super DragEvent>Node. getOnDragOver()Gets the value of the property onDragOver.EventHandler<? super DragEvent>Scene. getOnDragOver()Gets the value of the property onDragOver.EventHandler<? super InputMethodEvent>Node. getOnInputMethodTextChanged()Gets the value of the property onInputMethodTextChanged.EventHandler<? super InputMethodEvent>Scene. getOnInputMethodTextChanged()Gets the value of the property onInputMethodTextChanged.EventHandler<? super KeyEvent>Node. getOnKeyPressed()Gets the value of the property onKeyPressed.EventHandler<? super KeyEvent>Scene. getOnKeyPressed()Gets the value of the property onKeyPressed.EventHandler<? super KeyEvent>Node. getOnKeyReleased()Gets the value of the property onKeyReleased.EventHandler<? super KeyEvent>Scene. getOnKeyReleased()Gets the value of the property onKeyReleased.EventHandler<? super KeyEvent>Node. getOnKeyTyped()Gets the value of the property onKeyTyped.EventHandler<? super KeyEvent>Scene. getOnKeyTyped()Gets the value of the property onKeyTyped.EventHandler<? super MouseEvent>Node. getOnMouseClicked()Gets the value of the property onMouseClicked.EventHandler<? super MouseEvent>Scene. getOnMouseClicked()Gets the value of the property onMouseClicked.EventHandler<? super MouseDragEvent>Node. getOnMouseDragEntered()Gets the value of the property onMouseDragEntered.EventHandler<? super MouseDragEvent>Scene. getOnMouseDragEntered()Gets the value of the property onMouseDragEntered.EventHandler<? super MouseDragEvent>Node. getOnMouseDragExited()Gets the value of the property onMouseDragExited.EventHandler<? super MouseDragEvent>Scene. getOnMouseDragExited()Gets the value of the property onMouseDragExited.EventHandler<? super MouseEvent>Node. getOnMouseDragged()Gets the value of the property onMouseDragged.EventHandler<? super MouseEvent>Scene. getOnMouseDragged()Gets the value of the property onMouseDragged.EventHandler<? super MouseDragEvent>Node. getOnMouseDragOver()Gets the value of the property onMouseDragOver.EventHandler<? super MouseDragEvent>Scene. getOnMouseDragOver()Gets the value of the property onMouseDragOver.EventHandler<? super MouseDragEvent>Node. getOnMouseDragReleased()Gets the value of the property onMouseDragReleased.EventHandler<? super MouseDragEvent>Scene. getOnMouseDragReleased()Gets the value of the property onMouseDragReleased.EventHandler<? super MouseEvent>Node. getOnMouseEntered()Gets the value of the property onMouseEntered.EventHandler<? super MouseEvent>Scene. getOnMouseEntered()Gets the value of the property onMouseEntered.EventHandler<? super MouseEvent>Node. getOnMouseExited()Gets the value of the property onMouseExited.EventHandler<? super MouseEvent>Scene. getOnMouseExited()Gets the value of the property onMouseExited.EventHandler<? super MouseEvent>Node. getOnMouseMoved()Gets the value of the property onMouseMoved.EventHandler<? super MouseEvent>Scene. getOnMouseMoved()Gets the value of the property onMouseMoved.EventHandler<? super MouseEvent>Node. getOnMousePressed()Gets the value of the property onMousePressed.EventHandler<? super MouseEvent>Scene. getOnMousePressed()Gets the value of the property onMousePressed.EventHandler<? super MouseEvent>Node. getOnMouseReleased()Gets the value of the property onMouseReleased.EventHandler<? super MouseEvent>Scene. getOnMouseReleased()Gets the value of the property onMouseReleased.EventHandler<? super RotateEvent>Node. getOnRotate()Gets the value of the property onRotate.EventHandler<? super RotateEvent>Scene. getOnRotate()Gets the value of the property onRotate.EventHandler<? super RotateEvent>Node. getOnRotationFinished()Gets the value of the property onRotationFinished.EventHandler<? super RotateEvent>Scene. getOnRotationFinished()Gets the value of the property onRotationFinished.EventHandler<? super RotateEvent>Node. getOnRotationStarted()Gets the value of the property onRotationStarted.EventHandler<? super RotateEvent>Scene. getOnRotationStarted()Gets the value of the property onRotationStarted.EventHandler<? super ScrollEvent>Node. getOnScroll()Gets the value of the property onScroll.EventHandler<? super ScrollEvent>Scene. getOnScroll()Gets the value of the property onScroll.EventHandler<? super ScrollEvent>Node. getOnScrollFinished()Gets the value of the property onScrollFinished.EventHandler<? super ScrollEvent>Scene. getOnScrollFinished()Gets the value of the property onScrollFinished.EventHandler<? super ScrollEvent>Node. getOnScrollStarted()Gets the value of the property onScrollStarted.EventHandler<? super ScrollEvent>Scene. getOnScrollStarted()Gets the value of the property onScrollStarted.EventHandler<? super SwipeEvent>Node. getOnSwipeDown()Gets the value of the property onSwipeDown.EventHandler<? super SwipeEvent>Scene. getOnSwipeDown()Gets the value of the property onSwipeDown.EventHandler<? super SwipeEvent>Node. getOnSwipeLeft()Gets the value of the property onSwipeLeft.EventHandler<? super SwipeEvent>Scene. getOnSwipeLeft()Gets the value of the property onSwipeLeft.EventHandler<? super SwipeEvent>Node. getOnSwipeRight()Gets the value of the property onSwipeRight.EventHandler<? super SwipeEvent>Scene. getOnSwipeRight()Gets the value of the property onSwipeRight.EventHandler<? super SwipeEvent>Node. getOnSwipeUp()Gets the value of the property onSwipeUp.EventHandler<? super SwipeEvent>Scene. getOnSwipeUp()Gets the value of the property onSwipeUp.EventHandler<? super TouchEvent>Node. getOnTouchMoved()Gets the value of the property onTouchMoved.EventHandler<? super TouchEvent>Scene. getOnTouchMoved()Gets the value of the property onTouchMoved.EventHandler<? super TouchEvent>Node. getOnTouchPressed()Gets the value of the property onTouchPressed.EventHandler<? super TouchEvent>Scene. getOnTouchPressed()Gets the value of the property onTouchPressed.EventHandler<? super TouchEvent>Node. getOnTouchReleased()Gets the value of the property onTouchReleased.EventHandler<? super TouchEvent>Scene. getOnTouchReleased()Gets the value of the property onTouchReleased.EventHandler<? super TouchEvent>Node. getOnTouchStationary()Gets the value of the property onTouchStationary.EventHandler<? super TouchEvent>Scene. getOnTouchStationary()Gets the value of the property onTouchStationary.EventHandler<? super ZoomEvent>Node. getOnZoom()Gets the value of the property onZoom.EventHandler<? super ZoomEvent>Scene. getOnZoom()Gets the value of the property onZoom.EventHandler<? super ZoomEvent>Node. getOnZoomFinished()Gets the value of the property onZoomFinished.EventHandler<? super ZoomEvent>Scene. getOnZoomFinished()Gets the value of the property onZoomFinished.EventHandler<? super ZoomEvent>Node. getOnZoomStarted()Gets the value of the property onZoomStarted.EventHandler<? super ZoomEvent>Scene. getOnZoomStarted()Gets the value of the property onZoomStarted.Methods in javafx.scene that return types with arguments of type EventHandler Modifier and Type Method Description ObjectProperty<EventHandler<? super ContextMenuEvent>>Node. onContextMenuRequestedProperty()Defines a function to be called when a context menu has been requested on thisNode.ObjectProperty<EventHandler<? super ContextMenuEvent>>Scene. onContextMenuRequestedProperty()Defines a function to be called when a mouse button has been clicked (pressed and released) on thisScene.ObjectProperty<EventHandler<? super MouseEvent>>Node. onDragDetectedProperty()Defines a function to be called when drag gesture has been detected.ObjectProperty<EventHandler<? super MouseEvent>>Scene. onDragDetectedProperty()Defines a function to be called when drag gesture has been detected.ObjectProperty<EventHandler<? super DragEvent>>Node. onDragDoneProperty()Defines a function to be called when thisNodeis a drag and drop gesture source after its data has been dropped on a drop target.ObjectProperty<EventHandler<? super DragEvent>>Scene. onDragDoneProperty()Defines a function to be called when thisSceneis a drag and drop gesture source after its data has been dropped on a drop target.ObjectProperty<EventHandler<? super DragEvent>>Node. onDragDroppedProperty()Defines a function to be called when the mouse button is released on thisNodeduring drag and drop gesture.ObjectProperty<EventHandler<? super DragEvent>>Scene. onDragDroppedProperty()Defines a function to be called when the mouse button is released on thisSceneduring drag and drop gesture.ObjectProperty<EventHandler<? super DragEvent>>Node. onDragEnteredProperty()Defines a function to be called when drag gesture enters thisNode.ObjectProperty<EventHandler<? super DragEvent>>Scene. onDragEnteredProperty()Defines a function to be called when drag gesture enters thisScene.ObjectProperty<EventHandler<? super DragEvent>>Node. onDragExitedProperty()Defines a function to be called when drag gesture exits thisNode.ObjectProperty<EventHandler<? super DragEvent>>Scene. onDragExitedProperty()Defines a function to be called when drag gesture exits thisScene.ObjectProperty<EventHandler<? super DragEvent>>Node. onDragOverProperty()Defines a function to be called when drag gesture progresses within thisNode.ObjectProperty<EventHandler<? super DragEvent>>Scene. onDragOverProperty()Defines a function to be called when drag gesture progresses within thisScene.ObjectProperty<EventHandler<? super InputMethodEvent>>Node. onInputMethodTextChangedProperty()Defines a function to be called when thisNodehas input focus and the input method text has changed.ObjectProperty<EventHandler<? super InputMethodEvent>>Scene. onInputMethodTextChangedProperty()Defines a function to be called when thisNodehas input focus and the input method text has changed.ObjectProperty<EventHandler<? super KeyEvent>>Node. onKeyPressedProperty()Defines a function to be called when thisNodeor its childNodehas input focus and a key has been pressed.ObjectProperty<EventHandler<? super KeyEvent>>Scene. onKeyPressedProperty()Defines a function to be called when someNodeof thisScenehas input focus and a key has been pressed.ObjectProperty<EventHandler<? super KeyEvent>>Node. onKeyReleasedProperty()Defines a function to be called when thisNodeor its childNodehas input focus and a key has been released.ObjectProperty<EventHandler<? super KeyEvent>>Scene. onKeyReleasedProperty()Defines a function to be called when someNodeof thisScenehas input focus and a key has been released.ObjectProperty<EventHandler<? super KeyEvent>>Node. onKeyTypedProperty()Defines a function to be called when thisNodeor its childNodehas input focus and a key has been typed.ObjectProperty<EventHandler<? super KeyEvent>>Scene. onKeyTypedProperty()Defines a function to be called when someNodeof thisScenehas input focus and a key has been typed.ObjectProperty<EventHandler<? super MouseEvent>>Node. onMouseClickedProperty()Defines a function to be called when a mouse button has been clicked (pressed and released) on thisNode.ObjectProperty<EventHandler<? super MouseEvent>>Scene. onMouseClickedProperty()Defines a function to be called when a mouse button has been clicked (pressed and released) on thisScene.ObjectProperty<EventHandler<? super MouseDragEvent>>Node. onMouseDragEnteredProperty()Defines a function to be called when a full press-drag-release gesture enters thisNode.ObjectProperty<EventHandler<? super MouseDragEvent>>Scene. onMouseDragEnteredProperty()Defines a function to be called when a full press-drag-release gesture enters thisScene.ObjectProperty<EventHandler<? super MouseDragEvent>>Node. onMouseDragExitedProperty()Defines a function to be called when a full press-drag-release gesture leaves thisNode.ObjectProperty<EventHandler<? super MouseDragEvent>>Scene. onMouseDragExitedProperty()Defines a function to be called when a full press-drag-release gesture exits thisScene.ObjectProperty<EventHandler<? super MouseEvent>>Node. onMouseDraggedProperty()Defines a function to be called when a mouse button is pressed on thisNodeand then dragged.ObjectProperty<EventHandler<? super MouseEvent>>Scene. onMouseDraggedProperty()Defines a function to be called when a mouse button is pressed on thisSceneand then dragged.ObjectProperty<EventHandler<? super MouseDragEvent>>Node. onMouseDragOverProperty()Defines a function to be called when a full press-drag-release gesture progresses within thisNode.ObjectProperty<EventHandler<? super MouseDragEvent>>Scene. onMouseDragOverProperty()Defines a function to be called when a full press-drag-release gesture progresses within thisScene.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.ObjectProperty<EventHandler<? super MouseDragEvent>>Scene. onMouseDragReleasedProperty()Defines a function to be called when a full press-drag-release gesture ends within thisScene.ObjectProperty<EventHandler<? super MouseEvent>>Node. onMouseEnteredProperty()Defines a function to be called when the mouse enters thisNode.ObjectProperty<EventHandler<? super MouseEvent>>Scene. onMouseEnteredProperty()Defines a function to be called when the mouse enters thisScene.ObjectProperty<EventHandler<? super MouseEvent>>Node. onMouseExitedProperty()Defines a function to be called when the mouse exits thisNode.ObjectProperty<EventHandler<? super MouseEvent>>Scene. onMouseExitedProperty()Defines a function to be called when the mouse exits thisScene.ObjectProperty<EventHandler<? super MouseEvent>>Node. onMouseMovedProperty()Defines a function to be called when mouse cursor moves within thisNodebut no buttons have been pushed.ObjectProperty<EventHandler<? super MouseEvent>>Scene. onMouseMovedProperty()Defines a function to be called when mouse cursor moves within thisScenebut no buttons have been pushed.ObjectProperty<EventHandler<? super MouseEvent>>Node. onMousePressedProperty()Defines a function to be called when a mouse button has been pressed on thisNode.ObjectProperty<EventHandler<? super MouseEvent>>Scene. onMousePressedProperty()Defines a function to be called when a mouse button has been pressed on thisScene.ObjectProperty<EventHandler<? super MouseEvent>>Node. onMouseReleasedProperty()Defines a function to be called when a mouse button has been released on thisNode.ObjectProperty<EventHandler<? super MouseEvent>>Scene. onMouseReleasedProperty()Defines a function to be called when a mouse button has been released on thisScene.ObjectProperty<EventHandler<? super RotateEvent>>Node. onRotateProperty()Defines a function to be called when user performs a rotation action.ObjectProperty<EventHandler<? super RotateEvent>>Scene. onRotateProperty()Defines a function to be called when user performs a rotating action.ObjectProperty<EventHandler<? super RotateEvent>>Node. onRotationFinishedProperty()Defines a function to be called when a rotation gesture ends.ObjectProperty<EventHandler<? super RotateEvent>>Scene. onRotationFinishedProperty()Defines a function to be called when a rotating gesture ends.ObjectProperty<EventHandler<? super RotateEvent>>Node. onRotationStartedProperty()Defines a function to be called when a rotation gesture is detected.ObjectProperty<EventHandler<? super RotateEvent>>Scene. onRotationStartedProperty()Defines a function to be called when a rotating gesture is detected.ObjectProperty<EventHandler<? super ScrollEvent>>Node. onScrollFinishedProperty()Defines a function to be called when a scrolling gesture ends.ObjectProperty<EventHandler<? super ScrollEvent>>Scene. onScrollFinishedProperty()Defines a function to be called when a scrolling gesture ends.ObjectProperty<EventHandler<? super ScrollEvent>>Node. onScrollProperty()Defines a function to be called when user performs a scrolling action.ObjectProperty<EventHandler<? super ScrollEvent>>Scene. onScrollProperty()Defines a function to be called when user performs a scrolling action.ObjectProperty<EventHandler<? super ScrollEvent>>Node. onScrollStartedProperty()Defines a function to be called when a scrolling gesture is detected.ObjectProperty<EventHandler<? super ScrollEvent>>Scene. onScrollStartedProperty()Defines a function to be called when a scrolling gesture is detected.ObjectProperty<EventHandler<? super SwipeEvent>>Node. onSwipeDownProperty()Defines a function to be called when a downward swipe gesture centered over this node happens.ObjectProperty<EventHandler<? super SwipeEvent>>Scene. onSwipeDownProperty()Defines a function to be called when an downward swipe gesture happens in this scene.ObjectProperty<EventHandler<? super SwipeEvent>>Node. onSwipeLeftProperty()Defines a function to be called when a leftward swipe gesture centered over this node happens.ObjectProperty<EventHandler<? super SwipeEvent>>Scene. onSwipeLeftProperty()Defines a function to be called when an leftward swipe gesture happens in this scene.ObjectProperty<EventHandler<? super SwipeEvent>>Node. onSwipeRightProperty()Defines a function to be called when an rightward swipe gesture centered over this node happens.ObjectProperty<EventHandler<? super SwipeEvent>>Scene. onSwipeRightProperty()Defines a function to be called when an rightward swipe gesture happens in this scene.ObjectProperty<EventHandler<? super SwipeEvent>>Node. onSwipeUpProperty()Defines a function to be called when an upward swipe gesture centered over this node happens.ObjectProperty<EventHandler<? super SwipeEvent>>Scene. onSwipeUpProperty()Defines a function to be called when an upward swipe gesture happens in this scene.ObjectProperty<EventHandler<? super TouchEvent>>Node. onTouchMovedProperty()Defines a function to be called when a touch point is moved.ObjectProperty<EventHandler<? super TouchEvent>>Scene. onTouchMovedProperty()Defines a function to be called when a touch point is moved.ObjectProperty<EventHandler<? super TouchEvent>>Node. onTouchPressedProperty()Defines a function to be called when a new touch point is pressed.ObjectProperty<EventHandler<? super TouchEvent>>Scene. onTouchPressedProperty()Defines a function to be called when a new touch point is pressed.ObjectProperty<EventHandler<? super TouchEvent>>Node. onTouchReleasedProperty()Defines a function to be called when a touch point is released.ObjectProperty<EventHandler<? super TouchEvent>>Scene. onTouchReleasedProperty()Defines a function to be called when a new touch point is pressed.ObjectProperty<EventHandler<? super TouchEvent>>Node. onTouchStationaryProperty()Defines a function to be called when a touch point stays pressed and still.ObjectProperty<EventHandler<? super TouchEvent>>Scene. onTouchStationaryProperty()Defines a function to be called when a touch point stays pressed and still.ObjectProperty<EventHandler<? super ZoomEvent>>Node. onZoomFinishedProperty()Defines a function to be called when a zooming gesture ends.ObjectProperty<EventHandler<? super ZoomEvent>>Scene. onZoomFinishedProperty()Defines a function to be called when a zooming gesture ends.ObjectProperty<EventHandler<? super ZoomEvent>>Node. onZoomProperty()Defines a function to be called when user performs a zooming action.ObjectProperty<EventHandler<? super ZoomEvent>>Scene. onZoomProperty()Defines a function to be called when user performs a zooming action.ObjectProperty<EventHandler<? super ZoomEvent>>Node. onZoomStartedProperty()Defines a function to be called when a zooming gesture is detected.ObjectProperty<EventHandler<? super ZoomEvent>>Scene. onZoomStartedProperty()Defines a function to be called when a zooming gesture is detected.Methods in javafx.scene with parameters of type EventHandler Modifier and Type Method Description <T extends Event>
voidNode. addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)Registers an event filter to this node.<T extends Event>
voidScene. addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)Registers an event filter to this scene.<T extends Event>
voidNode. addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Registers an event handler to this node.<T extends Event>
voidScene. addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Registers an event handler to this scene.<T extends Event>
voidNode. removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)Unregisters a previously registered event filter from this node.<T extends Event>
voidScene. removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)Unregisters a previously registered event filter from this scene.<T extends Event>
voidNode. removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Unregisters a previously registered event handler from this node.<T extends Event>
voidScene. removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Unregisters a previously registered event handler from this scene.protected <T extends Event>
voidNode. setEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Sets the handler to use for this event type.protected <T extends Event>
voidScene. setEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Sets the handler to use for this event type.voidNode. setOnContextMenuRequested(EventHandler<? super ContextMenuEvent> value)Sets the value of the property onContextMenuRequested.voidScene. setOnContextMenuRequested(EventHandler<? super ContextMenuEvent> value)Sets the value of the property onContextMenuRequested.voidNode. setOnDragDetected(EventHandler<? super MouseEvent> value)Sets the value of the property onDragDetected.voidScene. setOnDragDetected(EventHandler<? super MouseEvent> value)Sets the value of the property onDragDetected.voidNode. setOnDragDone(EventHandler<? super DragEvent> value)Sets the value of the property onDragDone.voidScene. setOnDragDone(EventHandler<? super DragEvent> value)Sets the value of the property onDragDone.voidNode. setOnDragDropped(EventHandler<? super DragEvent> value)Sets the value of the property onDragDropped.voidScene. setOnDragDropped(EventHandler<? super DragEvent> value)Sets the value of the property onDragDropped.voidNode. setOnDragEntered(EventHandler<? super DragEvent> value)Sets the value of the property onDragEntered.voidScene. setOnDragEntered(EventHandler<? super DragEvent> value)Sets the value of the property onDragEntered.voidNode. setOnDragExited(EventHandler<? super DragEvent> value)Sets the value of the property onDragExited.voidScene. setOnDragExited(EventHandler<? super DragEvent> value)Sets the value of the property onDragExited.voidNode. setOnDragOver(EventHandler<? super DragEvent> value)Sets the value of the property onDragOver.voidScene. setOnDragOver(EventHandler<? super DragEvent> value)Sets the value of the property onDragOver.voidNode. setOnInputMethodTextChanged(EventHandler<? super InputMethodEvent> value)Sets the value of the property onInputMethodTextChanged.voidScene. setOnInputMethodTextChanged(EventHandler<? super InputMethodEvent> value)Sets the value of the property onInputMethodTextChanged.voidNode. setOnKeyPressed(EventHandler<? super KeyEvent> value)Sets the value of the property onKeyPressed.voidScene. setOnKeyPressed(EventHandler<? super KeyEvent> value)Sets the value of the property onKeyPressed.voidNode. setOnKeyReleased(EventHandler<? super KeyEvent> value)Sets the value of the property onKeyReleased.voidScene. setOnKeyReleased(EventHandler<? super KeyEvent> value)Sets the value of the property onKeyReleased.voidNode. setOnKeyTyped(EventHandler<? super KeyEvent> value)Sets the value of the property onKeyTyped.voidScene. setOnKeyTyped(EventHandler<? super KeyEvent> value)Sets the value of the property onKeyTyped.voidNode. setOnMouseClicked(EventHandler<? super MouseEvent> value)Sets the value of the property onMouseClicked.voidScene. setOnMouseClicked(EventHandler<? super MouseEvent> value)Sets the value of the property onMouseClicked.voidNode. setOnMouseDragEntered(EventHandler<? super MouseDragEvent> value)Sets the value of the property onMouseDragEntered.voidScene. setOnMouseDragEntered(EventHandler<? super MouseDragEvent> value)Sets the value of the property onMouseDragEntered.voidNode. setOnMouseDragExited(EventHandler<? super MouseDragEvent> value)Sets the value of the property onMouseDragExited.voidScene. setOnMouseDragExited(EventHandler<? super MouseDragEvent> value)Sets the value of the property onMouseDragExited.voidNode. setOnMouseDragged(EventHandler<? super MouseEvent> value)Sets the value of the property onMouseDragged.voidScene. setOnMouseDragged(EventHandler<? super MouseEvent> value)Sets the value of the property onMouseDragged.voidNode. setOnMouseDragOver(EventHandler<? super MouseDragEvent> value)Sets the value of the property onMouseDragOver.voidScene. setOnMouseDragOver(EventHandler<? super MouseDragEvent> value)Sets the value of the property onMouseDragOver.voidNode. setOnMouseDragReleased(EventHandler<? super MouseDragEvent> value)Sets the value of the property onMouseDragReleased.voidScene. setOnMouseDragReleased(EventHandler<? super MouseDragEvent> value)Sets the value of the property onMouseDragReleased.voidNode. setOnMouseEntered(EventHandler<? super MouseEvent> value)Sets the value of the property onMouseEntered.voidScene. setOnMouseEntered(EventHandler<? super MouseEvent> value)Sets the value of the property onMouseEntered.voidNode. setOnMouseExited(EventHandler<? super MouseEvent> value)Sets the value of the property onMouseExited.voidScene. setOnMouseExited(EventHandler<? super MouseEvent> value)Sets the value of the property onMouseExited.voidNode. setOnMouseMoved(EventHandler<? super MouseEvent> value)Sets the value of the property onMouseMoved.voidScene. setOnMouseMoved(EventHandler<? super MouseEvent> value)Sets the value of the property onMouseMoved.voidNode. setOnMousePressed(EventHandler<? super MouseEvent> value)Sets the value of the property onMousePressed.voidScene. setOnMousePressed(EventHandler<? super MouseEvent> value)Sets the value of the property onMousePressed.voidNode. setOnMouseReleased(EventHandler<? super MouseEvent> value)Sets the value of the property onMouseReleased.voidScene. setOnMouseReleased(EventHandler<? super MouseEvent> value)Sets the value of the property onMouseReleased.voidNode. setOnRotate(EventHandler<? super RotateEvent> value)Sets the value of the property onRotate.voidScene. setOnRotate(EventHandler<? super RotateEvent> value)Sets the value of the property onRotate.voidNode. setOnRotationFinished(EventHandler<? super RotateEvent> value)Sets the value of the property onRotationFinished.voidScene. setOnRotationFinished(EventHandler<? super RotateEvent> value)Sets the value of the property onRotationFinished.voidNode. setOnRotationStarted(EventHandler<? super RotateEvent> value)Sets the value of the property onRotationStarted.voidScene. setOnRotationStarted(EventHandler<? super RotateEvent> value)Sets the value of the property onRotationStarted.voidNode. setOnScroll(EventHandler<? super ScrollEvent> value)Sets the value of the property onScroll.voidScene. setOnScroll(EventHandler<? super ScrollEvent> value)Sets the value of the property onScroll.voidNode. setOnScrollFinished(EventHandler<? super ScrollEvent> value)Sets the value of the property onScrollFinished.voidScene. setOnScrollFinished(EventHandler<? super ScrollEvent> value)Sets the value of the property onScrollFinished.voidNode. setOnScrollStarted(EventHandler<? super ScrollEvent> value)Sets the value of the property onScrollStarted.voidScene. setOnScrollStarted(EventHandler<? super ScrollEvent> value)Sets the value of the property onScrollStarted.voidNode. setOnSwipeDown(EventHandler<? super SwipeEvent> value)Sets the value of the property onSwipeDown.voidScene. setOnSwipeDown(EventHandler<? super SwipeEvent> value)Sets the value of the property onSwipeDown.voidNode. setOnSwipeLeft(EventHandler<? super SwipeEvent> value)Sets the value of the property onSwipeLeft.voidScene. setOnSwipeLeft(EventHandler<? super SwipeEvent> value)Sets the value of the property onSwipeLeft.voidNode. setOnSwipeRight(EventHandler<? super SwipeEvent> value)Sets the value of the property onSwipeRight.voidScene. setOnSwipeRight(EventHandler<? super SwipeEvent> value)Sets the value of the property onSwipeRight.voidNode. setOnSwipeUp(EventHandler<? super SwipeEvent> value)Sets the value of the property onSwipeUp.voidScene. setOnSwipeUp(EventHandler<? super SwipeEvent> value)Sets the value of the property onSwipeUp.voidNode. setOnTouchMoved(EventHandler<? super TouchEvent> value)Sets the value of the property onTouchMoved.voidScene. setOnTouchMoved(EventHandler<? super TouchEvent> value)Sets the value of the property onTouchMoved.voidNode. setOnTouchPressed(EventHandler<? super TouchEvent> value)Sets the value of the property onTouchPressed.voidScene. setOnTouchPressed(EventHandler<? super TouchEvent> value)Sets the value of the property onTouchPressed.voidNode. setOnTouchReleased(EventHandler<? super TouchEvent> value)Sets the value of the property onTouchReleased.voidScene. setOnTouchReleased(EventHandler<? super TouchEvent> value)Sets the value of the property onTouchReleased.voidNode. setOnTouchStationary(EventHandler<? super TouchEvent> value)Sets the value of the property onTouchStationary.voidScene. setOnTouchStationary(EventHandler<? super TouchEvent> value)Sets the value of the property onTouchStationary.voidNode. setOnZoom(EventHandler<? super ZoomEvent> value)Sets the value of the property onZoom.voidScene. setOnZoom(EventHandler<? super ZoomEvent> value)Sets the value of the property onZoom.voidNode. setOnZoomFinished(EventHandler<? super ZoomEvent> value)Sets the value of the property onZoomFinished.voidScene. setOnZoomFinished(EventHandler<? super ZoomEvent> value)Sets the value of the property onZoomFinished.voidNode. setOnZoomStarted(EventHandler<? super ZoomEvent> value)Sets the value of the property onZoomStarted.voidScene. setOnZoomStarted(EventHandler<? super ZoomEvent> value)Sets the value of the property onZoomStarted. -
Uses of EventHandler in javafx.scene.control
Methods in javafx.scene.control that return EventHandler Modifier and Type Method Description EventHandler<ActionEvent>ButtonBase. getOnAction()Gets the value of the property onAction.EventHandler<ActionEvent>ChoiceBox. getOnAction()Gets the value of the property onAction.EventHandler<ActionEvent>ComboBoxBase. getOnAction()Gets the value of the property onAction.EventHandler<ActionEvent>ContextMenu. getOnAction()Gets the value of the property onAction.EventHandler<ActionEvent>MenuItem. getOnAction()Gets the value of the property onAction.EventHandler<ActionEvent>TextField. getOnAction()Gets the value of the property onAction.EventHandler<Event>Tab. getOnClosed()The event handler that is associated with the tab when the tab is closed.EventHandler<DialogEvent>Dialog. getOnCloseRequest()Gets the value of the property onCloseRequest.EventHandler<Event>Tab. getOnCloseRequest()Gets the value of the property onCloseRequest.EventHandler<ListView.EditEvent<T>>ListView. getOnEditCancel()Returns theEventHandlerthat will be called when the user cancels an edit.EventHandler<TableColumn.CellEditEvent<S,T>>TableColumn. getOnEditCancel()Gets the value of the property onEditCancel.EventHandler<TreeTableColumn.CellEditEvent<S,T>>TreeTableColumn. getOnEditCancel()Gets the value of the property onEditCancel.EventHandler<TreeView.EditEvent<T>>TreeView. getOnEditCancel()Returns theEventHandlerthat will be called when the user cancels an edit.EventHandler<ListView.EditEvent<T>>ListView. getOnEditCommit()Returns theEventHandlerthat will be called when the user commits an edit.EventHandler<TableColumn.CellEditEvent<S,T>>TableColumn. getOnEditCommit()Gets the value of the property onEditCommit.EventHandler<TreeTableColumn.CellEditEvent<S,T>>TreeTableColumn. getOnEditCommit()Gets the value of the property onEditCommit.EventHandler<TreeView.EditEvent<T>>TreeView. getOnEditCommit()Returns theEventHandlerthat will be called when the user commits an edit.EventHandler<ListView.EditEvent<T>>ListView. getOnEditStart()Returns theEventHandlerthat will be called when the user begins an edit.EventHandler<TableColumn.CellEditEvent<S,T>>TableColumn. getOnEditStart()Gets the value of the property onEditStart.EventHandler<TreeTableColumn.CellEditEvent<S,T>>TreeTableColumn. getOnEditStart()Gets the value of the property onEditStart.EventHandler<TreeView.EditEvent<T>>TreeView. getOnEditStart()Returns theEventHandlerthat will be called when the user begins an edit.EventHandler<Event>ChoiceBox. getOnHidden()Gets the value of the property onHidden.EventHandler<Event>ComboBoxBase. getOnHidden()Gets the value of the property onHidden.EventHandler<DialogEvent>Dialog. getOnHidden()Gets the value of the property onHidden.EventHandler<Event>Menu. getOnHidden()Gets the value of the property onHidden.EventHandler<Event>MenuButton. getOnHidden()Gets the value of the property onHidden.EventHandler<Event>ChoiceBox. getOnHiding()Gets the value of the property onHiding.EventHandler<Event>ComboBoxBase. getOnHiding()Gets the value of the property onHiding.EventHandler<DialogEvent>Dialog. getOnHiding()Gets the value of the property onHiding.EventHandler<Event>Menu. getOnHiding()Gets the value of the property onHiding.EventHandler<Event>MenuButton. getOnHiding()Gets the value of the property onHiding.EventHandler<Event>MenuItem. getOnMenuValidation()Gets the value of the property onMenuValidation.EventHandler<ScrollToEvent<Integer>>ListView. getOnScrollTo()Gets the value of the property onScrollTo.EventHandler<ScrollToEvent<Integer>>TableView. getOnScrollTo()Gets the value of the property onScrollTo.EventHandler<ScrollToEvent<Integer>>TreeTableView. getOnScrollTo()Gets the value of the property onScrollTo.EventHandler<ScrollToEvent<Integer>>TreeView. getOnScrollTo()Gets the value of the property onScrollTo.EventHandler<ScrollToEvent<TableColumn<S,?>>>TableView. getOnScrollToColumn()Gets the value of the property onScrollToColumn.EventHandler<ScrollToEvent<TreeTableColumn<S,?>>>TreeTableView. getOnScrollToColumn()Gets the value of the property onScrollToColumn.EventHandler<Event>Tab. getOnSelectionChanged()The event handler that is associated with a selection on the tab.EventHandler<Event>ChoiceBox. getOnShowing()Gets the value of the property onShowing.EventHandler<Event>ComboBoxBase. getOnShowing()Gets the value of the property onShowing.EventHandler<DialogEvent>Dialog. getOnShowing()Gets the value of the property onShowing.EventHandler<Event>Menu. getOnShowing()Gets the value of the property onShowing.EventHandler<Event>MenuButton. getOnShowing()Gets the value of the property onShowing.EventHandler<Event>ChoiceBox. getOnShown()Gets the value of the property onShown.EventHandler<Event>ComboBoxBase. getOnShown()Gets the value of the property onShown.EventHandler<DialogEvent>Dialog. getOnShown()Gets the value of the property onShown.EventHandler<Event>Menu. getOnShown()Gets the value of the property onShown.EventHandler<Event>MenuButton. getOnShown()Gets the value of the property onShown.EventHandler<SortEvent<TableView<S>>>TableView. getOnSort()Gets the value of the property onSort.EventHandler<SortEvent<TreeTableView<S>>>TreeTableView. getOnSort()Gets the value of the property onSort.Methods in javafx.scene.control that return types with arguments of type EventHandler Modifier and Type Method Description ObjectProperty<EventHandler<ActionEvent>>ButtonBase. onActionProperty()The button's action, which is invoked whenever the button is fired.ObjectProperty<EventHandler<ActionEvent>>ChoiceBox. onActionProperty()The ChoiceBox action, which is invoked whenever the ChoiceBoxvalueproperty is changed.ObjectProperty<EventHandler<ActionEvent>>ComboBoxBase. onActionProperty()The ComboBox action, which is invoked whenever the ComboBoxvalueproperty is changed.ObjectProperty<EventHandler<ActionEvent>>ContextMenu. onActionProperty()Callback function to be informed when an item contained within thisContextMenuhas been activated.ObjectProperty<EventHandler<ActionEvent>>MenuItem. onActionProperty()The action, which is invoked whenever the MenuItem is fired.ObjectProperty<EventHandler<ActionEvent>>TextField. onActionProperty()The action handler associated with this text field, ornullif no action handler is assigned.ObjectProperty<EventHandler<Event>>Tab. onClosedProperty()The event handler that is associated with the tab when the tab is closed.ObjectProperty<EventHandler<DialogEvent>>Dialog. onCloseRequestProperty()Called when there is an external request to close thisDialog.ObjectProperty<EventHandler<Event>>Tab. onCloseRequestProperty()Called when there is an external request to close thisTab.ObjectProperty<EventHandler<ListView.EditEvent<T>>>ListView. onEditCancelProperty()This event handler will be fired when the user cancels editing a cell.ObjectProperty<EventHandler<TableColumn.CellEditEvent<S,T>>>TableColumn. onEditCancelProperty()This event handler will be fired when the user cancels editing a cell.ObjectProperty<EventHandler<TreeTableColumn.CellEditEvent<S,T>>>TreeTableColumn. onEditCancelProperty()This event handler will be fired when the user cancels editing a cell.ObjectProperty<EventHandler<TreeView.EditEvent<T>>>TreeView. onEditCancelProperty()This event handler will be fired when the user cancels editing a cell.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.ObjectProperty<EventHandler<TableColumn.CellEditEvent<S,T>>>TableColumn. onEditCommitProperty()This event handler will be fired when the user successfully commits their editing.ObjectProperty<EventHandler<TreeTableColumn.CellEditEvent<S,T>>>TreeTableColumn. onEditCommitProperty()This event handler will be fired when the user successfully commits their editing.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.ObjectProperty<EventHandler<ListView.EditEvent<T>>>ListView. onEditStartProperty()This event handler will be fired when the user successfully initiates editing.ObjectProperty<EventHandler<TableColumn.CellEditEvent<S,T>>>TableColumn. onEditStartProperty()This event handler will be fired when the user successfully initiates editing.ObjectProperty<EventHandler<TreeTableColumn.CellEditEvent<S,T>>>TreeTableColumn. onEditStartProperty()This event handler will be fired when the user successfully initiates editing.ObjectProperty<EventHandler<TreeView.EditEvent<T>>>TreeView. onEditStartProperty()This event handler will be fired when the user successfully initiates editing.ObjectProperty<EventHandler<Event>>ChoiceBox. onHiddenProperty()Called just after theChoiceBoxpopup has been hidden.ObjectProperty<EventHandler<Event>>ComboBoxBase. onHiddenProperty()Called just after theComboBoxBasepopup/display has been hidden.ObjectProperty<EventHandler<DialogEvent>>Dialog. onHiddenProperty()Called just after the Dialog has been hidden.ObjectProperty<EventHandler<Event>>Menu. onHiddenProperty()Called just after theContextMenuhas been hidden.ObjectProperty<EventHandler<Event>>MenuButton. onHiddenProperty()Called just after theContextMenuhas been hidden.ObjectProperty<EventHandler<Event>>ChoiceBox. onHidingProperty()Called just prior to theChoiceBoxpopup being hidden.ObjectProperty<EventHandler<Event>>ComboBoxBase. onHidingProperty()Called just prior to theComboBoxpopup/display being hidden.ObjectProperty<EventHandler<DialogEvent>>Dialog. onHidingProperty()Called just prior to the Dialog being hidden.ObjectProperty<EventHandler<Event>>Menu. onHidingProperty()Called just prior to theContextMenubeing hidden.ObjectProperty<EventHandler<Event>>MenuButton. onHidingProperty()Called just prior to theContextMenubeing hidden.ObjectProperty<EventHandler<Event>>MenuItem. onMenuValidationProperty()The event handler that is associated with invocation of an accelerator for a MenuItem.ObjectProperty<EventHandler<ScrollToEvent<TableColumn<S,?>>>>TableView. onScrollToColumnProperty()Called when there's a request to scroll a column into view usingTableView.scrollToColumn(TableColumn)orTableView.scrollToColumnIndex(int)ObjectProperty<EventHandler<ScrollToEvent<TreeTableColumn<S,?>>>>TreeTableView. onScrollToColumnProperty()Called when there's a request to scroll a column into view usingTreeTableView.scrollToColumn(TreeTableColumn)orTreeTableView.scrollToColumnIndex(int)ObjectProperty<EventHandler<ScrollToEvent<Integer>>>ListView. onScrollToProperty()Called when there's a request to scroll an index into view usingListView.scrollTo(int)orListView.scrollTo(Object)ObjectProperty<EventHandler<ScrollToEvent<Integer>>>TableView. onScrollToProperty()Called when there's a request to scroll an index into view usingTableView.scrollTo(int)orTableView.scrollTo(Object)ObjectProperty<EventHandler<ScrollToEvent<Integer>>>TreeTableView. onScrollToProperty()Called when there's a request to scroll an index into view usingTreeTableView.scrollTo(int)ObjectProperty<EventHandler<ScrollToEvent<Integer>>>TreeView. onScrollToProperty()Called when there's a request to scroll an index into view usingTreeView.scrollTo(int)ObjectProperty<EventHandler<Event>>Tab. onSelectionChangedProperty()The event handler that is associated with a selection on the tab.ObjectProperty<EventHandler<Event>>ChoiceBox. onShowingProperty()Called just prior to theChoiceBoxpopup being shown.ObjectProperty<EventHandler<Event>>ComboBoxBase. onShowingProperty()Called just prior to theComboBoxBasepopup/display being shown.ObjectProperty<EventHandler<DialogEvent>>Dialog. onShowingProperty()Called just prior to the Dialog being shown.ObjectProperty<EventHandler<Event>>Menu. onShowingProperty()Called just prior to theContextMenubeing shown, even if the menu has no items to show.ObjectProperty<EventHandler<Event>>MenuButton. onShowingProperty()Called just prior to theContextMenubeing shown.ObjectProperty<EventHandler<Event>>ChoiceBox. onShownProperty()Called just after theChoiceBoxpopup is shown.ObjectProperty<EventHandler<Event>>ComboBoxBase. onShownProperty()Called just after theComboBoxBasepopup/display is shown.ObjectProperty<EventHandler<DialogEvent>>Dialog. onShownProperty()Called just after the Dialog is shown.ObjectProperty<EventHandler<Event>>Menu. onShownProperty()Called just after theContextMenuis shown.ObjectProperty<EventHandler<Event>>MenuButton. onShownProperty()Called just after theContextMenuis shown.ObjectProperty<EventHandler<SortEvent<TableView<S>>>>TableView. onSortProperty()Called when there's a request to sort the control.ObjectProperty<EventHandler<SortEvent<TreeTableView<S>>>>TreeTableView. onSortProperty()Called when there's a request to sort the control.Methods in javafx.scene.control with parameters of type EventHandler Modifier and Type Method Description <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>
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>
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.<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.voidButtonBase. setOnAction(EventHandler<ActionEvent> value)Sets the value of the property onAction.voidChoiceBox. setOnAction(EventHandler<ActionEvent> value)Sets the value of the property onAction.voidComboBoxBase. setOnAction(EventHandler<ActionEvent> value)Sets the value of the property onAction.voidContextMenu. setOnAction(EventHandler<ActionEvent> value)Sets the value of the property onAction.voidMenuItem. setOnAction(EventHandler<ActionEvent> value)Sets the value of the property onAction.voidTextField. setOnAction(EventHandler<ActionEvent> value)Sets the value of the property onAction.voidTab. setOnClosed(EventHandler<Event> value)Defines a function to be called when the tab is closed.voidDialog. setOnCloseRequest(EventHandler<DialogEvent> value)Sets the value of the property onCloseRequest.voidTab. setOnCloseRequest(EventHandler<Event> value)Sets the value of the property onCloseRequest.voidListView. setOnEditCancel(EventHandler<ListView.EditEvent<T>> value)Sets theEventHandlerthat will be called when the user cancels an edit.voidTableColumn. setOnEditCancel(EventHandler<TableColumn.CellEditEvent<S,T>> value)Sets the value of the property onEditCancel.voidTreeTableColumn. setOnEditCancel(EventHandler<TreeTableColumn.CellEditEvent<S,T>> value)Sets the value of the property onEditCancel.voidTreeView. setOnEditCancel(EventHandler<TreeView.EditEvent<T>> value)Sets theEventHandlerthat will be called when the user cancels an edit.voidListView. setOnEditCommit(EventHandler<ListView.EditEvent<T>> value)Sets theEventHandlerthat will be called when the user has completed their editing.voidTableColumn. setOnEditCommit(EventHandler<TableColumn.CellEditEvent<S,T>> value)Sets the value of the property onEditCommit.voidTreeTableColumn. setOnEditCommit(EventHandler<TreeTableColumn.CellEditEvent<S,T>> value)Sets the value of the property onEditCommit.voidTreeView. setOnEditCommit(EventHandler<TreeView.EditEvent<T>> value)Sets theEventHandlerthat will be called when the user commits an edit.voidListView. setOnEditStart(EventHandler<ListView.EditEvent<T>> value)Sets theEventHandlerthat will be called when the user begins an edit.voidTableColumn. setOnEditStart(EventHandler<TableColumn.CellEditEvent<S,T>> value)Sets the value of the property onEditStart.voidTreeTableColumn. setOnEditStart(EventHandler<TreeTableColumn.CellEditEvent<S,T>> value)Sets the value of the property onEditStart.voidTreeView. setOnEditStart(EventHandler<TreeView.EditEvent<T>> value)Sets theEventHandlerthat will be called when the user begins an edit.voidChoiceBox. setOnHidden(EventHandler<Event> value)Sets the value of the property onHidden.voidComboBoxBase. setOnHidden(EventHandler<Event> value)Sets the value of the property onHidden.voidDialog. setOnHidden(EventHandler<DialogEvent> value)Sets the value of the property onHidden.voidMenu. setOnHidden(EventHandler<Event> value)Sets the value of the property onHidden.voidMenuButton. setOnHidden(EventHandler<Event> value)Sets the value of the property onHidden.voidChoiceBox. setOnHiding(EventHandler<Event> value)Sets the value of the property onHiding.voidComboBoxBase. setOnHiding(EventHandler<Event> value)Sets the value of the property onHiding.voidDialog. setOnHiding(EventHandler<DialogEvent> value)Sets the value of the property onHiding.voidMenu. setOnHiding(EventHandler<Event> value)Sets the value of the property onHiding.voidMenuButton. setOnHiding(EventHandler<Event> value)Sets the value of the property onHiding.voidMenuItem. setOnMenuValidation(EventHandler<Event> value)Sets the value of the property onMenuValidation.voidListView. setOnScrollTo(EventHandler<ScrollToEvent<Integer>> value)Sets the value of the property onScrollTo.voidTableView. setOnScrollTo(EventHandler<ScrollToEvent<Integer>> value)Sets the value of the property onScrollTo.voidTreeTableView. setOnScrollTo(EventHandler<ScrollToEvent<Integer>> value)Sets the value of the property onScrollTo.voidTreeView. setOnScrollTo(EventHandler<ScrollToEvent<Integer>> value)Sets the value of the property onScrollTo.voidTableView. setOnScrollToColumn(EventHandler<ScrollToEvent<TableColumn<S,?>>> value)Sets the value of the property onScrollToColumn.voidTreeTableView. setOnScrollToColumn(EventHandler<ScrollToEvent<TreeTableColumn<S,?>>> value)Sets the value of the property onScrollToColumn.voidTab. setOnSelectionChanged(EventHandler<Event> value)Defines a function to be called when a selection changed has occurred on the tab.voidChoiceBox. setOnShowing(EventHandler<Event> value)Sets the value of the property onShowing.voidComboBoxBase. setOnShowing(EventHandler<Event> value)Sets the value of the property onShowing.voidDialog. setOnShowing(EventHandler<DialogEvent> value)Sets the value of the property onShowing.voidMenu. setOnShowing(EventHandler<Event> value)Sets the value of the property onShowing.voidMenuButton. setOnShowing(EventHandler<Event> value)Sets the value of the property onShowing.voidChoiceBox. setOnShown(EventHandler<Event> value)Sets the value of the property onShown.voidComboBoxBase. setOnShown(EventHandler<Event> value)Sets the value of the property onShown.voidDialog. setOnShown(EventHandler<DialogEvent> value)Sets the value of the property onShown.voidMenu. setOnShown(EventHandler<Event> value)Sets the value of the property onShown.voidMenuButton. setOnShown(EventHandler<Event> value)Sets the value of the property onShown.voidTableView. setOnSort(EventHandler<SortEvent<TableView<S>>> value)Sets the value of the property onSort.voidTreeTableView. setOnSort(EventHandler<SortEvent<TreeTableView<S>>> value)Sets the value of the property onSort. -
Uses of EventHandler in javafx.scene.media
Methods in javafx.scene.media that return EventHandler Modifier and Type Method Description EventHandler<MediaErrorEvent>MediaView. getOnError()Retrieves the error event handler.EventHandler<MediaMarkerEvent>MediaPlayer. getOnMarker()Retrieves the marker event handler.Methods in javafx.scene.media that return types with arguments of type EventHandler Modifier and Type Method Description ObjectProperty<EventHandler<MediaErrorEvent>>MediaView. onErrorProperty()Event handler to be invoked whenever an error occurs on thisMediaView.ObjectProperty<EventHandler<MediaMarkerEvent>>MediaPlayer. onMarkerProperty()Event handler invoked when the playercurrentTimereaches a media marker.Methods in javafx.scene.media with parameters of type EventHandler Modifier and Type Method Description voidMediaView. setOnError(EventHandler<MediaErrorEvent> value)Sets the error event handler.voidMediaPlayer. setOnMarker(EventHandler<MediaMarkerEvent> onMarker)Sets the marker event handler. -
Uses of EventHandler in javafx.scene.transform
Methods in javafx.scene.transform that return EventHandler Modifier and Type Method Description EventHandler<? super TransformChangedEvent>Transform. getOnTransformChanged()Gets the onTransformChanged event handler.Methods in javafx.scene.transform that return types with arguments of type EventHandler Modifier and Type Method Description ObjectProperty<EventHandler<? super TransformChangedEvent>>Transform. onTransformChangedProperty()The onTransformChanged event handler is called whenever the transform changes any of its parameters.Methods in javafx.scene.transform with parameters of type EventHandler Modifier and Type Method Description <T extends Event>
voidTransform. addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)Registers an event filter to this transform.<T extends Event>
voidTransform. addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Registers an event handler to this transform.<T extends Event>
voidTransform. removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)Unregisters a previously registered event filter from this transform.<T extends Event>
voidTransform. removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Unregisters a previously registered event handler from this transform.voidTransform. 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
Methods in javafx.scene.web that return EventHandler Modifier and Type Method Description EventHandler<WebEvent<String>>WebEngine. getOnAlert()Gets the value of the property onAlert.EventHandler<WebErrorEvent>WebEngine. getOnError()Gets the value of the property onError.EventHandler<WebEvent<Rectangle2D>>WebEngine. getOnResized()Gets the value of the property onResized.EventHandler<WebEvent<String>>WebEngine. getOnStatusChanged()Gets the value of the property onStatusChanged.EventHandler<WebEvent<Boolean>>WebEngine. getOnVisibilityChanged()Gets the value of the property onVisibilityChanged.Methods in javafx.scene.web that return types with arguments of type EventHandler Modifier and Type Method Description ObjectProperty<EventHandler<WebEvent<String>>>WebEngine. onAlertProperty()JavaScriptalerthandler property.ObjectProperty<EventHandler<WebErrorEvent>>WebEngine. onErrorProperty()The event handler called when an error occurs.ObjectProperty<EventHandler<WebEvent<Rectangle2D>>>WebEngine. onResizedProperty()JavaScript window resize handler property.ObjectProperty<EventHandler<WebEvent<String>>>WebEngine. onStatusChangedProperty()JavaScript status handler property.ObjectProperty<EventHandler<WebEvent<Boolean>>>WebEngine. onVisibilityChangedProperty()JavaScript window visibility handler property.Methods in javafx.scene.web with parameters of type EventHandler Modifier and Type Method Description voidWebEngine. setOnAlert(EventHandler<WebEvent<String>> handler)Sets the value of the property onAlert.voidWebEngine. setOnError(EventHandler<WebErrorEvent> handler)Sets the value of the property onError.voidWebEngine. setOnResized(EventHandler<WebEvent<Rectangle2D>> handler)Sets the value of the property onResized.voidWebEngine. setOnStatusChanged(EventHandler<WebEvent<String>> handler)Sets the value of the property onStatusChanged.voidWebEngine. setOnVisibilityChanged(EventHandler<WebEvent<Boolean>> handler)Sets the value of the property onVisibilityChanged. -
Uses of EventHandler in javafx.stage
Methods in javafx.stage that return EventHandler Modifier and Type Method Description EventHandler<Event>PopupWindow. getOnAutoHide()Gets the value of the property onAutoHide.EventHandler<WindowEvent>Window. getOnCloseRequest()Gets the value of the property onCloseRequest.EventHandler<WindowEvent>Window. getOnHidden()Gets the value of the property onHidden.EventHandler<WindowEvent>Window. getOnHiding()Gets the value of the property onHiding.EventHandler<WindowEvent>Window. getOnShowing()Gets the value of the property onShowing.EventHandler<WindowEvent>Window. getOnShown()Gets the value of the property onShown.Methods in javafx.stage that return types with arguments of type EventHandler Modifier and Type Method Description ObjectProperty<EventHandler<Event>>PopupWindow. onAutoHideProperty()Called after autoHide is run.ObjectProperty<EventHandler<WindowEvent>>Window. onCloseRequestProperty()Called when there is an external request to close thisWindow.ObjectProperty<EventHandler<WindowEvent>>Window. onHiddenProperty()Called just after the Window has been hidden.ObjectProperty<EventHandler<WindowEvent>>Window. onHidingProperty()Called just prior to the Window being hidden.ObjectProperty<EventHandler<WindowEvent>>Window. onShowingProperty()Called just prior to the Window being shown.ObjectProperty<EventHandler<WindowEvent>>Window. onShownProperty()Called just after the Window is shown.Methods in javafx.stage with parameters of type EventHandler Modifier and Type Method Description <T extends Event>
voidWindow. addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)Registers an event filter to this node.<T extends Event>
voidWindow. addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Registers an event handler to this node.<T extends Event>
voidWindow. removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)Unregisters a previously registered event filter from this node.<T extends Event>
voidWindow. removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Unregisters a previously registered event handler from this node.protected <T extends Event>
voidWindow. setEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)Sets the handler to use for this event type.voidPopupWindow. setOnAutoHide(EventHandler<Event> value)Sets the value of the property onAutoHide.voidWindow. setOnCloseRequest(EventHandler<WindowEvent> value)Sets the value of the property onCloseRequest.voidWindow. setOnHidden(EventHandler<WindowEvent> value)Sets the value of the property onHidden.voidWindow. setOnHiding(EventHandler<WindowEvent> value)Sets the value of the property onHiding.voidWindow. setOnShowing(EventHandler<WindowEvent> value)Sets the value of the property onShowing.voidWindow. setOnShown(EventHandler<WindowEvent> value)Sets the value of the property onShown.