Uses of Class
javafx.event.EventType
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 EventType in javafx.concurrent
Modifier and TypeFieldDescriptionstatic final EventType
<WorkerStateEvent> WorkerStateEvent.ANY
Common supertype for all worker state event types.static final EventType
<WorkerStateEvent> WorkerStateEvent.WORKER_STATE_CANCELLED
This event occurs when the state of a Worker implementation has transitioned to the CANCELLED state.static final EventType
<WorkerStateEvent> WorkerStateEvent.WORKER_STATE_FAILED
This event occurs when the state of a Worker implementation has transitioned to the FAILED state.static final EventType
<WorkerStateEvent> WorkerStateEvent.WORKER_STATE_READY
This event occurs when the state of a Worker implementation has transitioned to the READY state.static final EventType
<WorkerStateEvent> WorkerStateEvent.WORKER_STATE_RUNNING
This event occurs when the state of a Worker implementation has transitioned to the RUNNING state.static final EventType
<WorkerStateEvent> WorkerStateEvent.WORKER_STATE_SCHEDULED
This event occurs when the state of a Worker implementation has transitioned to the SCHEDULED state.static final EventType
<WorkerStateEvent> WorkerStateEvent.WORKER_STATE_SUCCEEDED
This event occurs when the state of a Worker implementation has transitioned to the SUCCEEDED state.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.ModifierConstructorDescriptionWorkerStateEvent
(Worker worker, EventType<? extends WorkerStateEvent> eventType) Create a new WorkerStateEvent. -
Uses of EventType in javafx.css
Modifier and TypeFieldDescriptionstatic final EventType
<TransitionEvent> TransitionEvent.ANY
Common supertype for allTransitionEvent
types.static final EventType
<TransitionEvent> TransitionEvent.CANCEL
This event occurs when a running transition was cancelled before it has reached the end of its active period.static final EventType
<TransitionEvent> TransitionEvent.END
This event occurs when a running transition has reached the end of its active period.static final EventType
<TransitionEvent> TransitionEvent.RUN
This event occurs when a transition has been created and added to the list of running transitions of aNode
.static final EventType
<TransitionEvent> TransitionEvent.START
This event occurs when a running transition enters its active period, which happens at the end of the delay phase.ModifierConstructorDescriptionTransitionEvent
(EventType<? extends Event> eventType, StyleableProperty<?> property, Duration elapsedTime) Creates a new instance of theTransitionEvent
class. -
Uses of EventType in javafx.event
Modifier and TypeFieldDescriptionstatic final EventType
<ActionEvent> ActionEvent.ACTION
The only valid EventType for the ActionEvent.static final EventType
<ActionEvent> ActionEvent.ANY
Common supertype for all action event types.Event.ANY
Common supertype for all event types.Event.eventType
Type of the event.EventType.ROOT
The root event type.Modifier and TypeMethodDescriptionEventType
<? extends ActionEvent> ActionEvent.getEventType()
Event.getEventType()
Gets the event type of this event.EventType.getSuperType()
Gets the super type of this 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.ModifierConstructorDescriptionEvent
(Object source, EventTarget target, EventType<? extends Event> eventType) Construct a newEvent
with the specified event source, target and type.Construct a newEvent
with the specified event type.Constructs a newEventType
with the specified super type and the name set tonull
.Constructs a newEventType
with the specified super type and name. -
Uses of EventType 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 EventType in javafx.scene.control
Modifier and TypeFieldDescriptionCheckBoxTreeItem.TreeModificationEvent.ANY
Common supertype for all tree modification event types.static final EventType
<DialogEvent> DialogEvent.ANY
Common supertype for all dialog event types.static final EventType
<?> ListView.EditEvent.ANY
Common supertype for all edit event types.static final EventType
<ScrollToEvent> ScrollToEvent.ANY
Common supertype for all scroll-to event types.SortEvent.ANY
Common supertype for all sort event types.static final EventType
<?> TableColumn.CellEditEvent.ANY
Common supertype for all cell edit event types.static final EventType
<?> TreeItem.TreeModificationEvent.ANY
Common supertype for all tree modification event types.static final EventType
<?> TreeTableColumn.CellEditEvent.ANY
Common supertype for all cell edit event types.static final EventType
<?> TreeTableView.EditEvent.ANY
Common supertype for all edit event types.static final EventType
<?> TreeView.EditEvent.ANY
Common supertype for all edit event types.Tab.CLOSED_EVENT
Called when a user closes this tab.static final EventType
<DialogEvent> DialogEvent.DIALOG_CLOSE_REQUEST
This event is delivered to a dialog when there is an external request to close that dialog.static final EventType
<DialogEvent> DialogEvent.DIALOG_HIDDEN
This event occurs on dialog just after it is hidden.static final EventType
<DialogEvent> DialogEvent.DIALOG_HIDING
This event occurs on dialog just before it is hidden.static final EventType
<DialogEvent> DialogEvent.DIALOG_SHOWING
This event occurs on dialog just before it is shown.static final EventType
<DialogEvent> DialogEvent.DIALOG_SHOWN
This event occurs on dialog just after it is shown.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 TypeMethodDescriptionstatic <T> EventType
<TreeItem.TreeModificationEvent<T>> TreeItem.branchCollapsedEvent()
An EventType used when the TreeItem receives a modification to its expanded property, such that the TreeItem is now in the collapsed state.static <T> EventType
<TreeItem.TreeModificationEvent<T>> TreeItem.branchExpandedEvent()
An EventType used when the TreeItem receives a modification to its expanded property, such that the TreeItem is now in the expanded state.static <T> EventType
<CheckBoxTreeItem.TreeModificationEvent<T>> CheckBoxTreeItem.checkBoxSelectionChangedEvent()
An EventType used when the CheckBoxTreeItem selection / indeterminate state changes.static <T> EventType
<TreeItem.TreeModificationEvent<T>> TreeItem.childrenModificationEvent()
An EventType used when the TreeItem receives a direct modification to its children list.static <T> EventType
<ListView.EditEvent<T>> ListView.editAnyEvent()
An EventType that indicates some edit event has occurred.static <S,
T> EventType <TableColumn.CellEditEvent<S, T>> TableColumn.editAnyEvent()
Parent event for any TableColumn edit event.static <S,
T> EventType <TreeTableColumn.CellEditEvent<S, T>> TreeTableColumn.editAnyEvent()
Parent event for any TreeTableColumn edit event.static <S> EventType
<TreeTableView.EditEvent<S>> TreeTableView.editAnyEvent()
An EventType that indicates some edit event has occurred.static <T> EventType
<TreeView.EditEvent<T>> TreeView.editAnyEvent()
An EventType that indicates some edit event has occurred.static <T> EventType
<ListView.EditEvent<T>> ListView.editCancelEvent()
An EventType used to indicate that an edit event has just been canceled within the ListView upon which the event was fired.static <S,
T> EventType <TableColumn.CellEditEvent<S, T>> TableColumn.editCancelEvent()
Indicates that the editing has been canceled, meaning that no change should be made to the backing data source.static <S,
T> EventType <TreeTableColumn.CellEditEvent<S, T>> TreeTableColumn.editCancelEvent()
Indicates that the editing has been canceled, meaning that no change should be made to the backing data source.static <S> EventType
<TreeTableView.EditEvent<S>> TreeTableView.editCancelEvent()
An EventType used to indicate that an edit event has just been canceled within the TreeTableView upon which the event was fired.static <T> EventType
<TreeView.EditEvent<T>> TreeView.editCancelEvent()
An EventType used to indicate that an edit event has just been canceled within the TreeView upon which the event was fired.static <T> EventType
<ListView.EditEvent<T>> ListView.editCommitEvent()
An EventType used to indicate that an edit event has been committed within the ListView upon which the event was fired.static <S,
T> EventType <TableColumn.CellEditEvent<S, T>> TableColumn.editCommitEvent()
Indicates that the editing has been committed by the user, meaning that a change should be made to the backing data source to reflect the new data.static <S,
T> EventType <TreeTableColumn.CellEditEvent<S, T>> TreeTableColumn.editCommitEvent()
Indicates that the editing has been committed by the user, meaning that a change should be made to the backing data source to reflect the new data.static <S> EventType
<TreeTableView.EditEvent<S>> TreeTableView.editCommitEvent()
An EventType that is used to indicate that an edit in a TreeTableView has been committed.static <T> EventType
<TreeView.EditEvent<T>> TreeView.editCommitEvent()
An EventType that is used to indicate that an edit in a TreeView has been committed.static <T> EventType
<ListView.EditEvent<T>> ListView.editStartEvent()
An EventType used to indicate that an edit event has started within the ListView upon which the event was fired.static <S,
T> EventType <TableColumn.CellEditEvent<S, T>> TableColumn.editStartEvent()
Indicates that the user has performed some interaction to start an edit event, or alternatively theTableView.edit(int, javafx.scene.control.TableColumn)
method has been called.static <S,
T> EventType <TreeTableColumn.CellEditEvent<S, T>> TreeTableColumn.editStartEvent()
Indicates that the user has performed some interaction to start an edit event, or alternatively theTreeTableView.edit(int, javafx.scene.control.TreeTableColumn)
method has been called.static <S> EventType
<TreeTableView.EditEvent<S>> TreeTableView.editStartEvent()
An EventType used to indicate that an edit event has started within the TreeTableView upon which the event was fired.static <T> EventType
<TreeView.EditEvent<T>> TreeView.editStartEvent()
An EventType used to indicate that an edit event has started within the TreeView upon which the event was fired.static <T> EventType
<TreeItem.TreeModificationEvent<T>> TreeItem.expandedItemCountChangeEvent()
The general EventType used when the TreeItem receives a modification that results in the number of children being visible changes.DialogEvent.getEventType()
static <T> EventType
<TreeItem.TreeModificationEvent<T>> TreeItem.graphicChangedEvent()
An EventType used when the TreeItem receives a modification to its graphic property.static <T extends TableColumnBase<?,
?>>
EventType<ScrollToEvent<T>> ScrollToEvent.scrollToColumn()
This event occurs if the user requests scrolling aTableColumnBase
(i.e.static EventType
<ScrollToEvent<Integer>> ScrollToEvent.scrollToTopIndex()
This event occurs if the user requests scrolling a given index into view.SortEvent.sortEvent()
Gets the default singletonSortEvent
.static <T> EventType
<TreeItem.TreeModificationEvent<T>> TreeItem.treeNotificationEvent()
The base EventType used to indicate that an event has occurred within a TreeItem.static <T> EventType
<TreeItem.TreeModificationEvent<T>> TreeItem.valueChangedEvent()
An EventType used when the TreeItem receives a modification to its value property.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.DialogEvent.copyFor
(Object newSource, EventTarget newTarget, EventType<DialogEvent> type) Creates a copy of the given event with the given fields substituted.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) ModifierConstructorDescriptionCellEditEvent
(TableView<S> table, TablePosition<S, T> pos, EventType<TableColumn.CellEditEvent<S, T>> eventType, T newValue) Creates a new event that can be subsequently fired to the relevant listeners.CellEditEvent
(TreeTableView<S> table, TreeTablePosition<S, T> pos, EventType<TreeTableColumn.CellEditEvent<S, T>> eventType, T newValue) Creates a new event that can be subsequently fired to the relevant listeners.DialogEvent
(Dialog<?> source, EventType<? extends Event> eventType) Construct a newEvent
with the specified event source, target and type.EditEvent
(ListView<T> source, EventType<? extends ListView.EditEvent<T>> eventType, T newValue, int editIndex) Creates a new EditEvent instance to represent an edit event.EditEvent
(TreeTableView<S> source, EventType<? extends TreeTableView.EditEvent> eventType, TreeItem<S> treeItem, S oldValue, S newValue) Creates a new EditEvent instance to represent an edit event.EditEvent
(TreeView<T> source, EventType<? extends TreeView.EditEvent> eventType, TreeItem<T> treeItem, T oldValue, T newValue) Creates a new EditEvent instance to represent an edit event.ScrollToEvent
(Object source, EventTarget target, EventType<ScrollToEvent<T>> type, T scrollTarget) 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 EventType in javafx.scene.input
Modifier and TypeFieldDescriptionstatic final EventType
<ContextMenuEvent> ContextMenuEvent.ANY
Common supertype for all context menu event types.DragEvent.ANY
Common supertype for all drag event types.static final EventType
<GestureEvent> GestureEvent.ANY
Common supertype for all gestures.static final EventType
<InputEvent> InputEvent.ANY
Common supertype for all input event types.static final EventType
<InputMethodEvent> InputMethodEvent.ANY
Common supertype for all input method event types.KeyEvent.ANY
Common supertype for all key event types.static final EventType
<MouseDragEvent> MouseDragEvent.ANY
Common supertype for all mouse event types.static final EventType
<MouseEvent> MouseEvent.ANY
Common supertype for all mouse event types.static final EventType
<RotateEvent> RotateEvent.ANY
Common supertype for all rotate event types.static final EventType
<ScrollEvent> ScrollEvent.ANY
Common supertype for all scroll event types.static final EventType
<SwipeEvent> SwipeEvent.ANY
Common supertype for all swipe event types.static final EventType
<TouchEvent> TouchEvent.ANY
Common supertype for all touch event types.ZoomEvent.ANY
Common supertype for all zoom event types.static final EventType
<ContextMenuEvent> ContextMenuEvent.CONTEXT_MENU_REQUESTED
This event occurs when a context menu is requested.static final EventType
<MouseEvent> MouseEvent.DRAG_DETECTED
This event is delivered to a node that is identified as a source of a dragging gesture.DragEvent.DRAG_DONE
This event occurs on drag-and-drop gesture source after its data has been dropped on a drop target.DragEvent.DRAG_DROPPED
This event occurs when the mouse button is released during drag and drop gesture on a drop target.DragEvent.DRAG_ENTERED
This event occurs when drag gesture enters a node.DragEvent.DRAG_ENTERED_TARGET
This event occurs when drag gesture enters a node.DragEvent.DRAG_EXITED
This event occurs when drag gesture exits a node.DragEvent.DRAG_EXITED_TARGET
This event occurs when drag gesture exits a node.DragEvent.DRAG_OVER
This event occurs when drag gesture progresses within this node.static final EventType
<InputMethodEvent> InputMethodEvent.INPUT_METHOD_TEXT_CHANGED
The only valid EventType for the InputMethodEvent.KeyEvent.KEY_PRESSED
This event occurs when a key has been pressed.KeyEvent.KEY_RELEASED
This event occurs when a key has been released.KeyEvent.KEY_TYPED
This event occurs when a character-generating key was typed (pressed and released).static final EventType
<MouseEvent> MouseEvent.MOUSE_CLICKED
This event occurs when a mouse button has been clicked (pressed and released on the same node).static final EventType
<MouseDragEvent> MouseDragEvent.MOUSE_DRAG_ENTERED
This event occurs when the gesture enters a node.static final EventType
<MouseDragEvent> MouseDragEvent.MOUSE_DRAG_ENTERED_TARGET
This event occurs when the gesture enters a node.static final EventType
<MouseDragEvent> MouseDragEvent.MOUSE_DRAG_EXITED
This event occurs when the gesture exits a node.static final EventType
<MouseDragEvent> MouseDragEvent.MOUSE_DRAG_EXITED_TARGET
This event occurs when the gesture exits a node.static final EventType
<MouseDragEvent> MouseDragEvent.MOUSE_DRAG_OVER
This event occurs when the gesture progresses within this node.static final EventType
<MouseDragEvent> MouseDragEvent.MOUSE_DRAG_RELEASED
This event occurs when the gesture ends (by releasing mouse button) on this node.static final EventType
<MouseEvent> MouseEvent.MOUSE_DRAGGED
This event occurs when the mouse moves with a pressed button.static final EventType
<MouseEvent> MouseEvent.MOUSE_ENTERED
This event occurs when the mouse enters a node.static final EventType
<MouseEvent> MouseEvent.MOUSE_ENTERED_TARGET
This event occurs when the mouse enters a node.static final EventType
<MouseEvent> MouseEvent.MOUSE_EXITED
This event occurs when the mouse exits a node.static final EventType
<MouseEvent> MouseEvent.MOUSE_EXITED_TARGET
This event occurs when the mouse exits a node.static final EventType
<MouseEvent> MouseEvent.MOUSE_MOVED
This event occurs when the mouse moves within a node and no buttons are pressed.static final EventType
<MouseEvent> MouseEvent.MOUSE_PRESSED
This event occurs when a mouse button is pressed.static final EventType
<MouseEvent> MouseEvent.MOUSE_RELEASED
This event occurs when a mouse button is released.static final EventType
<RotateEvent> RotateEvent.ROTATE
This event occurs when user performs a rotating gesture such as dragging two fingers around each other.static final EventType
<RotateEvent> RotateEvent.ROTATION_FINISHED
This event occurs when a rotating gesture ends.static final EventType
<RotateEvent> RotateEvent.ROTATION_STARTED
This event occurs when a rotating gesture is detected.static final EventType
<ScrollEvent> ScrollEvent.SCROLL
This event occurs when user performs a scrolling action such as rotating mouse wheel or dragging a finger over touch screen.static final EventType
<ScrollEvent> ScrollEvent.SCROLL_FINISHED
This event occurs when a scrolling gesture ends.static final EventType
<ScrollEvent> ScrollEvent.SCROLL_STARTED
This event occurs when a scrolling gesture is detected.static final EventType
<SwipeEvent> SwipeEvent.SWIPE_DOWN
This event occurs when user performs downward swipe gesture.static final EventType
<SwipeEvent> SwipeEvent.SWIPE_LEFT
This event occurs when user performs leftward swipe gesture.static final EventType
<SwipeEvent> SwipeEvent.SWIPE_RIGHT
This event occurs when user performs rightward swipe gesture.static final EventType
<SwipeEvent> SwipeEvent.SWIPE_UP
This event occurs when user performs upward swipe gesture.static final EventType
<TouchEvent> TouchEvent.TOUCH_MOVED
This event occurs when the touch point is moved.static final EventType
<TouchEvent> TouchEvent.TOUCH_PRESSED
This event occurs when the touch point is pressed (touched for the first time).static final EventType
<TouchEvent> TouchEvent.TOUCH_RELEASED
This event occurs when the touch point is released.static final EventType
<TouchEvent> TouchEvent.TOUCH_STATIONARY
This event occurs when the touch point is pressed and still (doesn't move).ZoomEvent.ZOOM
This event occurs when user performs a zooming gesture such as dragging two fingers apart.ZoomEvent.ZOOM_FINISHED
This event occurs when a zooming gesture ends.ZoomEvent.ZOOM_STARTED
This event occurs when a zooming gesture is detected.Modifier and TypeMethodDescriptionContextMenuEvent.getEventType()
DragEvent.getEventType()
EventType
<? extends GestureEvent> GestureEvent.getEventType()
EventType
<? extends InputEvent> InputEvent.getEventType()
InputMethodEvent.getEventType()
KeyEvent.getEventType()
MouseDragEvent.getEventType()
EventType
<? extends MouseEvent> MouseEvent.getEventType()
RotateEvent.getEventType()
ScrollEvent.getEventType()
SwipeEvent.getEventType()
TouchEvent.getEventType()
ZoomEvent.getEventType()
Modifier and TypeMethodDescriptionDragEvent.copyFor
(Object source, EventTarget target, Object gestureSource, Object gestureTarget, EventType<DragEvent> eventType) Creates a copy of the given drag event with the given fields substituted.DragEvent.copyFor
(Object source, EventTarget target, EventType<DragEvent> type) Creates a copy of the given drag event with the given fields substituted.KeyEvent.copyFor
(Object source, EventTarget target, EventType<KeyEvent> type) Creates a copy of the given event with the given fields substituted.MouseDragEvent.copyFor
(Object newSource, EventTarget newTarget, EventType<? extends MouseEvent> type) MouseEvent.copyFor
(Object newSource, EventTarget newTarget, EventType<? extends MouseEvent> eventType) Creates a copy of the given event with the given fields substituted.RotateEvent.copyFor
(Object newSource, EventTarget newTarget, EventType<RotateEvent> type) Creates a copy of the given event with the given fields substituted.ScrollEvent.copyFor
(Object newSource, EventTarget newTarget, EventType<ScrollEvent> type) Creates a copy of the given event with the given fields substituted.SwipeEvent.copyFor
(Object newSource, EventTarget newTarget, EventType<SwipeEvent> type) Creates a copy of the given event with the given fields substituted.TouchEvent.copyFor
(Object newSource, EventTarget newTarget, EventType<TouchEvent> type) Creates a copy of the given event with the given fields substituted.ZoomEvent.copyFor
(Object newSource, EventTarget newTarget, EventType<ZoomEvent> type) Creates a copy of the given event with the given fields substituted.static MouseDragEvent
MouseEvent.copyForMouseDragEvent
(MouseEvent e, Object source, EventTarget target, EventType<MouseDragEvent> type, Object gestureSource, PickResult pickResult) Creates a copy of this mouse event of MouseDragEvent typeModifierConstructorDescriptionContextMenuEvent
(Object source, EventTarget target, EventType<ContextMenuEvent> eventType, double x, double y, double screenX, double screenY, boolean keyboardTrigger, PickResult pickResult) Constructs new ContextMenu event.ContextMenuEvent
(EventType<ContextMenuEvent> eventType, double x, double y, double screenX, double screenY, boolean keyboardTrigger, PickResult pickResult) Constructs new ContextMenu event with empty source and target.DragEvent
(Object source, EventTarget target, EventType<DragEvent> eventType, Dragboard dragboard, double x, double y, double screenX, double screenY, TransferMode transferMode, Object gestureSource, Object gestureTarget, PickResult pickResult) Constructs new DragEvent event.DragEvent
(EventType<DragEvent> eventType, Dragboard dragboard, double x, double y, double screenX, double screenY, TransferMode transferMode, Object gestureSource, Object gestureTarget, PickResult pickResult) Constructs new DragEvent event with empty source and target.protected
GestureEvent
(Object source, EventTarget target, EventType<? extends GestureEvent> eventType) Deprecated.Do not use this constructor.protected
GestureEvent
(Object source, EventTarget target, EventType<? extends GestureEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, PickResult pickResult) Constructs new GestureEvent event.protected
GestureEvent
(EventType<? extends GestureEvent> eventType) Deprecated.Do not use this constructor.protected
GestureEvent
(EventType<? extends GestureEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, PickResult pickResult) Constructs new GestureEvent event with empty source and targetInputEvent
(Object source, EventTarget target, EventType<? extends InputEvent> eventType) Creates new instance of InputEvent.InputEvent
(EventType<? extends InputEvent> eventType) Creates new instance of InputEvent.InputMethodEvent
(Object source, EventTarget target, EventType<InputMethodEvent> eventType, List<InputMethodTextRun> composed, String committed, int caretPosition) Constructs new InputMethodEvent event.InputMethodEvent
(EventType<InputMethodEvent> eventType, List<InputMethodTextRun> composed, String committed, int caretPosition) Constructs new InputMethodEvent event with empty source and target.KeyEvent
(Object source, EventTarget target, EventType<KeyEvent> eventType, String character, String text, KeyCode code, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown) Constructs a newKeyEvent
event from the specified parameters.KeyEvent
(EventType<KeyEvent> eventType, String character, String text, KeyCode code, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown) Constructs a newKeyEvent
event from the specified parameters, with anull
source and target.MouseDragEvent
(Object source, EventTarget target, EventType<MouseDragEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean backButtonDown, boolean forwardButtonDown, boolean synthesized, boolean popupTrigger, PickResult pickResult, Object gestureSource) Constructs new MouseDragEvent event.MouseDragEvent
(Object source, EventTarget target, EventType<MouseDragEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean synthesized, boolean popupTrigger, PickResult pickResult, Object gestureSource) Constructs new MouseDragEvent event.MouseDragEvent
(EventType<MouseDragEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean synthesized, boolean popupTrigger, PickResult pickResult, Object gestureSource) Constructs new MouseDragEvent event with null source and target.MouseEvent
(Object source, EventTarget target, EventType<? extends MouseEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean backButtonDown, boolean forwardButtonDown, boolean synthesized, boolean popupTrigger, boolean stillSincePress, PickResult pickResult) Constructs new MouseEvent event.MouseEvent
(Object source, EventTarget target, EventType<? extends MouseEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean synthesized, boolean popupTrigger, boolean stillSincePress, PickResult pickResult) Constructs new MouseEvent event.MouseEvent
(EventType<? extends MouseEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean backButtonDown, boolean forwardButtonDown, boolean synthesized, boolean popupTrigger, boolean stillSincePress, PickResult pickResult) Constructs new MouseEvent event with null source and target.MouseEvent
(EventType<? extends MouseEvent> eventType, double x, double y, double screenX, double screenY, MouseButton button, int clickCount, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean primaryButtonDown, boolean middleButtonDown, boolean secondaryButtonDown, boolean synthesized, boolean popupTrigger, boolean stillSincePress, PickResult pickResult) Constructs new MouseEvent event with null source and target.RotateEvent
(Object source, EventTarget target, EventType<RotateEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double angle, double totalAngle, PickResult pickResult) Constructs new RotateEvent event.RotateEvent
(EventType<RotateEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double angle, double totalAngle, PickResult pickResult) Constructs new RotateEvent event with null source and targetScrollEvent
(Object source, EventTarget target, EventType<ScrollEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double deltaX, double deltaY, double totalDeltaX, double totalDeltaY, ScrollEvent.HorizontalTextScrollUnits textDeltaXUnits, double textDeltaX, ScrollEvent.VerticalTextScrollUnits textDeltaYUnits, double textDeltaY, int touchCount, PickResult pickResult) Constructs new ScrollEvent event.ScrollEvent
(EventType<ScrollEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double deltaX, double deltaY, double totalDeltaX, double totalDeltaY, double multiplierX, double multiplierY, ScrollEvent.HorizontalTextScrollUnits textDeltaXUnits, double textDeltaX, ScrollEvent.VerticalTextScrollUnits textDeltaYUnits, double textDeltaY, int touchCount, PickResult pickResult) Constructs new ScrollEvent event with null source and targetScrollEvent
(EventType<ScrollEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double deltaX, double deltaY, double totalDeltaX, double totalDeltaY, ScrollEvent.HorizontalTextScrollUnits textDeltaXUnits, double textDeltaX, ScrollEvent.VerticalTextScrollUnits textDeltaYUnits, double textDeltaY, int touchCount, PickResult pickResult) Constructs new ScrollEvent event with null source and targetSwipeEvent
(Object source, EventTarget target, EventType<SwipeEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, int touchCount, PickResult pickResult) Constructs new SwipeEvent event.SwipeEvent
(EventType<SwipeEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, int touchCount, PickResult pickResult) Constructs new SwipeEvent event with null source and target.TouchEvent
(Object source, EventTarget target, EventType<TouchEvent> eventType, TouchPoint touchPoint, List<TouchPoint> touchPoints, int eventSetId, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown) Constructs new TouchEvent event.TouchEvent
(EventType<TouchEvent> eventType, TouchPoint touchPoint, List<TouchPoint> touchPoints, int eventSetId, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown) Constructs new TouchEvent event with null source and target.ZoomEvent
(Object source, EventTarget target, EventType<ZoomEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double zoomFactor, double totalZoomFactor, PickResult pickResult) Constructs new ZoomEvent event.ZoomEvent
(EventType<ZoomEvent> eventType, double x, double y, double screenX, double screenY, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown, boolean direct, boolean inertia, double zoomFactor, double totalZoomFactor, PickResult pickResult) Constructs new ZoomEvent event with null source and target. -
Uses of EventType in javafx.scene.media
Modifier and TypeFieldDescriptionstatic final EventType
<MediaErrorEvent> MediaErrorEvent.MEDIA_ERROR
The only valid event type for theMediaErrorEvent
. -
Uses of EventType in javafx.scene.transform
Modifier and TypeFieldDescriptionstatic final EventType
<TransformChangedEvent> TransformChangedEvent.ANY
Common supertype for all transform changed event types.static final EventType
<TransformChangedEvent> TransformChangedEvent.TRANSFORM_CHANGED
The only valid EventType for the TransformChangedEvent.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 EventType in javafx.scene.web
Modifier and TypeFieldDescriptionWebEvent.ALERT
This event occurs when a script calls the JavaScriptalert
function.static final EventType
<WebErrorEvent> WebErrorEvent.ANY
Common supertype for allWebErrorEvent
types.WebEvent.ANY
Common supertype for all Web event types.WebEvent.RESIZED
This event occurs when a script changes location of the JavaScriptwindow
object.WebEvent.STATUS_CHANGED
This event occurs when a script changes status line text.static final EventType
<WebErrorEvent> WebErrorEvent.USER_DATA_DIRECTORY_ALREADY_IN_USE
This event occurs when aWebEngine
detects that its user data directory is already in use by aWebEngine
running in a different VM.static final EventType
<WebErrorEvent> WebErrorEvent.USER_DATA_DIRECTORY_IO_ERROR
This event occurs when aWebEngine
encounters an I/O error while trying to create or access the user data directory.static final EventType
<WebErrorEvent> WebErrorEvent.USER_DATA_DIRECTORY_SECURITY_ERROR
This event occurs when aWebEngine
encounters a security error while trying to create or access the user data directory.WebEvent.VISIBILITY_CHANGED
This event occurs when a script changes visibility of the JavaScriptwindow
object. -
Uses of EventType in javafx.stage
Modifier and TypeFieldDescriptionstatic final EventType
<WindowEvent> WindowEvent.ANY
Common supertype for all window event types.static final EventType
<WindowEvent> WindowEvent.WINDOW_CLOSE_REQUEST
This event is delivered to a window when there is an external request to close that window.static final EventType
<WindowEvent> WindowEvent.WINDOW_HIDDEN
This event occurs on window just after it is hidden.static final EventType
<WindowEvent> WindowEvent.WINDOW_HIDING
This event occurs on window just before it is hidden.static final EventType
<WindowEvent> WindowEvent.WINDOW_SHOWING
This event occurs on window just before it is shown.static final EventType
<WindowEvent> WindowEvent.WINDOW_SHOWN
This event occurs on window just after it is shown.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) WindowEvent.copyFor
(Object newSource, EventTarget newTarget, EventType<WindowEvent> type) Creates a copy of the given event with the given fields substituted.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.ModifierConstructorDescriptionWindowEvent
(Window source, EventType<? extends Event> eventType) Construct a newEvent
with the specified event source, target and type.