Uses of Interface
javafx.event.EventHandler
Packages that use EventHandler
Package
Description
-
Uses of EventHandler in com.sun.javafx.event
Methods in com.sun.javafx.event that return EventHandlerModifier and TypeMethodDescriptionfinal <T extends Event>
EventHandler<? super T>EventHandlerManager.getEventHandler(EventType<T> eventType) Methods in com.sun.javafx.event with parameters of type EventHandlerModifier and TypeMethodDescriptionfinal <T extends Event>
voidEventHandlerManager.addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter inEventHandlerManager.final <T extends Event>
voidEventHandlerManager.addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler inEventHandlerManager.final <T extends Event>
voidEventHandlerManager.removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter.final <T extends Event>
voidEventHandlerManager.removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler.final <T extends Event>
voidEventHandlerManager.setEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Sets the specified singleton handler. -
Uses of EventHandler in com.sun.javafx.scene
Methods in com.sun.javafx.scene that return EventHandlerModifier and TypeMethodDescriptionfinal EventHandler<? super MouseEvent>EventHandlerProperties.getOnDragDetected()Gets the value of theonDragDetectedproperty.final EventHandler<? super DragEvent>EventHandlerProperties.getOnDragDone()Gets the value of theonDragDoneproperty.final EventHandler<? super DragEvent>EventHandlerProperties.getOnDragDropped()Gets the value of theonDragDroppedproperty.final EventHandler<? super DragEvent>EventHandlerProperties.getOnDragEntered()Gets the value of theonDragEnteredproperty.final EventHandler<? super DragEvent>EventHandlerProperties.getOnDragExited()Gets the value of theonDragExitedproperty.final EventHandler<? super DragEvent>EventHandlerProperties.getOnDragOver()Gets the value of theonDragOverproperty.final EventHandler<? super KeyEvent>EventHandlerProperties.getOnKeyPressed()Gets the value of theonKeyPressedproperty.final EventHandler<? super KeyEvent>EventHandlerProperties.getOnKeyReleased()Gets the value of theonKeyReleasedproperty.final EventHandler<? super KeyEvent>EventHandlerProperties.getOnKeyTyped()Gets the value of theonKeyTypedproperty.final EventHandler<? super MouseEvent>EventHandlerProperties.getOnMouseClicked()Gets the value of theonMouseClickedproperty.final EventHandler<? super MouseDragEvent>EventHandlerProperties.getOnMouseDragEntered()Gets the value of theonMouseDragEnteredproperty.final EventHandler<? super MouseDragEvent>EventHandlerProperties.getOnMouseDragExited()Gets the value of theonMouseDragExitedproperty.final EventHandler<? super MouseEvent>EventHandlerProperties.getOnMouseDragged()Gets the value of theonMouseDraggedproperty.final EventHandler<? super MouseDragEvent>EventHandlerProperties.getOnMouseDragOver()Gets the value of theonMouseDragOverproperty.final EventHandler<? super MouseDragEvent>EventHandlerProperties.getOnMouseDragReleased()Gets the value of theonMouseDragReleasedproperty.final EventHandler<? super MouseEvent>EventHandlerProperties.getOnMouseEntered()Gets the value of theonMouseEnteredproperty.final EventHandler<? super MouseEvent>EventHandlerProperties.getOnMouseExited()Gets the value of theonMouseExitedproperty.final EventHandler<? super MouseEvent>EventHandlerProperties.getOnMouseMoved()Gets the value of theonMouseMovedproperty.final EventHandler<? super MouseEvent>EventHandlerProperties.getOnMousePressed()Gets the value of theonMousePressedproperty.final EventHandler<? super MouseEvent>EventHandlerProperties.getOnMouseReleased()Gets the value of theonMouseReleasedproperty.final EventHandler<? super ScrollEvent>EventHandlerProperties.getOnScroll()Gets the value of theonScrollproperty.final EventHandler<? super SwipeEvent>EventHandlerProperties.getOnSwipeDown()Gets the value of theonSwipeDownproperty.final EventHandler<? super SwipeEvent>EventHandlerProperties.getOnSwipeLeft()Gets the value of theonSwipeLeftproperty.final EventHandler<? super SwipeEvent>EventHandlerProperties.getOnSwipeRight()Gets the value of theonSwipeRightproperty.final EventHandler<? super SwipeEvent>EventHandlerProperties.getOnSwipeUp()Gets the value of theonSwipeUpproperty.final EventHandler<? super TouchEvent>EventHandlerProperties.getOnTouchMoved()Gets the value of theonTouchMovedproperty.final EventHandler<? super TouchEvent>EventHandlerProperties.getOnTouchPressed()Gets the value of theonTouchPressedproperty.final EventHandler<? super TouchEvent>EventHandlerProperties.getOnTouchReleased()Gets the value of theonTouchReleasedproperty.final EventHandler<? super TouchEvent>EventHandlerProperties.getOnTouchStationary()Gets the value of theonTouchStationaryproperty.final EventHandler<? super ContextMenuEvent>EventHandlerProperties.onContextMenuRequested()Methods in com.sun.javafx.scene that return types with arguments of type EventHandlerModifier and TypeMethodDescriptionObjectProperty<EventHandler<? super ContextMenuEvent>>EventHandlerProperties.onContextMenuRequestedProperty()ObjectProperty<EventHandler<? super MouseEvent>>EventHandlerProperties.onDragDetectedProperty()ObjectProperty<EventHandler<? super DragEvent>>EventHandlerProperties.onDragDoneProperty()ObjectProperty<EventHandler<? super DragEvent>>EventHandlerProperties.onDragDroppedProperty()ObjectProperty<EventHandler<? super DragEvent>>EventHandlerProperties.onDragEnteredProperty()ObjectProperty<EventHandler<? super DragEvent>>EventHandlerProperties.onDragExitedProperty()ObjectProperty<EventHandler<? super DragEvent>>EventHandlerProperties.onDragOverProperty()ObjectProperty<EventHandler<? super KeyEvent>>EventHandlerProperties.onKeyPressedProperty()ObjectProperty<EventHandler<? super KeyEvent>>EventHandlerProperties.onKeyReleasedProperty()ObjectProperty<EventHandler<? super KeyEvent>>EventHandlerProperties.onKeyTypedProperty()ObjectProperty<EventHandler<? super MouseEvent>>EventHandlerProperties.onMouseClickedProperty()ObjectProperty<EventHandler<? super MouseDragEvent>>EventHandlerProperties.onMouseDragEnteredProperty()ObjectProperty<EventHandler<? super MouseDragEvent>>EventHandlerProperties.onMouseDragExitedProperty()ObjectProperty<EventHandler<? super MouseEvent>>EventHandlerProperties.onMouseDraggedProperty()ObjectProperty<EventHandler<? super MouseDragEvent>>EventHandlerProperties.onMouseDragOverProperty()ObjectProperty<EventHandler<? super MouseDragEvent>>EventHandlerProperties.onMouseDragReleasedProperty()ObjectProperty<EventHandler<? super MouseEvent>>EventHandlerProperties.onMouseEnteredProperty()ObjectProperty<EventHandler<? super MouseEvent>>EventHandlerProperties.onMouseExitedProperty()ObjectProperty<EventHandler<? super MouseEvent>>EventHandlerProperties.onMouseMovedProperty()ObjectProperty<EventHandler<? super MouseEvent>>EventHandlerProperties.onMousePressedProperty()ObjectProperty<EventHandler<? super MouseEvent>>EventHandlerProperties.onMouseReleasedProperty()ObjectProperty<EventHandler<? super ScrollEvent>>EventHandlerProperties.onScrollProperty()ObjectProperty<EventHandler<? super SwipeEvent>>EventHandlerProperties.onSwipeDownProperty()ObjectProperty<EventHandler<? super SwipeEvent>>EventHandlerProperties.onSwipeLeftProperty()ObjectProperty<EventHandler<? super SwipeEvent>>EventHandlerProperties.onSwipeRightProperty()ObjectProperty<EventHandler<? super SwipeEvent>>EventHandlerProperties.onSwipeUpProperty()ObjectProperty<EventHandler<? super TouchEvent>>EventHandlerProperties.onTouchMovedProperty()ObjectProperty<EventHandler<? super TouchEvent>>EventHandlerProperties.onTouchPressedProperty()ObjectProperty<EventHandler<? super TouchEvent>>EventHandlerProperties.onTouchReleasedProperty()ObjectProperty<EventHandler<? super TouchEvent>>EventHandlerProperties.onTouchStationaryProperty() -
Uses of EventHandler in dev.webfx.kit.mapper.peers.javafxgraphics.base
Methods in dev.webfx.kit.mapper.peers.javafxgraphics.base with parameters of type EventHandlerModifier and TypeMethodDescriptionvoidNodePeerMixin.updateOnDragDetected(EventHandler<? super MouseEvent> eventHandler) voidNodePeerMixin.updateOnDragDone(EventHandler<? super DragEvent> eventHandler) voidNodePeerMixin.updateOnDragDropped(EventHandler<? super DragEvent> eventHandler) voidNodePeerMixin.updateOnDragEntered(EventHandler<? super DragEvent> eventHandler) voidNodePeerMixin.updateOnDragExited(EventHandler<? super DragEvent> eventHandler) voidNodePeerMixin.updateOnDragOver(EventHandler<? super DragEvent> eventHandler) -
Uses of EventHandler in dev.webfx.kit.mapper.peers.javafxgraphics.markers
Methods in dev.webfx.kit.mapper.peers.javafxgraphics.markers that return EventHandlerModifier and TypeMethodDescriptiondefault EventHandler<? super MouseEvent>HasOnMouseClickedProperty.getOnMouseClicked()Gets the value of theonMouseClickedproperty.Methods in dev.webfx.kit.mapper.peers.javafxgraphics.markers that return types with arguments of type EventHandlerModifier and TypeMethodDescriptionObjectProperty<EventHandler<? super MouseEvent>>HasOnMouseClickedProperty.onMouseClickedProperty()Defines a function to be called when a mouse button has been clicked (pressed and released).Methods in dev.webfx.kit.mapper.peers.javafxgraphics.markers with parameters of type EventHandlerModifier and TypeMethodDescriptiondefault voidHasOnMouseClickedProperty.setOnMouseClicked(EventHandler<? super MouseEvent> value) Sets the value of theonMouseClickedproperty. -
Uses of EventHandler in dev.webfx.kit.mapper.peers.javafxgraphics.openjfx
Methods in dev.webfx.kit.mapper.peers.javafxgraphics.openjfx with parameters of type EventHandlerModifier and TypeMethodDescriptionvoidFxNodePeer.updateOnDragDetected(EventHandler<? super MouseEvent> eventHandler) voidFxNodePeer.updateOnDragDone(EventHandler<? super DragEvent> eventHandler) voidFxNodePeer.updateOnDragDropped(EventHandler<? super DragEvent> eventHandler) voidFxNodePeer.updateOnDragEntered(EventHandler<? super DragEvent> eventHandler) voidFxNodePeer.updateOnDragExited(EventHandler<? super DragEvent> eventHandler) voidFxNodePeer.updateOnDragOver(EventHandler<? super DragEvent> eventHandler) -
Uses of EventHandler in javafx.animation
Methods in javafx.animation that return EventHandlerModifier and TypeMethodDescriptionfinal EventHandler<ActionEvent>Animation.getOnFinished()Gets the value of theonFinishedproperty.KeyFrame.getOnFinished()Returns theonFinishedevent handler of thisKeyFrame.Methods in javafx.animation that return types with arguments of type EventHandlerModifier and TypeMethodDescriptionfinal ObjectProperty<EventHandler<ActionEvent>>Animation.onFinishedProperty()The action to be executed at the conclusion of thisAnimation.Methods in javafx.animation with parameters of type EventHandlerModifier and TypeMethodDescriptionfinal voidAnimation.setOnFinished(EventHandler<ActionEvent> value) Sets the value of theonFinishedproperty.Constructors in javafx.animation with parameters of type EventHandlerModifierConstructorDescriptionKeyFrame(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.event
Classes in javafx.event that implement EventHandlerModifier and TypeClassDescriptionfinal classWeakEventHandler<T extends Event>Used in event handler registration in place of its associated event handler.Constructors in javafx.event with parameters of type EventHandlerModifierConstructorDescriptionWeakEventHandler(EventHandler<T> eventHandler) Creates a new instance ofWeakEventHandler. -
Uses of EventHandler in javafx.scene
Methods in javafx.scene that return EventHandlerModifier and TypeMethodDescriptionfinal EventHandler<? super ContextMenuEvent>Node.getOnContextMenuRequested()Gets the value of theonContextMenuRequestedproperty.final EventHandler<? super MouseEvent>Node.getOnDragDetected()Gets the value of theonDragDetectedproperty.final EventHandler<? super DragEvent>Node.getOnDragDone()Gets the value of theonDragDoneproperty.final EventHandler<? super DragEvent>Node.getOnDragDropped()Gets the value of theonDragDroppedproperty.final EventHandler<? super DragEvent>Node.getOnDragEntered()Gets the value of theonDragEnteredproperty.final EventHandler<? super DragEvent>Node.getOnDragExited()Gets the value of theonDragExitedproperty.final EventHandler<? super DragEvent>Node.getOnDragOver()Gets the value of theonDragOverproperty.final EventHandler<? super KeyEvent>Node.getOnKeyPressed()Gets the value of theonKeyPressedproperty.final EventHandler<? super KeyEvent>Scene.getOnKeyPressed()Gets the value of theonKeyPressedproperty.final EventHandler<? super KeyEvent>Node.getOnKeyReleased()Gets the value of theonKeyReleasedproperty.final EventHandler<? super KeyEvent>Scene.getOnKeyReleased()Gets the value of theonKeyReleasedproperty.final EventHandler<? super KeyEvent>Node.getOnKeyTyped()Gets the value of theonKeyTypedproperty.final EventHandler<? super KeyEvent>Scene.getOnKeyTyped()Gets the value of theonKeyTypedproperty.final EventHandler<? super MouseEvent>Scene.getOnMouseClicked()Gets the value of theonMouseClickedproperty.final EventHandler<? super MouseEvent>Node.getOnMouseDragged()Gets the value of theonMouseDraggedproperty.final EventHandler<? super MouseEvent>Node.getOnMouseEntered()Gets the value of theonMouseEnteredproperty.final EventHandler<? super MouseEvent>Node.getOnMouseExited()Gets the value of theonMouseExitedproperty.final EventHandler<? super MouseEvent>Node.getOnMouseMoved()Gets the value of theonMouseMovedproperty.final EventHandler<? super MouseEvent>Node.getOnMousePressed()Gets the value of theonMousePressedproperty.final EventHandler<? super MouseEvent>Scene.getOnMousePressed()Gets the value of theonMousePressedproperty.final EventHandler<? super MouseEvent>Node.getOnMouseReleased()Gets the value of theonMouseReleasedproperty.final EventHandler<? super MouseEvent>Scene.getOnMouseReleased()Gets the value of theonMouseReleasedproperty.final EventHandler<? super ScrollEvent>Node.getOnScroll()Gets the value of theonScrollproperty.final EventHandler<? super SwipeEvent>Node.getOnSwipeDown()Gets the value of theonSwipeDownproperty.final EventHandler<? super SwipeEvent>Node.getOnSwipeLeft()Gets the value of theonSwipeLeftproperty.final EventHandler<? super SwipeEvent>Node.getOnSwipeRight()Gets the value of theonSwipeRightproperty.final EventHandler<? super SwipeEvent>Node.getOnSwipeUp()Gets the value of theonSwipeUpproperty.final EventHandler<? super TouchEvent>Node.getOnTouchMoved()Gets the value of theonTouchMovedproperty.final EventHandler<? super TouchEvent>Node.getOnTouchPressed()Gets the value of theonTouchPressedproperty.final EventHandler<? super TouchEvent>Node.getOnTouchReleased()Gets the value of theonTouchReleasedproperty.final EventHandler<? super TouchEvent>Node.getOnTouchStationary()Gets the value of theonTouchStationaryproperty.Methods in javafx.scene that return types with arguments of type EventHandlerModifier and TypeMethodDescriptionfinal ObjectProperty<EventHandler<? super ContextMenuEvent>>Defines a function to be called when a context menu has been requested on thisNode.final ObjectProperty<EventHandler<? super MouseEvent>>Node.onDragDetectedProperty()Defines a function to be called when drag gesture has been detected.final ObjectProperty<EventHandler<? super DragEvent>>Node.onDragDoneProperty()Defines a function to be called when thisNodeis 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 thisNodeduring drag and drop gesture.final ObjectProperty<EventHandler<? super DragEvent>>Node.onDragEnteredProperty()Defines a function to be called when drag gesture enters thisNode.final ObjectProperty<EventHandler<? super DragEvent>>Node.onDragExitedProperty()Defines a function to be called when drag gesture exits thisNode.final ObjectProperty<EventHandler<? super DragEvent>>Node.onDragOverProperty()Defines a function to be called when drag gesture progresses within thisNode.final ObjectProperty<EventHandler<? super KeyEvent>>Node.onKeyPressedProperty()Defines a function to be called when thisNodeor its childNodehas input focus and a key has been pressed.final ObjectProperty<EventHandler<? super KeyEvent>>Scene.onKeyPressedProperty()Defines a function to be called when someNodeof thisScenehas input focus and a key has been pressed.final ObjectProperty<EventHandler<? super KeyEvent>>Node.onKeyReleasedProperty()Defines a function to be called when thisNodeor its childNodehas input focus and a key has been released.final ObjectProperty<EventHandler<? super KeyEvent>>Scene.onKeyReleasedProperty()Defines a function to be called when someNodeof thisScenehas input focus and a key has been released.final ObjectProperty<EventHandler<? super KeyEvent>>Node.onKeyTypedProperty()Defines a function to be called when thisNodeor its childNodehas input focus and a key has been typed.final ObjectProperty<EventHandler<? super KeyEvent>>Scene.onKeyTypedProperty()Defines a function to be called when someNodeof thisScenehas input focus and a key has been typed.final ObjectProperty<EventHandler<? super MouseEvent>>Node.onMouseClickedProperty()Defines a function to be called when a mouse button has been clicked (pressed and released) on thisNode.final ObjectProperty<EventHandler<? super MouseEvent>>Scene.onMouseClickedProperty()Defines a function to be called when a mouse button has been clicked (pressed and released) on thisScene.final ObjectProperty<EventHandler<? super MouseEvent>>Node.onMouseDraggedProperty()Defines a function to be called when a mouse button is pressed on thisNodeand then dragged.final ObjectProperty<EventHandler<? super MouseEvent>>Node.onMouseEnteredProperty()Defines a function to be called when the mouse enters thisNode.final ObjectProperty<EventHandler<? super MouseEvent>>Node.onMouseExitedProperty()Defines a function to be called when the mouse exits thisNode.final ObjectProperty<EventHandler<? super MouseEvent>>Node.onMouseMovedProperty()Defines a function to be called when mouse cursor moves within thisNodebut no buttons have been pushed.final ObjectProperty<EventHandler<? super MouseEvent>>Node.onMousePressedProperty()Defines a function to be called when a mouse button has been pressed on thisNode.final ObjectProperty<EventHandler<? super MouseEvent>>Scene.onMousePressedProperty()Defines a function to be called when a mouse button has been pressed on thisScene.final ObjectProperty<EventHandler<? super MouseEvent>>Node.onMouseReleasedProperty()Defines a function to be called when a mouse button has been released on thisNode.final ObjectProperty<EventHandler<? super MouseEvent>>Scene.onMouseReleasedProperty()Defines a function to be called when a mouse button has been released on thisScene.final ObjectProperty<EventHandler<? super ScrollEvent>>Node.onScrollProperty()Defines a function to be called when user performs a scrolling action.final ObjectProperty<EventHandler<? super SwipeEvent>>Node.onSwipeDownProperty()Defines a function to be called when a downward swipe gesture centered over this node happens.final ObjectProperty<EventHandler<? super SwipeEvent>>Node.onSwipeLeftProperty()Defines a function to be called when a leftward swipe gesture centered over this node happens.final ObjectProperty<EventHandler<? super SwipeEvent>>Node.onSwipeRightProperty()Defines a function to be called when an rightward swipe gesture centered over this node happens.final ObjectProperty<EventHandler<? super SwipeEvent>>Node.onSwipeUpProperty()Defines a function to be called when an upward swipe gesture centered over this node happens.final ObjectProperty<EventHandler<? super TouchEvent>>Node.onTouchMovedProperty()Defines a function to be called when a touch point is moved.final ObjectProperty<EventHandler<? super TouchEvent>>Node.onTouchPressedProperty()Defines a function to be called when a new touch point is pressed.final ObjectProperty<EventHandler<? super TouchEvent>>Node.onTouchReleasedProperty()Defines a function to be called when a touch point is released.final ObjectProperty<EventHandler<? super TouchEvent>>Node.onTouchStationaryProperty()Defines a function to be called when a touch point stays pressed and still.Methods in javafx.scene with parameters of type EventHandlerModifier 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 voidNode.setOnContextMenuRequested(EventHandler<? super ContextMenuEvent> value) Sets the value of theonContextMenuRequestedproperty.final voidNode.setOnDragDetected(EventHandler<? super MouseEvent> value) Sets the value of theonDragDetectedproperty.final voidNode.setOnDragDone(EventHandler<? super DragEvent> value) Sets the value of theonDragDoneproperty.final voidNode.setOnDragDropped(EventHandler<? super DragEvent> value) Sets the value of theonDragDroppedproperty.final voidNode.setOnDragEntered(EventHandler<? super DragEvent> value) Sets the value of theonDragEnteredproperty.final voidNode.setOnDragExited(EventHandler<? super DragEvent> value) Sets the value of theonDragExitedproperty.final voidNode.setOnDragOver(EventHandler<? super DragEvent> value) Sets the value of theonDragOverproperty.final voidNode.setOnKeyPressed(EventHandler<? super KeyEvent> value) Sets the value of theonKeyPressedproperty.final voidScene.setOnKeyPressed(EventHandler<? super KeyEvent> value) Sets the value of theonKeyPressedproperty.final voidNode.setOnKeyReleased(EventHandler<? super KeyEvent> value) Sets the value of theonKeyReleasedproperty.final voidScene.setOnKeyReleased(EventHandler<? super KeyEvent> value) Sets the value of theonKeyReleasedproperty.final voidNode.setOnKeyTyped(EventHandler<? super KeyEvent> value) Sets the value of theonKeyTypedproperty.final voidScene.setOnKeyTyped(EventHandler<? super KeyEvent> value) Sets the value of theonKeyTypedproperty.final voidScene.setOnMouseClicked(EventHandler<? super MouseEvent> value) Sets the value of theonMouseClickedproperty.final voidNode.setOnMouseDragged(EventHandler<? super MouseEvent> value) Sets the value of theonMouseDraggedproperty.final voidNode.setOnMouseEntered(EventHandler<? super MouseEvent> value) Sets the value of theonMouseEnteredproperty.final voidNode.setOnMouseExited(EventHandler<? super MouseEvent> value) Sets the value of theonMouseExitedproperty.final voidNode.setOnMouseMoved(EventHandler<? super MouseEvent> value) Sets the value of theonMouseMovedproperty.final voidNode.setOnMousePressed(EventHandler<? super MouseEvent> value) Sets the value of theonMousePressedproperty.final voidScene.setOnMousePressed(EventHandler<? super MouseEvent> value) Sets the value of theonMousePressedproperty.final voidNode.setOnMouseReleased(EventHandler<? super MouseEvent> value) Sets the value of theonMouseReleasedproperty.final voidScene.setOnMouseReleased(EventHandler<? super MouseEvent> value) Sets the value of theonMouseReleasedproperty.final voidNode.setOnScroll(EventHandler<? super ScrollEvent> value) Sets the value of theonScrollproperty.final voidNode.setOnSwipeDown(EventHandler<? super SwipeEvent> value) Sets the value of theonSwipeDownproperty.final voidNode.setOnSwipeLeft(EventHandler<? super SwipeEvent> value) Sets the value of theonSwipeLeftproperty.final voidNode.setOnSwipeRight(EventHandler<? super SwipeEvent> value) Sets the value of theonSwipeRightproperty.final voidNode.setOnSwipeUp(EventHandler<? super SwipeEvent> value) Sets the value of theonSwipeUpproperty.final voidNode.setOnTouchMoved(EventHandler<? super TouchEvent> value) Sets the value of theonTouchMovedproperty.final voidNode.setOnTouchPressed(EventHandler<? super TouchEvent> value) Sets the value of theonTouchPressedproperty.final voidNode.setOnTouchReleased(EventHandler<? super TouchEvent> value) Sets the value of theonTouchReleasedproperty.final voidNode.setOnTouchStationary(EventHandler<? super TouchEvent> value) Sets the value of theonTouchStationaryproperty. -
Uses of EventHandler in javafx.scene.control
Methods in javafx.scene.control that return EventHandlerModifier and TypeMethodDescriptionfinal EventHandler<ActionEvent>ButtonBase.getOnAction()Gets the value of theonActionproperty.final EventHandler<ActionEvent>ChoiceBox.getOnAction()Gets the value of theonActionproperty.final EventHandler<ActionEvent>ComboBoxBase.getOnAction()Gets the value of theonActionproperty.final EventHandler<ActionEvent>ContextMenu.getOnAction()Gets the value of theonActionproperty.final EventHandler<ActionEvent>MenuItem.getOnAction()Gets the value of theonActionproperty.final EventHandler<ActionEvent>TextField.getOnAction()Gets the value of theonActionproperty.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 theonCloseRequestproperty.Tab.getOnCloseRequest()Gets the value of theonCloseRequestproperty.final EventHandler<Event>ChoiceBox.getOnHidden()Gets the value of theonHiddenproperty.final EventHandler<Event>ComboBoxBase.getOnHidden()Gets the value of theonHiddenproperty.final EventHandler<DialogEvent>Dialog.getOnHidden()Gets the value of theonHiddenproperty.final EventHandler<Event>Menu.getOnHidden()Gets the value of theonHiddenproperty.final EventHandler<Event>ChoiceBox.getOnHiding()Gets the value of theonHidingproperty.final EventHandler<Event>ComboBoxBase.getOnHiding()Gets the value of theonHidingproperty.final EventHandler<DialogEvent>Dialog.getOnHiding()Gets the value of theonHidingproperty.final EventHandler<Event>Menu.getOnHiding()Gets the value of theonHidingproperty.final EventHandler<Event>MenuItem.getOnMenuValidation()Gets the value of theonMenuValidationproperty.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 theonShowingproperty.final EventHandler<Event>ComboBoxBase.getOnShowing()Gets the value of theonShowingproperty.final EventHandler<DialogEvent>Dialog.getOnShowing()Gets the value of theonShowingproperty.final EventHandler<Event>Menu.getOnShowing()Gets the value of theonShowingproperty.final EventHandler<Event>ChoiceBox.getOnShown()Gets the value of theonShownproperty.final EventHandler<Event>ComboBoxBase.getOnShown()Gets the value of theonShownproperty.final EventHandler<DialogEvent>Dialog.getOnShown()Gets the value of theonShownproperty.final EventHandler<Event>Menu.getOnShown()Gets the value of theonShownproperty.Methods in javafx.scene.control that return types with arguments of type EventHandlerModifier 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 ChoiceBoxvalueproperty is changed.final ObjectProperty<EventHandler<ActionEvent>>ComboBoxBase.onActionProperty()The ComboBox action, which is invoked whenever the ComboBoxvalueproperty is changed.final ObjectProperty<EventHandler<ActionEvent>>ContextMenu.onActionProperty()Callback function to be informed when an item contained within thisContextMenuhas 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, ornullif no action handler is assigned.final ObjectProperty<EventHandler<Event>>Tab.onClosedProperty()The event handler that is associated with the tab when the tab is closed.final ObjectProperty<EventHandler<DialogEvent>>Dialog.onCloseRequestProperty()Called when there is an external request to close thisDialog.final ObjectProperty<EventHandler<Event>>Tab.onCloseRequestProperty()Called when there is an external request to close thisTab.final ObjectProperty<EventHandler<Event>>ChoiceBox.onHiddenProperty()Called just after theChoiceBoxpopup has been hidden.final ObjectProperty<EventHandler<Event>>ComboBoxBase.onHiddenProperty()Called just after theComboBoxBasepopup/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 theContextMenuhas been hidden.final ObjectProperty<EventHandler<Event>>ChoiceBox.onHidingProperty()Called just prior to theChoiceBoxpopup being hidden.final ObjectProperty<EventHandler<Event>>ComboBoxBase.onHidingProperty()Called just prior to theComboBoxpopup/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 theContextMenubeing hidden.final ObjectProperty<EventHandler<Event>>MenuItem.onMenuValidationProperty()The event handler that is associated with invocation of an accelerator for a MenuItem.final ObjectProperty<EventHandler<Event>>The event handler that is associated with a selection on the tab.final ObjectProperty<EventHandler<Event>>ChoiceBox.onShowingProperty()Called just prior to theChoiceBoxpopup being shown.final ObjectProperty<EventHandler<Event>>ComboBoxBase.onShowingProperty()Called just prior to theComboBoxBasepopup/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 theContextMenubeing shown, even if the menu has no items to show.final ObjectProperty<EventHandler<Event>>ChoiceBox.onShownProperty()Called just after theChoiceBoxpopup is shown.final ObjectProperty<EventHandler<Event>>ComboBoxBase.onShownProperty()Called just after theComboBoxBasepopup/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 theContextMenuis shown.Methods in javafx.scene.control with parameters of type EventHandlerModifier and TypeMethodDescription<E extends Event>
voidMenu.addEventHandler(EventType<E> eventType, EventHandler<E> eventHandler) Registers an event handler to this MenuItem.<E extends Event>
voidMenuItem.addEventHandler(EventType<E> eventType, EventHandler<E> eventHandler) Registers an event handler to this MenuItem.<E extends Event>
voidMenu.removeEventHandler(EventType<E> eventType, EventHandler<E> eventHandler) Unregisters a previously registered event handler from this MenuItem.<E extends Event>
voidMenuItem.removeEventHandler(EventType<E> eventType, EventHandler<E> eventHandler) Unregisters a previously registered event handler from this MenuItem.final voidButtonBase.setOnAction(EventHandler<ActionEvent> value) Sets the value of theonActionproperty.final voidChoiceBox.setOnAction(EventHandler<ActionEvent> value) Sets the value of theonActionproperty.final voidComboBoxBase.setOnAction(EventHandler<ActionEvent> value) Sets the value of theonActionproperty.final voidContextMenu.setOnAction(EventHandler<ActionEvent> value) Sets the value of theonActionproperty.final voidMenuItem.setOnAction(EventHandler<ActionEvent> value) Sets the value of theonActionproperty.final voidTextField.setOnAction(EventHandler<ActionEvent> value) Sets the value of theonActionproperty.final voidTab.setOnClosed(EventHandler<Event> value) Defines a function to be called when the tab is closed.final voidDialog.setOnCloseRequest(EventHandler<DialogEvent> value) Sets the value of theonCloseRequestproperty.voidTab.setOnCloseRequest(EventHandler<Event> value) Sets the value of theonCloseRequestproperty.final voidChoiceBox.setOnHidden(EventHandler<Event> value) Sets the value of theonHiddenproperty.final voidComboBoxBase.setOnHidden(EventHandler<Event> value) Sets the value of theonHiddenproperty.final voidDialog.setOnHidden(EventHandler<DialogEvent> value) Sets the value of theonHiddenproperty.final voidMenu.setOnHidden(EventHandler<Event> value) Sets the value of theonHiddenproperty.final voidChoiceBox.setOnHiding(EventHandler<Event> value) Sets the value of theonHidingproperty.final voidComboBoxBase.setOnHiding(EventHandler<Event> value) Sets the value of theonHidingproperty.final voidDialog.setOnHiding(EventHandler<DialogEvent> value) Sets the value of theonHidingproperty.final voidMenu.setOnHiding(EventHandler<Event> value) Sets the value of theonHidingproperty.final voidMenuItem.setOnMenuValidation(EventHandler<Event> value) Sets the value of theonMenuValidationproperty.final voidTab.setOnSelectionChanged(EventHandler<Event> value) Defines a function to be called when a selection changed has occurred on the tab.final voidChoiceBox.setOnShowing(EventHandler<Event> value) Sets the value of theonShowingproperty.final voidComboBoxBase.setOnShowing(EventHandler<Event> value) Sets the value of theonShowingproperty.final voidDialog.setOnShowing(EventHandler<DialogEvent> value) Sets the value of theonShowingproperty.final voidMenu.setOnShowing(EventHandler<Event> value) Sets the value of theonShowingproperty.final voidChoiceBox.setOnShown(EventHandler<Event> value) Sets the value of theonShownproperty.final voidComboBoxBase.setOnShown(EventHandler<Event> value) Sets the value of theonShownproperty.final voidDialog.setOnShown(EventHandler<DialogEvent> value) Sets the value of theonShownproperty.final voidMenu.setOnShown(EventHandler<Event> value) Sets the value of theonShownproperty. -
Uses of EventHandler in javafx.scene.web
Methods in javafx.scene.web that return EventHandlerModifier and TypeMethodDescriptionfinal EventHandler<WebErrorEvent>WebEngine.getOnError()Gets the value of theonErrorproperty.Methods in javafx.scene.web that return types with arguments of type EventHandlerModifier and TypeMethodDescriptionfinal ObjectProperty<EventHandler<WebErrorEvent>>WebEngine.onErrorProperty()Methods in javafx.scene.web with parameters of type EventHandlerModifier and TypeMethodDescriptionfinal voidWebEngine.setOnError(EventHandler<WebErrorEvent> handler) Sets the value of theonErrorproperty. -
Uses of EventHandler in javafx.stage
Methods in javafx.stage that return EventHandlerModifier and TypeMethodDescriptionfinal EventHandler<WindowEvent>Window.getOnCloseRequest()Gets the value of theonCloseRequestproperty.Methods in javafx.stage that return types with arguments of type EventHandlerModifier and TypeMethodDescriptionfinal ObjectProperty<EventHandler<WindowEvent>>Window.onCloseRequestProperty()Called when there is an external request to close thisWindow.Methods in javafx.stage with parameters of type EventHandlerModifier 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 voidWindow.setOnCloseRequest(EventHandler<WindowEvent> value) Sets the value of theonCloseRequestproperty.