Uses of Class
javafx.event.Event
-
Packages that use Event Package Description 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.input Provides the set of classes for mouse and keyboard input event handling.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 forAffineobjects.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 Event in javafx.concurrent
Subclasses of Event in javafx.concurrent Modifier and Type Class Description classWorkerStateEventAn event which occurs whenever the state changes on a Worker.Methods in javafx.concurrent with type parameters of type Event 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.Methods in javafx.concurrent with parameters of type Event Modifier and Type Method Description protected voidService. fireEvent(Event event)Fires the specified event.voidTask. fireEvent(Event event)Fires the specified event. -
Uses of Event in javafx.event
Classes in javafx.event with type parameters of type Event Modifier and Type Interface Description interfaceEventHandler<T extends Event>Handler for events of a specific class / type.classEventType<T extends Event>This class represents a specific event type associated with anEvent.classWeakEventHandler<T extends Event>Used in event handler registration in place of its associated event handler.Subclasses of Event in javafx.event Modifier and Type Class Description classActionEventAnEventrepresenting some type of action.Fields in javafx.event with type parameters of type Event Modifier and Type Field Description static EventType<Event>Event. ANYCommon supertype for all event types.protected EventType<? extends Event>Event. eventTypeType of the event.static EventType<Event>EventType. ROOTThe root event type.Methods in javafx.event that return Event Modifier and Type Method Description EventEvent. copyFor(Object newSource, EventTarget newTarget)Creates and returns a copy of this event with the specified event source and target.EventEventDispatchChain. dispatchEvent(Event event)Dispatches the specified event through thisEventDispatchChain.EventEventDispatcher. dispatchEvent(Event event, EventDispatchChain tail)Dispatches the specified event by thisEventDispatcher.Methods in javafx.event that return types with arguments of type Event Modifier and Type Method Description EventType<? extends Event>Event. getEventType()Gets the event type of this event.Methods in javafx.event with parameters of type Event Modifier and Type Method Description EventEventDispatchChain. dispatchEvent(Event event)Dispatches the specified event through thisEventDispatchChain.EventEventDispatcher. 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 Constructor Description Event(Object source, EventTarget target, EventType<? extends Event> eventType)Construct a newEventwith the specified event source, target and type.Event(EventType<? extends Event> eventType)Construct a newEventwith the specified event type. -
Uses of Event in javafx.scene
Methods in javafx.scene with type parameters of type Event 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.Methods in javafx.scene with parameters of type Event Modifier and Type Method Description voidNode. fireEvent(Event event)Fires the specified event. -
Uses of Event in javafx.scene.control
Subclasses of Event in javafx.scene.control Modifier and Type Class Description static classCheckBoxTreeItem.TreeModificationEvent<T>A 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.classDialogEventEvent related to dialog showing/hiding actions.static classListView.EditEvent<T>AnEventsubclass used specifically in ListView for representing edit-related events.classScrollToEvent<T>Event related toScrollPaneand virtualised controls such asListView,TableView,TreeViewandTreeTableView.classSortEvent<C>Event related toTableViewandTreeTableViewsorting.static classTableColumn.CellEditEvent<S,T>An event that is fired when a user performs an edit on a table cell.static classTreeItem.TreeModificationEvent<T>AnEventthat contains relevant information for all forms of TreeItem modifications.static classTreeTableColumn.CellEditEvent<S,T>An event that is fired when a user performs an edit on a table cell.static classTreeTableView.EditEvent<S>AnEventsubclass used specifically in TreeTableView for representing edit-related events.static classTreeView.EditEvent<T>AnEventsubclass used specifically in TreeView for representing edit-related events.Fields in javafx.scene.control with type parameters of type Event Modifier and Type Field Description static EventType<Event>CheckBoxTreeItem.TreeModificationEvent. ANYCommon supertype for all tree modification event types.static EventType<Event>Tab. CLOSED_EVENTCalled when a user closes this tab.static EventType<Event>MenuItem. MENU_VALIDATION_EVENTCalled when a accelerator for the Menuitem is invokedstatic EventType<Event>ChoiceBox. ON_HIDDENCalled when the ChoiceBox popup has been hidden.static EventType<Event>ComboBoxBase. ON_HIDDENCalled when the ComboBox popup/display has been hidden.static EventType<Event>Menu. ON_HIDDENCalled when the contextMenu for this menu is hidden.static EventType<Event>MenuButton. ON_HIDDENCalled when the MenuButton popup has been hidden.static EventType<Event>ChoiceBox. ON_HIDINGCalled when the ChoiceBox popup will be hidden.static EventType<Event>ComboBoxBase. ON_HIDINGCalled when the ComboBox popup/display will be hidden.static EventType<Event>Menu. ON_HIDINGCalled when the contextMenu for this menu will be hidden.static EventType<Event>MenuButton. ON_HIDINGCalled when the MenuButton popup will be hidden.static EventType<Event>ChoiceBox. ON_SHOWINGCalled prior to the ChoiceBox showing its popup after the user has clicked or otherwise interacted with the ChoiceBox.static EventType<Event>ComboBoxBase. ON_SHOWINGCalled prior to the ComboBox showing its popup/display after the user has clicked or otherwise interacted with the ComboBox.static EventType<Event>Menu. ON_SHOWINGCalled when the contextMenu for this menu will be shown.static EventType<Event>MenuButton. ON_SHOWINGCalled prior to the MenuButton showing its popup after the user has clicked or otherwise interacted with the MenuButton.static EventType<Event>ChoiceBox. ON_SHOWNCalled after the ChoiceBox has shown its popup.static EventType<Event>ComboBoxBase. ON_SHOWNCalled after the ComboBox has shown its popup/display.static EventType<Event>Menu. ON_SHOWNCalled when the contextMenu for this menu shows.static EventType<Event>MenuButton. ON_SHOWNCalled after the MenuButton has shown its popup.static EventType<Event>Tab. SELECTION_CHANGED_EVENTCalled when the tab becomes selected or unselected.static EventType<Event>Tab. TAB_CLOSE_REQUEST_EVENTCalled when there is an external request to close thisTab.Methods in javafx.scene.control with type parameters of type Event 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.Methods in javafx.scene.control that return types with arguments of type Event Modifier and Type Method Description EventHandler<Event>Tab. getOnClosed()The event handler that is associated with the tab when the tab is closed.EventHandler<Event>Tab. getOnCloseRequest()Gets the value of the property onCloseRequest.EventHandler<Event>ChoiceBox. getOnHidden()Gets the value of the property onHidden.EventHandler<Event>ComboBoxBase. getOnHidden()Gets the value of the property onHidden.EventHandler<Event>Menu. 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<Event>Menu. getOnHiding()Gets the value of the property onHiding.EventHandler<Event>MenuItem. getOnMenuValidation()Gets the value of the property onMenuValidation.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<Event>Menu. 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<Event>Menu. getOnShown()Gets the value of the property onShown.ObjectProperty<EventHandler<Event>>Tab. onClosedProperty()The event handler that is associated with the tab when the tab is closed.ObjectProperty<EventHandler<Event>>Tab. onCloseRequestProperty()Called when there is an external request to close thisTab.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<Event>>Menu. 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<Event>>Menu. 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<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<Event>>Menu. onShowingProperty()Called just prior to theContextMenubeing shown, even if the menu has no items to show.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<Event>>Menu. onShownProperty()Called just after theContextMenuis shown.Method parameters in javafx.scene.control with type arguments of type Event Modifier and Type Method Description 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 the property onCloseRequest.voidChoiceBox. setOnHidden(EventHandler<Event> value)Sets the value of the property onHidden.voidComboBoxBase. setOnHidden(EventHandler<Event> value)Sets the value of the property onHidden.voidMenu. 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.voidMenu. setOnHiding(EventHandler<Event> value)Sets the value of the property onHiding.voidMenuItem. setOnMenuValidation(EventHandler<Event> value)Sets the value of the property onMenuValidation.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.voidMenu. 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.voidMenu. setOnShown(EventHandler<Event> value)Sets the value of the property onShown.Constructor parameters in javafx.scene.control with type arguments of type Event Constructor Description DialogEvent(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.TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem, T newValue)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.input Modifier and Type Class Description classContextMenuEventWhen the user requests a context menu, this event occurs.classDragEventDrag events replace mouse events during drag-and-drop gesture.classGestureEventAn event indicating gesture input.classInputEventAn event indicating a user input.classInputMethodEventAn event which indicates that the underlying input method notifies its text change in aNode.classKeyEventAn event which indicates that a keystroke occurred in aNode.classMouseDragEventMouse drag events are delivered to potential gesture targets during full press-drag-release gestures.classMouseEventWhen 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.classRotateEventRotate event indicates that user performed rotating gesture such as dragging two fingers around each other on track pad, touch screen or other similar device.classScrollEventScroll event indicates that user performed scrolling by mouse wheel, track pad, touch screen or other similar device.classSwipeEventSwipe event indicates that user performed a swipe gesture such as dragging a finger in one direction on touch screen.classTouchEventTouch event indicates a touch screen action.classZoomEventZoom 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.media Modifier and Type Class Description classMediaErrorEventAnEventrepresenting the occurrence of an error in handling media.classMediaMarkerEventAnActionEventrepresenting a media marker. -
Uses of Event in javafx.scene.transform
Subclasses of Event in javafx.scene.transform Modifier and Type Class Description classTransformChangedEventThis event is fired on a transform when any of its properties changes.Methods in javafx.scene.transform with type parameters of type Event 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. -
Uses of Event in javafx.scene.web
Subclasses of Event in javafx.scene.web Modifier and Type Class Description classWebErrorEventAn event indicating aWebEngineerror.classWebEvent<T>WebEventinstances are passed intoEventHandlers registered with aWebEngineby JavaScript running on a Web page. -
Uses of Event in javafx.stage
Subclasses of Event in javafx.stage Modifier and Type Class Description classWindowEventEvent related to window showing/hiding actions.Methods in javafx.stage with type parameters of type Event 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.Methods in javafx.stage that return types with arguments of type Event Modifier and Type Method Description EventHandler<Event>PopupWindow. getOnAutoHide()Gets the value of the property onAutoHide.ObjectProperty<EventHandler<Event>>PopupWindow. onAutoHideProperty()Called after autoHide is run.Methods in javafx.stage with parameters of type Event Modifier and Type Method Description voidWindow. fireEvent(Event event)Fires the specified event.Method parameters in javafx.stage with type arguments of type Event Modifier and Type Method Description voidPopupWindow. setOnAutoHide(EventHandler<Event> value)Sets the value of the property onAutoHide.Constructor parameters in javafx.stage with type arguments of type Event Constructor Description WindowEvent(Window source, EventType<? extends Event> eventType)Construct a newEventwith the specified event source, target and type.
-