Uses of Class
javafx.event.EventType
-
Packages that use EventType 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 forAffine
objects.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 EventType in javafx.concurrent
Fields in javafx.concurrent declared as EventType Modifier and Type Field Description static EventType<WorkerStateEvent>
WorkerStateEvent. ANY
Common supertype for all worker state event types.static EventType<WorkerStateEvent>
WorkerStateEvent. WORKER_STATE_CANCELLED
This event occurs when the state of a Worker implementation has transitioned to the CANCELLED state.static EventType<WorkerStateEvent>
WorkerStateEvent. WORKER_STATE_FAILED
This event occurs when the state of a Worker implementation has transitioned to the FAILED state.static EventType<WorkerStateEvent>
WorkerStateEvent. WORKER_STATE_READY
This event occurs when the state of a Worker implementation has transitioned to the READY state.static EventType<WorkerStateEvent>
WorkerStateEvent. WORKER_STATE_RUNNING
This event occurs when the state of a Worker implementation has transitioned to the RUNNING state.static EventType<WorkerStateEvent>
WorkerStateEvent. WORKER_STATE_SCHEDULED
This event occurs when the state of a Worker implementation has transitioned to the SCHEDULED state.static EventType<WorkerStateEvent>
WorkerStateEvent. WORKER_STATE_SUCCEEDED
This event occurs when the state of a Worker implementation has transitioned to the SUCCEEDED state.Methods in javafx.concurrent with parameters of type EventType 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.Constructors in javafx.concurrent with parameters of type EventType Constructor Description WorkerStateEvent(Worker worker, EventType<? extends WorkerStateEvent> eventType)
Create a new WorkerStateEvent. -
Uses of EventType in javafx.event
Fields in javafx.event declared as EventType Modifier and Type Field Description static EventType<ActionEvent>
ActionEvent. ACTION
The only valid EventType for the ActionEvent.static EventType<ActionEvent>
ActionEvent. ANY
Common supertype for all action event types.static EventType<Event>
Event. ANY
Common supertype for all event types.protected EventType<? extends Event>
Event. eventType
Type of the event.static EventType<Event>
EventType. ROOT
The root event type.Methods in javafx.event that return EventType Modifier and Type Method Description EventType<? extends Event>
Event. getEventType()
Gets the event type of this event.EventType<? super T>
EventType. getSuperType()
Gets the super type of this event type.Constructors in javafx.event with parameters of type EventType Constructor Description Event(Object source, EventTarget target, EventType<? extends Event> eventType)
Construct a newEvent
with the specified event source, target and type.Event(EventType<? extends Event> eventType)
Construct a newEvent
with the specified event type.EventType(EventType<? super T> superType)
Constructs a newEventType
with the specified super type and the name set tonull
.EventType(EventType<? super T> superType, String name)
Constructs a newEventType
with the specified super type and name. -
Uses of EventType in javafx.scene
Methods in javafx.scene with parameters of type EventType 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. -
Uses of EventType in javafx.scene.control
Fields in javafx.scene.control declared as EventType Modifier and Type Field Description static EventType<Event>
CheckBoxTreeItem.TreeModificationEvent. ANY
Common supertype for all tree modification event types.static EventType<DialogEvent>
DialogEvent. ANY
Common supertype for all dialog event types.static EventType<?>
ListView.EditEvent. ANY
Common supertype for all edit event types.static EventType<ScrollToEvent>
ScrollToEvent. ANY
Common supertype for all scroll-to event types.static EventType<SortEvent>
SortEvent. ANY
Common supertype for all sort event types.static EventType<?>
TableColumn.CellEditEvent. ANY
Common supertype for all cell edit event types.static EventType<?>
TreeItem.TreeModificationEvent. ANY
Common supertype for all tree modification event types.static EventType<?>
TreeTableColumn.CellEditEvent. ANY
Common supertype for all cell edit event types.static EventType<?>
TreeTableView.EditEvent. ANY
Common supertype for all edit event types.static EventType<?>
TreeView.EditEvent. ANY
Common supertype for all edit event types.static EventType<Event>
Tab. CLOSED_EVENT
Called when a user closes this tab.static EventType<DialogEvent>
DialogEvent. DIALOG_CLOSE_REQUEST
This event is delivered to a dialog when there is an external request to close that dialog.static EventType<DialogEvent>
DialogEvent. DIALOG_HIDDEN
This event occurs on dialog just after it is hidden.static EventType<DialogEvent>
DialogEvent. DIALOG_HIDING
This event occurs on dialog just before it is hidden.static EventType<DialogEvent>
DialogEvent. DIALOG_SHOWING
This event occurs on dialog just before it is shown.static EventType<DialogEvent>
DialogEvent. DIALOG_SHOWN
This event occurs on dialog just after it is shown.static EventType<Event>
MenuItem. MENU_VALIDATION_EVENT
Called when a accelerator for the Menuitem is invokedstatic EventType<Event>
ChoiceBox. ON_HIDDEN
Called when the ChoiceBox popup has been hidden.static EventType<Event>
ComboBoxBase. ON_HIDDEN
Called when the ComboBox popup/display has been hidden.static EventType<Event>
Menu. ON_HIDDEN
Called when the contextMenu for this menu is hidden.static EventType<Event>
MenuButton. ON_HIDDEN
Called when the MenuButton popup has been hidden.static EventType<Event>
ChoiceBox. ON_HIDING
Called when the ChoiceBox popup will be hidden.static EventType<Event>
ComboBoxBase. ON_HIDING
Called when the ComboBox popup/display will be hidden.static EventType<Event>
Menu. ON_HIDING
Called when the contextMenu for this menu will be hidden.static EventType<Event>
MenuButton. ON_HIDING
Called when the MenuButton popup will be hidden.static EventType<Event>
ChoiceBox. ON_SHOWING
Called prior to the ChoiceBox showing its popup after the user has clicked or otherwise interacted with the ChoiceBox.static EventType<Event>
ComboBoxBase. ON_SHOWING
Called prior to the ComboBox showing its popup/display after the user has clicked or otherwise interacted with the ComboBox.static EventType<Event>
Menu. ON_SHOWING
Called when the contextMenu for this menu will be shown.static EventType<Event>
MenuButton. ON_SHOWING
Called prior to the MenuButton showing its popup after the user has clicked or otherwise interacted with the MenuButton.static EventType<Event>
ChoiceBox. ON_SHOWN
Called after the ChoiceBox has shown its popup.static EventType<Event>
ComboBoxBase. ON_SHOWN
Called after the ComboBox has shown its popup/display.static EventType<Event>
Menu. ON_SHOWN
Called when the contextMenu for this menu shows.static EventType<Event>
MenuButton. ON_SHOWN
Called after the MenuButton has shown its popup.static EventType<Event>
Tab. SELECTION_CHANGED_EVENT
Called when the tab becomes selected or unselected.static EventType<Event>
Tab. TAB_CLOSE_REQUEST_EVENT
Called when there is an external request to close thisTab
.Methods in javafx.scene.control that return EventType Modifier and Type Method Description static <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.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.static <C> EventType<SortEvent<C>>
SortEvent. sortEvent()
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.Methods in javafx.scene.control with parameters of type EventType Modifier and Type Method Description <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.DialogEvent
DialogEvent. copyFor(Object newSource, EventTarget newTarget, EventType<DialogEvent> type)
Creates a copy of the given event with the given fields substituted.<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.Constructors in javafx.scene.control with parameters of type EventType Constructor Description CellEditEvent(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.TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem, T newValue)
Constructs a TreeModificationEvent for when the TreeItem has had itsTreeItem.valueProperty()
changed. -
Uses of EventType in javafx.scene.input
Fields in javafx.scene.input declared as EventType Modifier and Type Field Description static EventType<ContextMenuEvent>
ContextMenuEvent. ANY
Common supertype for all context menu event types.static EventType<DragEvent>
DragEvent. ANY
Common supertype for all drag event types.static EventType<GestureEvent>
GestureEvent. ANY
Common supertype for all gestures.static EventType<InputEvent>
InputEvent. ANY
Common supertype for all input event types.static EventType<InputMethodEvent>
InputMethodEvent. ANY
Common supertype for all input method event types.static EventType<KeyEvent>
KeyEvent. ANY
Common supertype for all key event types.static EventType<MouseDragEvent>
MouseDragEvent. ANY
Common supertype for all mouse event types.static EventType<MouseEvent>
MouseEvent. ANY
Common supertype for all mouse event types.static EventType<RotateEvent>
RotateEvent. ANY
Common supertype for all rotate event types.static EventType<ScrollEvent>
ScrollEvent. ANY
Common supertype for all scroll event types.static EventType<SwipeEvent>
SwipeEvent. ANY
Common supertype for all swipe event types.static EventType<TouchEvent>
TouchEvent. ANY
Common supertype for all touch event types.static EventType<ZoomEvent>
ZoomEvent. ANY
Common supertype for all zoom event types.static EventType<ContextMenuEvent>
ContextMenuEvent. CONTEXT_MENU_REQUESTED
This event occurs when a context menu is requested.static EventType<MouseEvent>
MouseEvent. DRAG_DETECTED
This event is delivered to a node that is identified as a source of a dragging gesture.static EventType<DragEvent>
DragEvent. DRAG_DONE
This event occurs on drag-and-drop gesture source after its data has been dropped on a drop target.static EventType<DragEvent>
DragEvent. DRAG_DROPPED
This event occurs when the mouse button is released during drag and drop gesture on a drop target.static EventType<DragEvent>
DragEvent. DRAG_ENTERED
This event occurs when drag gesture enters a node.static EventType<DragEvent>
DragEvent. DRAG_ENTERED_TARGET
This event occurs when drag gesture enters a node.static EventType<DragEvent>
DragEvent. DRAG_EXITED
This event occurs when drag gesture exits a node.static EventType<DragEvent>
DragEvent. DRAG_EXITED_TARGET
This event occurs when drag gesture exits a node.static EventType<DragEvent>
DragEvent. DRAG_OVER
This event occurs when drag gesture progresses within this node.static EventType<InputMethodEvent>
InputMethodEvent. INPUT_METHOD_TEXT_CHANGED
The only valid EventType for the InputMethodEvent.static EventType<KeyEvent>
KeyEvent. KEY_PRESSED
This event occurs when a key has been pressed.static EventType<KeyEvent>
KeyEvent. KEY_RELEASED
This event occurs when a key has been released.static EventType<KeyEvent>
KeyEvent. KEY_TYPED
This event occurs when a character-generating key was typed (pressed and released).static EventType<MouseEvent>
MouseEvent. MOUSE_CLICKED
This event occurs when mouse button has been clicked (pressed and released on the same node).static EventType<MouseDragEvent>
MouseDragEvent. MOUSE_DRAG_ENTERED
This event occurs when the gesture enters a node.static EventType<MouseDragEvent>
MouseDragEvent. MOUSE_DRAG_ENTERED_TARGET
This event occurs when the gesture enters a node.static EventType<MouseDragEvent>
MouseDragEvent. MOUSE_DRAG_EXITED
This event occurs when the gesture exits a node.static EventType<MouseDragEvent>
MouseDragEvent. MOUSE_DRAG_EXITED_TARGET
This event occurs when the gesture exits a node.static EventType<MouseDragEvent>
MouseDragEvent. MOUSE_DRAG_OVER
This event occurs when the gesture progresses within this node.static EventType<MouseDragEvent>
MouseDragEvent. MOUSE_DRAG_RELEASED
This event occurs when the gesture ends (by releasing mouse button) on this node.static EventType<MouseEvent>
MouseEvent. MOUSE_DRAGGED
This event occurs when mouse moves with a pressed button.static EventType<MouseEvent>
MouseEvent. MOUSE_ENTERED
This event occurs when mouse enters a node.static EventType<MouseEvent>
MouseEvent. MOUSE_ENTERED_TARGET
This event occurs when mouse enters a node.static EventType<MouseEvent>
MouseEvent. MOUSE_EXITED
This event occurs when mouse exits a node.static EventType<MouseEvent>
MouseEvent. MOUSE_EXITED_TARGET
This event occurs when mouse exits a node.static EventType<MouseEvent>
MouseEvent. MOUSE_MOVED
This event occurs when mouse moves within a node and no buttons are pressed.static EventType<MouseEvent>
MouseEvent. MOUSE_PRESSED
This event occurs when mouse button is pressed.static EventType<MouseEvent>
MouseEvent. MOUSE_RELEASED
This event occurs when mouse button is released.static EventType<RotateEvent>
RotateEvent. ROTATE
This event occurs when user performs a rotating gesture such as dragging two fingers around each other.static EventType<RotateEvent>
RotateEvent. ROTATION_FINISHED
This event occurs when a rotating gesture ends.static EventType<RotateEvent>
RotateEvent. ROTATION_STARTED
This event occurs when a rotating gesture is detected.static 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 EventType<ScrollEvent>
ScrollEvent. SCROLL_FINISHED
This event occurs when a scrolling gesture ends.static EventType<ScrollEvent>
ScrollEvent. SCROLL_STARTED
This event occurs when a scrolling gesture is detected.static EventType<SwipeEvent>
SwipeEvent. SWIPE_DOWN
This event occurs when user performs downward swipe gesture.static EventType<SwipeEvent>
SwipeEvent. SWIPE_LEFT
This event occurs when user performs leftward swipe gesture.static EventType<SwipeEvent>
SwipeEvent. SWIPE_RIGHT
This event occurs when user performs rightward swipe gesture.static EventType<SwipeEvent>
SwipeEvent. SWIPE_UP
This event occurs when user performs upward swipe gesture.static EventType<TouchEvent>
TouchEvent. TOUCH_MOVED
This event occurs when the touch point is moved.static EventType<TouchEvent>
TouchEvent. TOUCH_PRESSED
This event occurs when the touch point is pressed (touched for the first time).static EventType<TouchEvent>
TouchEvent. TOUCH_RELEASED
This event occurs when the touch point is released.static EventType<TouchEvent>
TouchEvent. TOUCH_STATIONARY
This event occurs when the touch point is pressed and still (doesn't move).static EventType<ZoomEvent>
ZoomEvent. ZOOM
This event occurs when user performs a zooming gesture such as dragging two fingers apart.static EventType<ZoomEvent>
ZoomEvent. ZOOM_FINISHED
This event occurs when a zooming gesture ends.static EventType<ZoomEvent>
ZoomEvent. ZOOM_STARTED
This event occurs when a zooming gesture is detected.Methods in javafx.scene.input with parameters of type EventType Modifier and Type Method Description DragEvent
DragEvent. 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
DragEvent. copyFor(Object source, EventTarget target, EventType<DragEvent> type)
Creates a copy of the given drag event with the given fields substituted.KeyEvent
KeyEvent. copyFor(Object source, EventTarget target, EventType<KeyEvent> type)
Creates a copy of the given event with the given fields substituted.MouseEvent
MouseEvent. copyFor(Object newSource, EventTarget newTarget, EventType<? extends MouseEvent> eventType)
Creates a copy of the given event with the given fields substituted.RotateEvent
RotateEvent. copyFor(Object newSource, EventTarget newTarget, EventType<RotateEvent> type)
Creates a copy of the given event with the given fields substituted.ScrollEvent
ScrollEvent. copyFor(Object newSource, EventTarget newTarget, EventType<ScrollEvent> type)
Creates a copy of the given event with the given fields substituted.SwipeEvent
SwipeEvent. copyFor(Object newSource, EventTarget newTarget, EventType<SwipeEvent> type)
Creates a copy of the given event with the given fields substituted.TouchEvent
TouchEvent. copyFor(Object newSource, EventTarget newTarget, EventType<TouchEvent> type)
Creates a copy of the given event with the given fields substituted.ZoomEvent
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 typeConstructors in javafx.scene.input with parameters of type EventType Constructor Description ContextMenuEvent(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.GestureEvent(Object source, EventTarget target, EventType<? extends GestureEvent> eventType)
Deprecated.Do not use this constructor.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.GestureEvent(EventType<? extends GestureEvent> eventType)
Deprecated.Do not use this constructor.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 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 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 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
Fields in javafx.scene.media declared as EventType Modifier and Type Field Description static EventType<MediaErrorEvent>
MediaErrorEvent. MEDIA_ERROR
The only valid event type for theMediaErrorEvent
. -
Uses of EventType in javafx.scene.transform
Fields in javafx.scene.transform declared as EventType Modifier and Type Field Description static EventType<TransformChangedEvent>
TransformChangedEvent. ANY
Common supertype for all transform changed event types.static EventType<TransformChangedEvent>
TransformChangedEvent. TRANSFORM_CHANGED
The only valid EventType for the TransformChangedEvent.Methods in javafx.scene.transform with parameters of type EventType 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 EventType in javafx.scene.web
Fields in javafx.scene.web declared as EventType Modifier and Type Field Description static EventType<WebEvent>
WebEvent. ALERT
This event occurs when a script calls the JavaScriptalert
function.static EventType<WebErrorEvent>
WebErrorEvent. ANY
Common supertype for allWebErrorEvent
types.static EventType<WebEvent>
WebEvent. ANY
Common supertype for all Web event types.static EventType<WebEvent>
WebEvent. RESIZED
This event occurs when a script changes location of the JavaScriptwindow
object.static EventType<WebEvent>
WebEvent. STATUS_CHANGED
This event occurs when a script changes status line text.static 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 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 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.static EventType<WebEvent>
WebEvent. VISIBILITY_CHANGED
This event occurs when a script changes visibility of the JavaScriptwindow
object.Constructors in javafx.scene.web with parameters of type EventType Constructor Description WebErrorEvent(Object source, EventType<WebErrorEvent> type, String message, Throwable exception)
Creates a newWebErrorEvent
.WebEvent(Object source, EventType<WebEvent> type, T data)
Creates a new event object. -
Uses of EventType in javafx.stage
Fields in javafx.stage declared as EventType Modifier and Type Field Description static EventType<WindowEvent>
WindowEvent. ANY
Common supertype for all window event types.static EventType<WindowEvent>
WindowEvent. WINDOW_CLOSE_REQUEST
This event is delivered to a window when there is an external request to close that window.static EventType<WindowEvent>
WindowEvent. WINDOW_HIDDEN
This event occurs on window just after it is hidden.static EventType<WindowEvent>
WindowEvent. WINDOW_HIDING
This event occurs on window just before it is hidden.static EventType<WindowEvent>
WindowEvent. WINDOW_SHOWING
This event occurs on window just before it is shown.static EventType<WindowEvent>
WindowEvent. WINDOW_SHOWN
This event occurs on window just after it is shown.Methods in javafx.stage with parameters of type EventType 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.WindowEvent
WindowEvent. copyFor(Object newSource, EventTarget newTarget, EventType<WindowEvent> type)
Creates a copy of the given event with the given fields substituted.<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.Constructors in javafx.stage with parameters of type EventType Constructor Description WindowEvent(Window source, EventType<? extends Event> eventType)
Construct a newEvent
with the specified event source, target and type.
-