Uses of Class
javafx.event.Event
Package
Description
Provides the set of classes for javafx.concurrent.
Provides API for making properties styleable via CSS and for supporting
pseudo-class state.
Provides basic framework for FX events, their delivery and handling.
Provides the core set of base
classes for the JavaFX Scene Graph API.
The JavaFX User Interface Controls (UI Controls or just Controls) are
specialized Nodes in the JavaFX Scenegraph especially suited for reuse in
many different application contexts.
Provides the set of classes for mouse and keyboard input event handling.
Provides the set of classes for integrating audio and video into Java FX
Applications.
Provides the set of convenient classes to perform rotating, scaling,
shearing, and translation transformations for
Affine
objects.This package provides means for loading and displaying Web content.
Provides the top-level container classes for JavaFX content.
-
Uses of Event in javafx.concurrent
Modifier and TypeClassDescriptionclass
An event which occurs whenever the state changes on a Worker.Modifier and TypeMethodDescriptionfinal <T extends Event>
voidService.addEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter for this target.final <T extends Event>
voidTask.addEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter for this target.final <T extends Event>
voidService.addEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler for this target.final <T extends Event>
voidTask.addEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler for this target.final <T extends Event>
voidService.removeEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter from this target.final <T extends Event>
voidTask.removeEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter from this target.final <T extends Event>
voidService.removeEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler from this target.final <T extends Event>
voidTask.removeEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler from this target.protected final <T extends Event>
voidService.setEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Sets the handler to use for this event type.protected final <T extends Event>
voidTask.setEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Sets the handler to use for this event type. -
Uses of Event in javafx.css
Modifier and TypeClassDescriptionfinal class
An event that signals the creation, beginning, completion and cancellation of implicit CSS transitions.ModifierConstructorDescriptionTransitionEvent
(EventType<? extends Event> eventType, StyleableProperty<?> property, String propertyName, Duration elapsedTime) Creates a new instance of theTransitionEvent
class.TransitionEvent
(EventType<? extends Event> eventType, StyleableProperty<?> property, Duration elapsedTime) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Event in javafx.event
Modifier and TypeInterfaceDescriptioninterface
EventHandler<T extends Event>
Handler for events of a specific class / type.final class
This class represents a specific event type associated with anEvent
.final class
WeakEventHandler<T extends Event>
Used in event handler registration in place of its associated event handler.Modifier and TypeFieldDescriptionEvent.ANY
Common supertype for all event types.Event.eventType
Type of the event.EventType.ROOT
The root event type.Modifier and TypeMethodDescriptiondefault <E extends Event>
voidEventTarget.addEventFilter
(EventType<E> eventType, EventHandler<? super E> eventFilter) Registers an event filter for this target.default <E extends Event>
voidEventTarget.addEventHandler
(EventType<E> eventType, EventHandler<? super E> eventHandler) Registers an event handler for this target.default <E extends Event>
voidEventTarget.removeEventFilter
(EventType<E> eventType, EventHandler<? super E> eventFilter) Unregisters a previously registered event filter from this target.default <E extends Event>
voidEventTarget.removeEventHandler
(EventType<E> eventType, EventHandler<? super E> eventHandler) Unregisters a previously registered event handler from this target.Modifier and TypeMethodDescriptionEvent.copyFor
(Object newSource, EventTarget newTarget) Creates and returns a copy of this event with the specified event source and target.EventDispatchChain.dispatchEvent
(Event event) Dispatches the specified event through thisEventDispatchChain
.EventDispatcher.dispatchEvent
(Event event, EventDispatchChain tail) Dispatches the specified event by thisEventDispatcher
.Modifier and TypeMethodDescriptionEventDispatchChain.dispatchEvent
(Event event) Dispatches the specified event through thisEventDispatchChain
.EventDispatcher.dispatchEvent
(Event event, EventDispatchChain tail) Dispatches the specified event by thisEventDispatcher
.static void
Event.fireEvent
(EventTarget eventTarget, Event event) Fires the specified event. -
Uses of Event in javafx.scene
Modifier and TypeMethodDescriptionfinal <T extends Event>
voidNode.addEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) final <T extends Event>
voidScene.addEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) final <T extends Event>
voidNode.addEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) final <T extends Event>
voidScene.addEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) final <T extends Event>
voidNode.removeEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) final <T extends Event>
voidScene.removeEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) final <T extends Event>
voidNode.removeEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) final <T extends Event>
voidScene.removeEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) 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. -
Uses of Event in javafx.scene.control
Modifier and TypeClassDescriptionstatic class
A TreeModificationEvent class that works in a similar vein to theTreeItem.TreeModificationEvent
class, in that this event will bubble up the CheckBoxTreeItem hierarchy, until the parent node is null.class
Event related to dialog showing/hiding actions.static class
AnEvent
subclass used specifically in ListView for representing edit-related events.class
Event related toScrollPane
and virtualised controls such asListView
,TableView
,TreeView
andTreeTableView
.class
SortEvent<C>
Event related toTableView
andTreeTableView
sorting.static class
An event that is fired when a user performs an edit on a table cell.static class
AnEvent
that contains relevant information for all forms of TreeItem modifications.static class
An event that is fired when a user performs an edit on a table cell.static class
AnEvent
subclass used specifically in TreeTableView for representing edit-related events.static class
AnEvent
subclass used specifically in TreeView for representing edit-related events.Modifier and TypeFieldDescriptionCheckBoxTreeItem.TreeModificationEvent.ANY
Common supertype for all tree modification event types.Tab.CLOSED_EVENT
Called when a user closes this tab.MenuItem.MENU_VALIDATION_EVENT
Called when a accelerator for the Menuitem is invokedChoiceBox.ON_HIDDEN
Called when the ChoiceBox popup has been hidden.ComboBoxBase.ON_HIDDEN
Called when the ComboBox popup/display has been hidden.Menu.ON_HIDDEN
Called when the contextMenu for this menu is hidden.MenuButton.ON_HIDDEN
Called when the MenuButton popup has been hidden.ChoiceBox.ON_HIDING
Called when the ChoiceBox popup will be hidden.ComboBoxBase.ON_HIDING
Called when the ComboBox popup/display will be hidden.Menu.ON_HIDING
Called when the contextMenu for this menu will be hidden.MenuButton.ON_HIDING
Called when the MenuButton popup will be hidden.ChoiceBox.ON_SHOWING
Called prior to the ChoiceBox showing its popup after the user has clicked or otherwise interacted with the ChoiceBox.ComboBoxBase.ON_SHOWING
Called prior to the ComboBox showing its popup/display after the user has clicked or otherwise interacted with the ComboBox.Menu.ON_SHOWING
Called when the contextMenu for this menu will be shown.MenuButton.ON_SHOWING
Called prior to the MenuButton showing its popup after the user has clicked or otherwise interacted with the MenuButton.ChoiceBox.ON_SHOWN
Called after the ChoiceBox has shown its popup.ComboBoxBase.ON_SHOWN
Called after the ComboBox has shown its popup/display.Menu.ON_SHOWN
Called when the contextMenu for this menu shows.MenuButton.ON_SHOWN
Called after the MenuButton has shown its popup.Called when the tab becomes selected or unselected.Called when there is an external request to close thisTab
.Modifier and TypeMethodDescriptionfinal <E extends Event>
voidDialog.addEventFilter
(EventType<E> eventType, EventHandler<? super E> eventFilter) final <E extends Event>
voidTab.addEventFilter
(EventType<E> eventType, EventHandler<? super E> eventFilter) <E extends Event>
voidTreeItem.addEventFilter
(EventType<E> eventType, EventHandler<? super E> eventHandler) Registers an event filter for this target.final <E extends Event>
voidDialog.addEventHandler
(EventType<E> eventType, EventHandler<? super E> eventHandler) final <E extends Event>
voidTab.addEventHandler
(EventType<E> eventType, EventHandler<? super E> eventHandler) <E extends Event>
voidTreeItem.addEventHandler
(EventType<E> eventType, EventHandler<? super E> eventHandler) Registers an event handler for this target.final <E extends Event>
voidDialog.removeEventFilter
(EventType<E> eventType, EventHandler<? super E> eventFilter) final <E extends Event>
voidTab.removeEventFilter
(EventType<E> eventType, EventHandler<? super E> eventFilter) final <E extends Event>
voidDialog.removeEventHandler
(EventType<E> eventType, EventHandler<? super E> eventHandler) final <E extends Event>
voidTab.removeEventHandler
(EventType<E> eventType, EventHandler<? super E> eventHandler) Modifier and TypeMethodDescriptionfinal EventHandler
<Event> Tab.getOnClosed()
The event handler that is associated with the tab when the tab is closed.Tab.getOnCloseRequest()
Gets the value of theonCloseRequest
property.final EventHandler
<Event> ChoiceBox.getOnHidden()
Gets the value of theonHidden
property.final EventHandler
<Event> ComboBoxBase.getOnHidden()
Gets the value of theonHidden
property.final EventHandler
<Event> Menu.getOnHidden()
Gets the value of theonHidden
property.final EventHandler
<Event> MenuButton.getOnHidden()
Gets the value of theonHidden
property.final EventHandler
<Event> ChoiceBox.getOnHiding()
Gets the value of theonHiding
property.final EventHandler
<Event> ComboBoxBase.getOnHiding()
Gets the value of theonHiding
property.final EventHandler
<Event> Menu.getOnHiding()
Gets the value of theonHiding
property.final EventHandler
<Event> MenuButton.getOnHiding()
Gets the value of theonHiding
property.final EventHandler
<Event> MenuItem.getOnMenuValidation()
Gets the value of theonMenuValidation
property.final EventHandler
<Event> Tab.getOnSelectionChanged()
The event handler that is associated with a selection on the tab.final EventHandler
<Event> ChoiceBox.getOnShowing()
Gets the value of theonShowing
property.final EventHandler
<Event> ComboBoxBase.getOnShowing()
Gets the value of theonShowing
property.final EventHandler
<Event> Menu.getOnShowing()
Gets the value of theonShowing
property.final EventHandler
<Event> MenuButton.getOnShowing()
Gets the value of theonShowing
property.final EventHandler
<Event> ChoiceBox.getOnShown()
Gets the value of theonShown
property.final EventHandler
<Event> ComboBoxBase.getOnShown()
Gets the value of theonShown
property.final EventHandler
<Event> Menu.getOnShown()
Gets the value of theonShown
property.final EventHandler
<Event> MenuButton.getOnShown()
Gets the value of theonShown
property.final ObjectProperty
<EventHandler<Event>> Tab.onClosedProperty()
The event handler that is associated with the tab when the tab is closed.final ObjectProperty
<EventHandler<Event>> Tab.onCloseRequestProperty()
Called when there is an external request to close thisTab
.final ObjectProperty
<EventHandler<Event>> ChoiceBox.onHiddenProperty()
Called just after theChoiceBox
popup has been hidden.final ObjectProperty
<EventHandler<Event>> ComboBoxBase.onHiddenProperty()
Called just after theComboBoxBase
popup/display has been hidden.final ObjectProperty
<EventHandler<Event>> Menu.onHiddenProperty()
Called just after theContextMenu
has been hidden.final ObjectProperty
<EventHandler<Event>> MenuButton.onHiddenProperty()
Called just after theContextMenu
has been hidden.final ObjectProperty
<EventHandler<Event>> ChoiceBox.onHidingProperty()
Called just prior to theChoiceBox
popup being hidden.final ObjectProperty
<EventHandler<Event>> ComboBoxBase.onHidingProperty()
Called just prior to theComboBox
popup/display being hidden.final ObjectProperty
<EventHandler<Event>> Menu.onHidingProperty()
Called just prior to theContextMenu
being hidden.final ObjectProperty
<EventHandler<Event>> MenuButton.onHidingProperty()
Called just prior to theContextMenu
being hidden.final ObjectProperty
<EventHandler<Event>> MenuItem.onMenuValidationProperty()
The event handler that is associated with invocation of an accelerator for a MenuItem.final ObjectProperty
<EventHandler<Event>> The event handler that is associated with a selection on the tab.final ObjectProperty
<EventHandler<Event>> ChoiceBox.onShowingProperty()
Called just prior to theChoiceBox
popup being shown.final ObjectProperty
<EventHandler<Event>> ComboBoxBase.onShowingProperty()
Called just prior to theComboBoxBase
popup/display being shown.final ObjectProperty
<EventHandler<Event>> Menu.onShowingProperty()
Called just prior to theContextMenu
being shown, even if the menu has no items to show.final ObjectProperty
<EventHandler<Event>> MenuButton.onShowingProperty()
Called just prior to theContextMenu
being shown.final ObjectProperty
<EventHandler<Event>> ChoiceBox.onShownProperty()
Called just after theChoiceBox
popup is shown.final ObjectProperty
<EventHandler<Event>> ComboBoxBase.onShownProperty()
Called just after theComboBoxBase
popup/display is shown.final ObjectProperty
<EventHandler<Event>> Menu.onShownProperty()
Called just after theContextMenu
is shown.final ObjectProperty
<EventHandler<Event>> MenuButton.onShownProperty()
Called just after theContextMenu
is shown.Modifier and TypeMethodDescriptionfinal void
Tab.setOnClosed
(EventHandler<Event> value) Defines a function to be called when the tab is closed.void
Tab.setOnCloseRequest
(EventHandler<Event> value) Sets the value of theonCloseRequest
property.final void
ChoiceBox.setOnHidden
(EventHandler<Event> value) Sets the value of theonHidden
property.final void
ComboBoxBase.setOnHidden
(EventHandler<Event> value) Sets the value of theonHidden
property.final void
Menu.setOnHidden
(EventHandler<Event> value) Sets the value of theonHidden
property.final void
MenuButton.setOnHidden
(EventHandler<Event> value) Sets the value of theonHidden
property.final void
ChoiceBox.setOnHiding
(EventHandler<Event> value) Sets the value of theonHiding
property.final void
ComboBoxBase.setOnHiding
(EventHandler<Event> value) Sets the value of theonHiding
property.final void
Menu.setOnHiding
(EventHandler<Event> value) Sets the value of theonHiding
property.final void
MenuButton.setOnHiding
(EventHandler<Event> value) Sets the value of theonHiding
property.final void
MenuItem.setOnMenuValidation
(EventHandler<Event> value) Sets the value of theonMenuValidation
property.final void
Tab.setOnSelectionChanged
(EventHandler<Event> value) Defines a function to be called when a selection changed has occurred on the tab.final void
ChoiceBox.setOnShowing
(EventHandler<Event> value) Sets the value of theonShowing
property.final void
ComboBoxBase.setOnShowing
(EventHandler<Event> value) Sets the value of theonShowing
property.final void
Menu.setOnShowing
(EventHandler<Event> value) Sets the value of theonShowing
property.final void
MenuButton.setOnShowing
(EventHandler<Event> value) Sets the value of theonShowing
property.final void
ChoiceBox.setOnShown
(EventHandler<Event> value) Sets the value of theonShown
property.final void
ComboBoxBase.setOnShown
(EventHandler<Event> value) Sets the value of theonShown
property.final void
Menu.setOnShown
(EventHandler<Event> value) Sets the value of theonShown
property.final void
MenuButton.setOnShown
(EventHandler<Event> value) Sets the value of theonShown
property.ModifierConstructorDescriptionDialogEvent
(Dialog<?> source, EventType<? extends Event> eventType) Construct a newEvent
with the specified event source, target and type.TreeModificationEvent
(EventType<? extends Event> eventType, CheckBoxTreeItem<T> treeItem, boolean selectionChanged) Creates a default TreeModificationEvent instance to represent the change in selection/indeterminate states for the given CheckBoxTreeItem instance.TreeModificationEvent
(EventType<? extends Event> eventType, TreeItem<T> treeItem) Constructs a basic TreeModificationEvent - this is useful in situations where the tree item has not received a new value, has not changed between expanded/collapsed states, and whose children has not changed.TreeModificationEvent
(EventType<? extends Event> eventType, TreeItem<T> treeItem, boolean expanded) Constructs a TreeModificationEvent for when the TreeItem has had itsTreeItem.expandedProperty()
changed.TreeModificationEvent
(EventType<? extends Event> eventType, TreeItem<T> treeItem, List<? extends TreeItem<T>> added, List<? extends TreeItem<T>> removed) Constructs a TreeModificationEvent for when the TreeItem has had its children list changed.Constructs a TreeModificationEvent for when the TreeItem has had itsTreeItem.valueProperty()
changed. -
Uses of Event in javafx.scene.input
Modifier and TypeClassDescriptionclass
When the user requests a context menu, this event occurs.final class
Drag events replace mouse events during drag-and-drop gesture.class
An event indicating gesture input.class
An event indicating a user input.final class
An event which indicates that the underlying input method notifies its text change in aNode
.final class
An event which indicates that a keystroke occurred in aNode
.final class
Mouse drag events are delivered to potential gesture targets during full press-drag-release gestures.class
When a mouse event occurs, the top-most node under cursor is picked and the event is delivered to it through capturing and bubbling phases described atEventDispatcher
.final class
Rotate event indicates that user performed rotating gesture such as dragging two fingers around each other on track pad, touch screen or other similar device.final class
Scroll event indicates that user performed scrolling by mouse wheel, track pad, touch screen or other similar device.final class
Swipe event indicates that user performed a swipe gesture such as dragging a finger in one direction on touch screen.final class
Touch event indicates a touch screen action.final class
Zoom event indicates that user performed zooming gesture such as dragging two fingers apart on track pad, touch screen or other similar device. -
Uses of Event in javafx.scene.media
Modifier and TypeClassDescriptionclass
AnEvent
representing the occurrence of an error in handling media.class
AnActionEvent
representing a media marker. -
Uses of Event in javafx.scene.transform
Modifier and TypeClassDescriptionfinal class
This event is fired on a transform when any of its properties changes.Modifier and TypeMethodDescriptionfinal <T extends Event>
voidTransform.addEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter for this target.final <T extends Event>
voidTransform.addEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler for this target.final <T extends Event>
voidTransform.removeEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter from this target.final <T extends Event>
voidTransform.removeEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler from this target. -
Uses of Event in javafx.scene.web
-
Uses of Event in javafx.stage
Modifier and TypeClassDescriptionclass
Event related to window showing/hiding actions.Modifier and TypeMethodDescriptionfinal <T extends Event>
voidWindow.addEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) final <T extends Event>
voidWindow.addEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) final <T extends Event>
voidWindow.removeEventFilter
(EventType<T> eventType, EventHandler<? super T> eventFilter) final <T extends Event>
voidWindow.removeEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) protected final <T extends Event>
voidWindow.setEventHandler
(EventType<T> eventType, EventHandler<? super T> eventHandler) Sets the handler to use for this event type.Modifier and TypeMethodDescriptionfinal EventHandler
<Event> PopupWindow.getOnAutoHide()
Gets the value of theonAutoHide
property.final ObjectProperty
<EventHandler<Event>> PopupWindow.onAutoHideProperty()
Called after autoHide is run.Modifier and TypeMethodDescriptionfinal void
Fires the specified event.Modifier and TypeMethodDescriptionfinal void
PopupWindow.setOnAutoHide
(EventHandler<Event> value) Sets the value of theonAutoHide
property.ModifierConstructorDescriptionWindowEvent
(Window source, EventType<? extends Event> eventType) Construct a newEvent
with the specified event source, target and type.
TransitionEvent(EventType, StyleableProperty, String, Duration)
instead