Uses of Class
javafx.event.Event
Packages that use Event
Package
Description
Provides the set of classes for javafx.concurrent.
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
Subclasses of Event in javafx.concurrentModifier and TypeClassDescriptionclassAn event which occurs whenever the state changes on a Worker.Methods in javafx.concurrent with type parameters of type EventModifier and TypeMethodDescriptionfinal <T extends Event>
voidService.addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter to this task.final <T extends Event>
voidTask.addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter to this task.final <T extends Event>
voidService.addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler to this task.final <T extends Event>
voidTask.addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler to this task.final <T extends Event>
voidService.removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter from this task.final <T extends Event>
voidTask.removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter from this task.final <T extends Event>
voidService.removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler from this task.final <T extends Event>
voidTask.removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler from this task.protected final <T extends Event>
voidService.setEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Sets the handler to use for this event type.protected final <T extends Event>
voidTask.setEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Sets the handler to use for this event type.Methods in javafx.concurrent with parameters of type Event -
Uses of Event in javafx.event
Classes in javafx.event with type parameters of type EventModifier and TypeInterfaceDescriptioninterfaceEventHandler<T extends Event>Handler for events of a specific class / type.final classThis class represents a specific event type associated with anEvent.final classWeakEventHandler<T extends Event>Used in event handler registration in place of its associated event handler.Subclasses of Event in javafx.eventFields in javafx.event with type parameters of type EventModifier and TypeFieldDescriptionEvent.ANYCommon supertype for all event types.Event.eventTypeType of the event.EventType.ROOTThe root event type.Methods in javafx.event that return EventModifier 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.Methods in javafx.event that return types with arguments of type EventMethods in javafx.event with parameters of type EventModifier and TypeMethodDescriptionEventDispatchChain.dispatchEvent(Event event) Dispatches the specified event through thisEventDispatchChain.EventDispatcher.dispatchEvent(Event event, EventDispatchChain tail) Dispatches the specified event by thisEventDispatcher.static voidEvent.fireEvent(EventTarget eventTarget, Event event) Fires the specified event.Constructor parameters in javafx.event with type arguments of type Event -
Uses of Event in javafx.scene
Methods in javafx.scene with type parameters of type EventModifier 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.Methods in javafx.scene with parameters of type Event -
Uses of Event in javafx.scene.control
Subclasses of Event in javafx.scene.controlModifier and TypeClassDescriptionstatic classA TreeModificationEvent class that works in a similar vein to theTreeItem.TreeModificationEventclass, in that this event will bubble up the CheckBoxTreeItem hierarchy, until the parent node is null.classEvent related to dialog showing/hiding actions.static classAnEventsubclass used specifically in ListView for representing edit-related events.classEvent related toScrollPaneand virtualised controls such asListView,TableView,TreeViewandTreeTableView.classSortEvent<C>Event related toTableViewandTreeTableViewsorting.static classAn event that is fired when a user performs an edit on a table cell.static classAnEventthat contains relevant information for all forms of TreeItem modifications.static classAn event that is fired when a user performs an edit on a table cell.static classAnEventsubclass used specifically in TreeTableView for representing edit-related events.static classAnEventsubclass used specifically in TreeView for representing edit-related events.Fields in javafx.scene.control with type parameters of type EventModifier and TypeFieldDescriptionCheckBoxTreeItem.TreeModificationEvent.ANYCommon supertype for all tree modification event types.Tab.CLOSED_EVENTCalled when a user closes this tab.MenuItem.MENU_VALIDATION_EVENTCalled when a accelerator for the Menuitem is invokedChoiceBox.ON_HIDDENCalled when the ChoiceBox popup has been hidden.ComboBoxBase.ON_HIDDENCalled when the ComboBox popup/display has been hidden.Menu.ON_HIDDENCalled when the contextMenu for this menu is hidden.MenuButton.ON_HIDDENCalled when the MenuButton popup has been hidden.ChoiceBox.ON_HIDINGCalled when the ChoiceBox popup will be hidden.ComboBoxBase.ON_HIDINGCalled when the ComboBox popup/display will be hidden.Menu.ON_HIDINGCalled when the contextMenu for this menu will be hidden.MenuButton.ON_HIDINGCalled when the MenuButton popup will be hidden.ChoiceBox.ON_SHOWINGCalled prior to the ChoiceBox showing its popup after the user has clicked or otherwise interacted with the ChoiceBox.ComboBoxBase.ON_SHOWINGCalled prior to the ComboBox showing its popup/display after the user has clicked or otherwise interacted with the ComboBox.Menu.ON_SHOWINGCalled when the contextMenu for this menu will be shown.MenuButton.ON_SHOWINGCalled prior to the MenuButton showing its popup after the user has clicked or otherwise interacted with the MenuButton.ChoiceBox.ON_SHOWNCalled after the ChoiceBox has shown its popup.ComboBoxBase.ON_SHOWNCalled after the ComboBox has shown its popup/display.Menu.ON_SHOWNCalled when the contextMenu for this menu shows.MenuButton.ON_SHOWNCalled 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.Methods in javafx.scene.control with type parameters of type EventModifier and TypeMethodDescription<E extends Event>
voidMenuItem.addEventHandler(EventType<E> eventType, EventHandler<E> eventHandler) Registers an event handler to this MenuItem.<E extends Event>
voidTableColumnBase.addEventHandler(EventType<E> eventType, EventHandler<E> eventHandler) Registers an event handler to this table column.<E extends Event>
voidTreeItem.addEventHandler(EventType<E> eventType, EventHandler<E> eventHandler) Registers an event handler to this TreeItem.<E extends Event>
voidMenuItem.removeEventHandler(EventType<E> eventType, EventHandler<E> eventHandler) Unregisters a previously registered event handler from this MenuItem.<E extends Event>
voidTableColumnBase.removeEventHandler(EventType<E> eventType, EventHandler<E> eventHandler) Unregisters a previously registered event handler from this table column.<E extends Event>
voidTreeItem.removeEventHandler(EventType<E> eventType, EventHandler<E> eventHandler) Unregisters a previously registered event handler from this TreeItem.Methods in javafx.scene.control that return types with arguments of type EventModifier 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 theonCloseRequestproperty.final EventHandler<Event>ChoiceBox.getOnHidden()Gets the value of theonHiddenproperty.final EventHandler<Event>ComboBoxBase.getOnHidden()Gets the value of theonHiddenproperty.final EventHandler<Event>Menu.getOnHidden()Gets the value of theonHiddenproperty.final EventHandler<Event>MenuButton.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<Event>Menu.getOnHiding()Gets the value of theonHidingproperty.final EventHandler<Event>MenuButton.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<Event>Menu.getOnShowing()Gets the value of theonShowingproperty.final EventHandler<Event>MenuButton.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<Event>Menu.getOnShown()Gets the value of theonShownproperty.final EventHandler<Event>MenuButton.getOnShown()Gets the value of theonShownproperty.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 theChoiceBoxpopup has been hidden.final ObjectProperty<EventHandler<Event>>ComboBoxBase.onHiddenProperty()Called just after theComboBoxBasepopup/display has been hidden.final ObjectProperty<EventHandler<Event>>Menu.onHiddenProperty()Called just after theContextMenuhas been hidden.final ObjectProperty<EventHandler<Event>>MenuButton.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<Event>>Menu.onHidingProperty()Called just prior to theContextMenubeing hidden.final ObjectProperty<EventHandler<Event>>MenuButton.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<Event>>Menu.onShowingProperty()Called just prior to theContextMenubeing shown, even if the menu has no items to show.final ObjectProperty<EventHandler<Event>>MenuButton.onShowingProperty()Called just prior to theContextMenubeing shown.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<Event>>Menu.onShownProperty()Called just after theContextMenuis shown.final ObjectProperty<EventHandler<Event>>MenuButton.onShownProperty()Called just after theContextMenuis shown.Method parameters in javafx.scene.control with type arguments of type EventModifier and TypeMethodDescriptionfinal voidTab.setOnClosed(EventHandler<Event> value) Defines a function to be called when the tab is closed.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 voidMenu.setOnHidden(EventHandler<Event> value) Sets the value of theonHiddenproperty.final voidMenuButton.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 voidMenu.setOnHiding(EventHandler<Event> value) Sets the value of theonHidingproperty.final voidMenuButton.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 voidMenu.setOnShowing(EventHandler<Event> value) Sets the value of theonShowingproperty.final voidMenuButton.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 voidMenu.setOnShown(EventHandler<Event> value) Sets the value of theonShownproperty.final voidMenuButton.setOnShown(EventHandler<Event> value) Sets the value of theonShownproperty.Constructor parameters in javafx.scene.control with type arguments of type EventModifierConstructorDescriptionDialogEvent(Dialog<?> source, EventType<? extends Event> eventType) Construct a newEventwith 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
Subclasses of Event in javafx.scene.inputModifier and TypeClassDescriptionclassWhen the user requests a context menu, this event occurs.final classDrag events replace mouse events during drag-and-drop gesture.classAn event indicating gesture input.classAn event indicating a user input.final classAn event which indicates that the underlying input method notifies its text change in aNode.final classAn event which indicates that a keystroke occurred in aNode.final classMouse drag events are delivered to potential gesture targets during full press-drag-release gestures.classWhen 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 classRotate 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 classScroll event indicates that user performed scrolling by mouse wheel, track pad, touch screen or other similar device.final classSwipe event indicates that user performed a swipe gesture such as dragging a finger in one direction on touch screen.final classTouch event indicates a touch screen action.final classZoom 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
Subclasses of Event in javafx.scene.mediaModifier and TypeClassDescriptionclassAnEventrepresenting the occurrence of an error in handling media.classAnActionEventrepresenting a media marker. -
Uses of Event in javafx.scene.transform
Subclasses of Event in javafx.scene.transformModifier and TypeClassDescriptionfinal classThis event is fired on a transform when any of its properties changes.Methods in javafx.scene.transform with type parameters of type EventModifier and TypeMethodDescriptionfinal <T extends Event>
voidTransform.addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter) Registers an event filter to this transform.final <T extends Event>
voidTransform.addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Registers an event handler to this transform.final <T extends Event>
voidTransform.removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter) Unregisters a previously registered event filter from this transform.final <T extends Event>
voidTransform.removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler) Unregisters a previously registered event handler from this transform. -
Uses of Event in javafx.scene.web
Subclasses of Event in javafx.scene.web -
Uses of Event in javafx.stage
Subclasses of Event in javafx.stageModifier and TypeClassDescriptionclassEvent related to window showing/hiding actions.Methods in javafx.stage with type parameters of type EventModifier 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.Methods in javafx.stage that return types with arguments of type EventModifier and TypeMethodDescriptionfinal EventHandler<Event>PopupWindow.getOnAutoHide()Gets the value of theonAutoHideproperty.final ObjectProperty<EventHandler<Event>>PopupWindow.onAutoHideProperty()Called after autoHide is run.Methods in javafx.stage with parameters of type EventModifier and TypeMethodDescriptionfinal voidFires the specified event.Method parameters in javafx.stage with type arguments of type EventModifier and TypeMethodDescriptionfinal voidPopupWindow.setOnAutoHide(EventHandler<Event> value) Sets the value of theonAutoHideproperty.Constructor parameters in javafx.stage with type arguments of type EventModifierConstructorDescriptionWindowEvent(Window source, EventType<? extends Event> eventType) Construct a newEventwith the specified event source, target and type.