Uses of Class
javafx.event.EventType
-
Packages that use EventType 软件包 描述 javafx.concurrent 提供javafx.task的一组类。javafx.event 为FX事件,交付和处理提供基本框架。javafx.scene 为JavaFX Scene Graph API提供核心的基类集。javafx.scene.control JavaFX用户界面控件(UI控件或仅控件)是JavaFX场景中的专用节点,特别适用于许多不同应用程序环境中的重用。javafx.scene.input 提供一组用于鼠标和键盘输入事件处理的类。javafx.scene.media 提供用于将音频和视频集成到Java FX应用程序中的一组类。javafx.scene.transform 提供一组方便的类来执行Affine
对象的旋转,缩放,剪切和转换转换。javafx.scene.web 该软件包提供了加载和显示Web内容的方法。javafx.stage 提供JavaFX内容的顶级容器类。 -
-
Uses of EventType in javafx.concurrent
Fields in javafx.concurrent declared as EventType Modifier and Type Field 描述 static EventType<WorkerStateEvent>
WorkerStateEvent. ANY
所有工作状态事件类型的常用超类型。static EventType<WorkerStateEvent>
WorkerStateEvent. WORKER_STATE_CANCELLED
当Worker实现的状态转换到CANCELED状态时,会发生此事件。static EventType<WorkerStateEvent>
WorkerStateEvent. WORKER_STATE_FAILED
当Worker实现的状态已转换到FAILED状态时,会发生此事件。static EventType<WorkerStateEvent>
WorkerStateEvent. WORKER_STATE_READY
当Worker实现的状态已转换到READY状态时,会发生此事件。static EventType<WorkerStateEvent>
WorkerStateEvent. WORKER_STATE_RUNNING
当Worker实现的状态已转换到RUNNING状态时,会发生此事件。static EventType<WorkerStateEvent>
WorkerStateEvent. WORKER_STATE_SCHEDULED
当Worker实现的状态已转换到SCHEDULED状态时,会发生此事件。static EventType<WorkerStateEvent>
WorkerStateEvent. WORKER_STATE_SUCCEEDED
当Worker实现的状态已转换到SUCCEEDED状态时,会发生此事件。Methods in javafx.concurrent with parameters of type EventType Modifier and Type 方法 描述 <T extends Event>
voidService. addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)
将事件过滤器注册到此任务。<T extends Event>
voidTask. addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)
将事件过滤器注册到此任务。<T extends Event>
voidService. addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
注册一个事件处理程序到这个任务。<T extends Event>
voidTask. addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
注册一个事件处理程序到这个任务。<T extends Event>
voidService. removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)
从此任务中注销先前注册的事件过滤器。<T extends Event>
voidTask. removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)
从此任务中注销先前注册的事件过滤器。<T extends Event>
voidService. removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
从此任务中注销先前注册的事件处理程序。<T extends Event>
voidTask. removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
从此任务中注销先前注册的事件处理程序。protected <T extends Event>
voidService. setEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
设置要用于此事件类型的处理程序。protected <T extends Event>
voidTask. setEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
设置要用于此事件类型的处理程序。Constructors in javafx.concurrent with parameters of type EventType Constructor 描述 WorkerStateEvent(Worker worker, EventType<? extends WorkerStateEvent> eventType)
创建一个新的WorkerStateEvent。 -
Uses of EventType in javafx.event
Fields in javafx.event declared as EventType Modifier and Type Field 描述 static EventType<ActionEvent>
ActionEvent. ACTION
ActionEvent唯一有效的EventType。static EventType<ActionEvent>
ActionEvent. ANY
所有动作事件类型的公共超类型。static EventType<Event>
Event. ANY
所有事件类型的公共超类型。protected EventType<? extends Event>
Event. eventType
事件的类型。static EventType<Event>
EventType. ROOT
根事件类型。Methods in javafx.event that return EventType Modifier and Type 方法 描述 EventType<? extends ActionEvent>
ActionEvent. getEventType()
EventType<? extends Event>
Event. getEventType()
获取此事件的事件类型。EventType<? super T>
EventType. getSuperType()
获取此类型的超级类型。Constructors in javafx.event with parameters of type EventType Constructor 描述 Event(Object source, EventTarget target, EventType<? extends Event> eventType)
构造一个新的Event
与指定的事件源,目标和类型。Event(EventType<? extends Event> eventType)
构造具有指定事件类型的新的Event
。EventType(EventType<? super T> superType)
构造一个新的EventType
具有指定的超类型,名称设置为null
。EventType(EventType<? super T> superType, String name)
构造一个新的EventType
具有指定的超类型和名称。 -
Uses of EventType in javafx.scene
Methods in javafx.scene with parameters of type EventType Modifier and Type 方法 描述 <T extends Event>
voidNode. addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)
向此节点注册事件过滤器。<T extends Event>
voidScene. addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)
注册一个事件过滤器到这个场景。<T extends Event>
voidNode. addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
向此节点注册事件处理程序。<T extends Event>
voidScene. addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
注册一个事件处理程序到这个场景。<T extends Event>
voidNode. removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)
从此节点注销先前注册的事件过滤器。<T extends Event>
voidScene. removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)
从此场景注销先前注册的事件过滤器。<T extends Event>
voidNode. removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
从此节点注销先前注册的事件处理程序。<T extends Event>
voidScene. removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
从此场景注销先前注册的事件处理程序。protected <T extends Event>
voidNode. setEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
设置要用于此事件类型的处理程序。protected <T extends Event>
voidScene. setEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
设置要用于此事件类型的处理程序。 -
Uses of EventType in javafx.scene.control
Fields in javafx.scene.control declared as EventType Modifier and Type Field 描述 static EventType<Event>
CheckBoxTreeItem.TreeModificationEvent. ANY
所有树修改事件类型的常用超类型。static EventType<DialogEvent>
DialogEvent. ANY
所有对话事件类型的常用超类型。static EventType<?>
ListView.EditEvent. ANY
所有编辑事件类型的公共超类型。static EventType<ScrollToEvent>
ScrollToEvent. ANY
所有滚动到事件类型的常用超类型。static EventType<SortEvent>
SortEvent. ANY
所有排序事件类型的常用超类型。static EventType<?>
TableColumn.CellEditEvent. ANY
所有单元格编辑事件类型的公共超类型。static EventType<?>
TreeItem.TreeModificationEvent. ANY
所有树修改事件类型的常用超类型。static EventType<?>
TreeTableColumn.CellEditEvent. ANY
所有单元格编辑事件类型的公共超类型。static EventType<?>
TreeTableView.EditEvent. ANY
所有编辑事件类型的公共超类型。static EventType<?>
TreeView.EditEvent. ANY
所有编辑事件类型的公共超类型。static EventType<Event>
Tab. CLOSED_EVENT
当用户关闭此选项卡时调用。static EventType<DialogEvent>
DialogEvent. DIALOG_CLOSE_REQUEST
当有外部请求关闭该对话框时,此事件将传递到对话框。static EventType<DialogEvent>
DialogEvent. DIALOG_HIDDEN
此事件发生在隐藏后的对话框上。static EventType<DialogEvent>
DialogEvent. DIALOG_HIDING
此事件发生在隐藏之前的对话框上。static EventType<DialogEvent>
DialogEvent. DIALOG_SHOWING
此事件发生在显示之前的对话框上。static EventType<DialogEvent>
DialogEvent. DIALOG_SHOWN
此事件发生在显示之后的对话框上。static EventType<Event>
MenuItem. MENU_VALIDATION_EVENT
当调用Menuitem的加速器时调用static EventType<Event>
ChoiceBox. ON_HIDDEN
当ChoiceBox弹出窗口被隐藏时调用。static EventType<Event>
ComboBoxBase. ON_HIDDEN
当ComboBox弹出/显示已被隐藏时调用。static EventType<Event>
Menu. ON_HIDDEN
当此菜单的contextMenu隐藏时调用。static EventType<Event>
MenuButton. ON_HIDDEN
当MenuButton弹出窗口被隐藏时调用。static EventType<Event>
ChoiceBox. ON_HIDING
调用的时候ChoiceBox弹出窗口 将被隐藏。static EventType<Event>
ComboBoxBase. ON_HIDING
当ComboBox弹出/显示 将被隐藏时调用。static EventType<Event>
Menu. ON_HIDING
当该菜单的contextMenu 将被隐藏时调用。static EventType<Event>
MenuButton. ON_HIDING
调用的时候,菜单按钮弹出 将被隐藏。static EventType<Event>
ChoiceBox. ON_SHOWING
在选择框之前调用,在用户单击或以其他方式与ChoiceBox进行交互之后显示弹出窗口。static EventType<Event>
ComboBoxBase. ON_SHOWING
在ComboBox之前调用,在用户单击或以其他方式与ComboBox进行交互之后显示弹出/显示。static EventType<Event>
Menu. ON_SHOWING
当此菜单的contextMenu 将被显示时调用。static EventType<Event>
MenuButton. ON_SHOWING
在MenuButton显示弹出窗口之前,在用户单击或以其他方式与MenuButton进行交互之后调用。static EventType<Event>
ChoiceBox. ON_SHOWN
在ChoiceBox显示弹出窗口后调用。static EventType<Event>
ComboBoxBase. ON_SHOWN
在ComboBox显示弹出/显示后调用。static EventType<Event>
Menu. ON_SHOWN
当此菜单的contextMenu显示时调用。static EventType<Event>
MenuButton. ON_SHOWN
在MenuButton显示弹出窗口后调用。static EventType<Event>
Tab. SELECTION_CHANGED_EVENT
当选项卡被选中或未选择时调用。static EventType<Event>
Tab. TAB_CLOSE_REQUEST_EVENT
当有外部请求关闭这个Tab
。Methods in javafx.scene.control that return EventType Modifier and Type 方法 描述 static <T> EventType<TreeItem.TreeModificationEvent<T>>
TreeItem. branchCollapsedEvent()
当TreeItem接收到其扩展属性的修改时使用的EventType,使得TreeItem现在处于折叠状态。static <T> EventType<TreeItem.TreeModificationEvent<T>>
TreeItem. branchExpandedEvent()
当TreeItem接收到其扩展属性的修改时使用的EventType,使得TreeItem现在处于展开状态。static <T> EventType<CheckBoxTreeItem.TreeModificationEvent<T>>
CheckBoxTreeItem. checkBoxSelectionChangedEvent()
当CheckBoxTreeItem选择/不确定状态改变时使用的EventType。static <T> EventType<TreeItem.TreeModificationEvent<T>>
TreeItem. childrenModificationEvent()
当TreeItem接收到对其子列表的直接修改时使用的EventType。static <T> EventType<ListView.EditEvent<T>>
ListView. editAnyEvent()
指示发生一些编辑事件的EventType。static <S,T> EventType<TableColumn.CellEditEvent<S,T>>
TableColumn. editAnyEvent()
任何TableColumn编辑事件的父事件。static <S,T> EventType<TreeTableColumn.CellEditEvent<S,T>>
TreeTableColumn. editAnyEvent()
任何TreeTableColumn编辑事件的父事件。static <S> EventType<TreeTableView.EditEvent<S>>
TreeTableView. editAnyEvent()
指示发生一些编辑事件的EventType。static <T> EventType<TreeView.EditEvent<T>>
TreeView. editAnyEvent()
指示发生一些编辑事件的EventType。static <T> EventType<ListView.EditEvent<T>>
ListView. editCancelEvent()
一个EventType,用于指示在事件触发的ListView中刚刚取消了编辑事件。static <S,T> EventType<TableColumn.CellEditEvent<S,T>>
TableColumn. editCancelEvent()
表示编辑已被取消,这意味着不应对后备数据源进行任何更改。static <S,T> EventType<TreeTableColumn.CellEditEvent<S,T>>
TreeTableColumn. editCancelEvent()
表示编辑已被取消,这意味着不应对后备数据源进行任何更改。static <S> EventType<TreeTableView.EditEvent<S>>
TreeTableView. editCancelEvent()
EventType用于指示事件被触发的TreeTableView中刚刚取消了编辑事件。static <T> EventType<TreeView.EditEvent<T>>
TreeView. editCancelEvent()
EventType用于指示事件被触发的TreeView中刚刚取消了编辑事件。static <T> EventType<ListView.EditEvent<T>>
ListView. editCommitEvent()
EventType用于指示已在触发事件的ListView中提交了编辑事件。static <S,T> EventType<TableColumn.CellEditEvent<S,T>>
TableColumn. editCommitEvent()
表示编辑已由用户提交,这意味着应对后备数据源进行更改以反映新数据。static <S,T> EventType<TreeTableColumn.CellEditEvent<S,T>>
TreeTableColumn. editCommitEvent()
表示编辑已由用户提交,这意味着应对后备数据源进行更改以反映新数据。static <S> EventType<TreeTableView.EditEvent<S>>
TreeTableView. editCommitEvent()
用于指示TreeTableView中的编辑已提交的EventType。static <T> EventType<TreeView.EditEvent<T>>
TreeView. editCommitEvent()
用于指示TreeView中的编辑已提交的EventType。static <T> EventType<ListView.EditEvent<T>>
ListView. editStartEvent()
EventType用于指示在事件被触发的ListView中启动编辑事件。static <S,T> EventType<TableColumn.CellEditEvent<S,T>>
TableColumn. editStartEvent()
表示用户已经执行了一些交互来启动编辑事件,或者TableView.edit(int, javafx.scene.control.TableColumn)
方法已被调用。static <S,T> EventType<TreeTableColumn.CellEditEvent<S,T>>
TreeTableColumn. editStartEvent()
表示用户执行了一些交互以启动编辑事件,或者已经调用了TreeTableView.edit(int, javafx.scene.control.TreeTableColumn)
方法。static <S> EventType<TreeTableView.EditEvent<S>>
TreeTableView. editStartEvent()
EventType用于指示在触发事件的TreeTableView中启动了编辑事件。static <T> EventType<TreeView.EditEvent<T>>
TreeView. editStartEvent()
EventType用于指示在事件触发的TreeView中启动了编辑事件。static <T> EventType<TreeItem.TreeModificationEvent<T>>
TreeItem. expandedItemCountChangeEvent()
当TreeItem接收到一个修改,导致孩子数目可见的更改时使用的常规EventType。EventType<DialogEvent>
DialogEvent. getEventType()
static <T> EventType<TreeItem.TreeModificationEvent<T>>
TreeItem. graphicChangedEvent()
当TreeItem接收到其图形属性的修改时使用的EventType。static <T extends TableColumnBase<?,?>>
EventType<ScrollToEvent<T>>ScrollToEvent. scrollToColumn()
如果用户请求滚动一个TableColumnBase
(即static EventType<ScrollToEvent<Integer>>
ScrollToEvent. scrollToTopIndex()
如果用户请求将给定索引滚动到视图中,则会发生此事件。static <C> EventType<SortEvent<C>>
SortEvent. sortEvent()
static <T> EventType<TreeItem.TreeModificationEvent<T>>
TreeItem. treeNotificationEvent()
用于指示事件在TreeItem中发生的基本EventType。static <T> EventType<TreeItem.TreeModificationEvent<T>>
TreeItem. valueChangedEvent()
当TreeItem接收到对其value属性的修改时使用的EventType。Methods in javafx.scene.control with parameters of type EventType Modifier and Type 方法 描述 <E extends Event>
voidMenu. addEventHandler(EventType<E> eventType, EventHandler<E> eventHandler)
在此MenuItem中注册一个事件处理程序。<E extends Event>
voidMenuItem. addEventHandler(EventType<E> eventType, EventHandler<E> eventHandler)
在此MenuItem中注册一个事件处理程序。<E extends Event>
voidTableColumnBase. addEventHandler(EventType<E> eventType, EventHandler<E> eventHandler)
在此表列中注册一个事件处理程序。<E extends Event>
voidTreeItem. addEventHandler(EventType<E> eventType, EventHandler<E> eventHandler)
将一个事件处理程序注册到此TreeItem。DialogEvent
DialogEvent. copyFor(Object newSource, EventTarget newTarget, EventType<DialogEvent> type)
用给定的字段替换给定事件的副本。<E extends Event>
voidMenu. removeEventHandler(EventType<E> eventType, EventHandler<E> eventHandler)
从此MenuItem中注销先前注册的事件处理程序。<E extends Event>
voidMenuItem. removeEventHandler(EventType<E> eventType, EventHandler<E> eventHandler)
从此MenuItem中注销先前注册的事件处理程序。<E extends Event>
voidTableColumnBase. removeEventHandler(EventType<E> eventType, EventHandler<E> eventHandler)
从此表列中注销先前注册的事件处理程序。<E extends Event>
voidTreeItem. removeEventHandler(EventType<E> eventType, EventHandler<E> eventHandler)
从此TreeItem中注销先前注册的事件处理程序。Constructors in javafx.scene.control with parameters of type EventType Constructor 描述 CellEditEvent(TableView<S> table, TablePosition<S,T> pos, EventType<TableColumn.CellEditEvent<S,T>> eventType, T newValue)
创建一个可以随后向相关听众触发的新事件。CellEditEvent(TreeTableView<S> table, TreeTablePosition<S,T> pos, EventType<TreeTableColumn.CellEditEvent<S,T>> eventType, T newValue)
创建一个可以随后向相关听众触发的新事件。DialogEvent(Dialog<?> source, EventType<? extends Event> eventType)
构造一个新的Event
与指定的事件源,目标和类型。EditEvent(ListView<T> source, EventType<? extends ListView.EditEvent<T>> eventType, T newValue, int editIndex)
创建一个新的EditEvent实例来表示编辑事件。EditEvent(TreeTableView<S> source, EventType<? extends TreeTableView.EditEvent> eventType, TreeItem<S> treeItem, S oldValue, S newValue)
创建一个新的EditEvent实例来表示编辑事件。EditEvent(TreeView<T> source, EventType<? extends TreeView.EditEvent> eventType, TreeItem<T> treeItem, T oldValue, T newValue)
创建一个新的EditEvent实例来表示编辑事件。ScrollToEvent(Object source, EventTarget target, EventType<ScrollToEvent<T>> type, T scrollTarget)
构造一个新的Event
与指定的事件源,目标和类型。TreeModificationEvent(EventType<? extends Event> eventType, CheckBoxTreeItem<T> treeItem, boolean selectionChanged)
创建一个默认的TreeModificationEvent实例来表示给定的CheckBoxTreeItem实例的选择/不确定状态的变化。TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem)
构建一个基本的TreeModificationEvent - 这在树项目没有收到新值,扩展/折叠状态之间没有变化,并且其子项没有更改的情况下很有用。TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem, boolean expanded)
构建一个TreeModificationEvent,当TreeItem已经更改了TreeItem.expandedProperty()
时 。TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem, List<? extends TreeItem<T>> added, List<? extends TreeItem<T>> removed)
构造一个TreeModificationEvent,当TreeItem的子项列表更改时。TreeModificationEvent(EventType<? extends Event> eventType, TreeItem<T> treeItem, T newValue)
构建TreeModificationEvent,当TreeItem已经更改了它的TreeItem.valueProperty()
时 。 -
Uses of EventType in javafx.scene.input
Fields in javafx.scene.input declared as EventType Modifier and Type Field 描述 static EventType<ContextMenuEvent>
ContextMenuEvent. ANY
所有上下文菜单事件类型的常用超类型。static EventType<DragEvent>
DragEvent. ANY
所有拖动事件类型的常用超类型。static EventType<GestureEvent>
GestureEvent. ANY
所有手势的常用超类型。static EventType<InputEvent>
InputEvent. ANY
所有输入事件类型的常用超类型。static EventType<InputMethodEvent>
InputMethodEvent. ANY
所有输入法事件类型的公共超类型。static EventType<KeyEvent>
KeyEvent. ANY
所有关键事件类型的常用超类型。static EventType<MouseDragEvent>
MouseDragEvent. ANY
所有鼠标事件类型的常用超类型。static EventType<MouseEvent>
MouseEvent. ANY
所有鼠标事件类型的常用超类型。static EventType<RotateEvent>
RotateEvent. ANY
所有旋转事件类型的公共超类型。static EventType<ScrollEvent>
ScrollEvent. ANY
所有滚动事件类型的常用超类型。static EventType<SwipeEvent>
SwipeEvent. ANY
所有滑动事件类型的常用超类型。static EventType<TouchEvent>
TouchEvent. ANY
所有触摸事件类型的常用超类型。static EventType<ZoomEvent>
ZoomEvent. ANY
所有缩放事件类型的常用超类型。static EventType<ContextMenuEvent>
ContextMenuEvent. CONTEXT_MENU_REQUESTED
当请求上下文菜单时,会发生此事件。static EventType<MouseEvent>
MouseEvent. DRAG_DETECTED
该事件被传递到被识别为拖动手势的源的节点。static EventType<DragEvent>
DragEvent. DRAG_DONE
数据丢弃在放置目标上之后,这种事件就发生在拖放手势源上。static EventType<DragEvent>
DragEvent. DRAG_DROPPED
当在拖放目标上拖放手势时释放鼠标按钮时,会发生此事件。static EventType<DragEvent>
DragEvent. DRAG_ENTERED
当拖动手势进入节点时,会发生此事件。static EventType<DragEvent>
DragEvent. DRAG_ENTERED_TARGET
当拖动手势进入节点时,会发生此事件。static EventType<DragEvent>
DragEvent. DRAG_EXITED
当拖动手势退出节点时,会发生此事件。static EventType<DragEvent>
DragEvent. DRAG_EXITED_TARGET
当拖动手势退出节点时,会发生此事件。static EventType<DragEvent>
DragEvent. DRAG_OVER
当拖动手势在该节点内进行时,会发生此事件。static EventType<InputMethodEvent>
InputMethodEvent. INPUT_METHOD_TEXT_CHANGED
InputMethodEvent唯一有效的EventType。static EventType<KeyEvent>
KeyEvent. KEY_PRESSED
当按下键时,会发生此事件。static EventType<KeyEvent>
KeyEvent. KEY_RELEASED
当一个键被释放时,会发生这种情况。static EventType<KeyEvent>
KeyEvent. KEY_TYPED
当字符生成键被键入(按下并释放)时,会发生此事件。static EventType<MouseEvent>
MouseEvent. MOUSE_CLICKED
当单击鼠标按钮(在同一节点上按下并释放)时,会发生此事件。static EventType<MouseDragEvent>
MouseDragEvent. MOUSE_DRAG_ENTERED
当手势进入节点时,会发生此事件。static EventType<MouseDragEvent>
MouseDragEvent. MOUSE_DRAG_ENTERED_TARGET
当手势进入节点时,会发生此事件。static EventType<MouseDragEvent>
MouseDragEvent. MOUSE_DRAG_EXITED
当手势退出节点时,会发生此事件。static EventType<MouseDragEvent>
MouseDragEvent. MOUSE_DRAG_EXITED_TARGET
当手势退出节点时,会发生此事件。static EventType<MouseDragEvent>
MouseDragEvent. MOUSE_DRAG_OVER
当该节点内的手势进行时,会发生此事件。static EventType<MouseDragEvent>
MouseDragEvent. MOUSE_DRAG_RELEASED
当手势在该节点上结束(通过释放鼠标按钮)时,会发生此事件。static EventType<MouseEvent>
MouseEvent. MOUSE_DRAGGED
当鼠标按下按钮移动时,会发生此事件。static EventType<MouseEvent>
MouseEvent. MOUSE_ENTERED
当鼠标进入节点时,会发生此事件。static EventType<MouseEvent>
MouseEvent. MOUSE_ENTERED_TARGET
当鼠标进入节点时,会发生此事件。static EventType<MouseEvent>
MouseEvent. MOUSE_EXITED
当鼠标退出节点时,会发生此事件。static EventType<MouseEvent>
MouseEvent. MOUSE_EXITED_TARGET
当鼠标退出节点时,会发生此事件。static EventType<MouseEvent>
MouseEvent. MOUSE_MOVED
当鼠标在节点内移动并且没有按钮被按下时,会发生此事件。static EventType<MouseEvent>
MouseEvent. MOUSE_PRESSED
当按下鼠标按钮时,会发生此事件。static EventType<MouseEvent>
MouseEvent. MOUSE_RELEASED
当鼠标按钮被释放时,会发生此事件。static EventType<RotateEvent>
RotateEvent. ROTATE
当用户执行旋转手势(例如将两个手指彼此拖动时)发生此事件。static EventType<RotateEvent>
RotateEvent. ROTATION_FINISHED
当旋转手势结束时,会发生此事件。static EventType<RotateEvent>
RotateEvent. ROTATION_STARTED
当检测到旋转手势时,会发生此事件。static EventType<ScrollEvent>
ScrollEvent. SCROLL
当用户执行滚动操作(例如旋转鼠标滚轮或在触摸屏上拖动手指)时,会发生此事件。static EventType<ScrollEvent>
ScrollEvent. SCROLL_FINISHED
当滚动手势结束时,会发生此事件。static EventType<ScrollEvent>
ScrollEvent. SCROLL_STARTED
当检测到滚动手势时,会发生此事件。static EventType<SwipeEvent>
SwipeEvent. SWIPE_DOWN
当用户执行向下滑动手势时,会发生此事件。static EventType<SwipeEvent>
SwipeEvent. SWIPE_LEFT
当用户执行向左滑动手势时,会发生此事件。static EventType<SwipeEvent>
SwipeEvent. SWIPE_RIGHT
当用户执行向右滑动手势时,会发生此事件。static EventType<SwipeEvent>
SwipeEvent. SWIPE_UP
当用户执行向上滑动手势时,会发生此事件。static EventType<TouchEvent>
TouchEvent. TOUCH_MOVED
触摸点移动时会发生此事件。static EventType<TouchEvent>
TouchEvent. TOUCH_PRESSED
当按下触摸点(第一次触摸)时,会发生此事件。static EventType<TouchEvent>
TouchEvent. TOUCH_RELEASED
当触发点被释放时,会发生此事件。static EventType<TouchEvent>
TouchEvent. TOUCH_STATIONARY
当按住触摸点并静止(不移动)时,会发生此事件。static EventType<ZoomEvent>
ZoomEvent. ZOOM
当用户执行缩放手势(例如拖动两根手指)时,会发生此事件。static EventType<ZoomEvent>
ZoomEvent. ZOOM_FINISHED
当缩放手势结束时,会发生此事件。static EventType<ZoomEvent>
ZoomEvent. ZOOM_STARTED
当检测到缩放手势时,会发生此事件。Methods in javafx.scene.input that return EventType Modifier and Type 方法 描述 EventType<ContextMenuEvent>
ContextMenuEvent. getEventType()
EventType<DragEvent>
DragEvent. getEventType()
EventType<? extends GestureEvent>
GestureEvent. getEventType()
EventType<? extends InputEvent>
InputEvent. getEventType()
EventType<InputMethodEvent>
InputMethodEvent. getEventType()
EventType<KeyEvent>
KeyEvent. getEventType()
EventType<MouseDragEvent>
MouseDragEvent. getEventType()
EventType<? extends MouseEvent>
MouseEvent. getEventType()
EventType<RotateEvent>
RotateEvent. getEventType()
EventType<ScrollEvent>
ScrollEvent. getEventType()
EventType<SwipeEvent>
SwipeEvent. getEventType()
EventType<TouchEvent>
TouchEvent. getEventType()
EventType<ZoomEvent>
ZoomEvent. getEventType()
Methods in javafx.scene.input with parameters of type EventType Modifier and Type 方法 描述 DragEvent
DragEvent. copyFor(Object source, EventTarget target, Object gestureSource, Object gestureTarget, EventType<DragEvent> eventType)
创建给定字段替换的给定拖动事件的副本。DragEvent
DragEvent. copyFor(Object source, EventTarget target, EventType<DragEvent> type)
创建给定字段替换的给定拖动事件的副本。KeyEvent
KeyEvent. copyFor(Object source, EventTarget target, EventType<KeyEvent> type)
用给定的字段替换给定事件的副本。MouseDragEvent
MouseDragEvent. copyFor(Object newSource, EventTarget newTarget, EventType<? extends MouseEvent> type)
MouseEvent
MouseEvent. copyFor(Object newSource, EventTarget newTarget, EventType<? extends MouseEvent> eventType)
用给定的字段替换给定事件的副本。RotateEvent
RotateEvent. copyFor(Object newSource, EventTarget newTarget, EventType<RotateEvent> type)
用给定的字段替换给定事件的副本。ScrollEvent
ScrollEvent. copyFor(Object newSource, EventTarget newTarget, EventType<ScrollEvent> type)
用给定的字段替换给定事件的副本。SwipeEvent
SwipeEvent. copyFor(Object newSource, EventTarget newTarget, EventType<SwipeEvent> type)
用给定的字段替换给定事件的副本。TouchEvent
TouchEvent. copyFor(Object newSource, EventTarget newTarget, EventType<TouchEvent> type)
用给定的字段替换给定事件的副本。ZoomEvent
ZoomEvent. copyFor(Object newSource, EventTarget newTarget, EventType<ZoomEvent> type)
用给定的字段替换给定事件的副本。static MouseDragEvent
MouseEvent. copyForMouseDragEvent(MouseEvent e, Object source, EventTarget target, EventType<MouseDragEvent> type, Object gestureSource, PickResult pickResult)
创建MouseDragEvent类型的鼠标事件的副本Constructors in javafx.scene.input with parameters of type EventType Constructor 描述 ContextMenuEvent(Object source, EventTarget target, EventType<ContextMenuEvent> eventType, double x, double y, double screenX, double screenY, boolean keyboardTrigger, PickResult pickResult)
构造新的ContextMenu事件。ContextMenuEvent(EventType<ContextMenuEvent> eventType, double x, double y, double screenX, double screenY, boolean keyboardTrigger, PickResult pickResult)
构造具有空源和目标的新ContextMenu事件。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)
构造新的DragEvent事件。DragEvent(EventType<DragEvent> eventType, Dragboard dragboard, double x, double y, double screenX, double screenY, TransferMode transferMode, Object gestureSource, Object gestureTarget, PickResult pickResult)
构造具有空源和目标的新的DragEvent事件。GestureEvent(Object source, EventTarget target, EventType<? extends GestureEvent> eventType)
已过时。不要使用这个构造函数。 构造空事件。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)
构建新的GestureEvent事件。GestureEvent(EventType<? extends GestureEvent> eventType)
已过时。不要使用这个构造函数。 构造空事件。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)
构造新的GestureEvent事件,具有空源和目标InputEvent(Object source, EventTarget target, EventType<? extends InputEvent> eventType)
创建新的InputEvent实例。InputEvent(EventType<? extends InputEvent> eventType)
创建新的InputEvent实例。InputMethodEvent(Object source, EventTarget target, EventType<InputMethodEvent> eventType, List<InputMethodTextRun> composed, String committed, int caretPosition)
构造新的InputMethodEvent事件。InputMethodEvent(EventType<InputMethodEvent> eventType, List<InputMethodTextRun> composed, String committed, int caretPosition)
构造具有空源和目标的新的InputMethodEvent事件。KeyEvent(Object source, EventTarget target, EventType<KeyEvent> eventType, String character, String text, KeyCode code, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown)
从指定的参数构造一个新的KeyEvent
事件。KeyEvent(EventType<KeyEvent> eventType, String character, String text, KeyCode code, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown)
根据指定的参数构建一个新的KeyEvent
事件,其中包含一个null
源和目标。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)
构造新的MouseDragEvent事件。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)
构造具有null源和目标的新的MouseDragEvent事件。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)
构造新的MouseEvent事件。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)
构造具有null源和目标的新的MouseEvent事件。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)
构造新的RotateEvent事件。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)
构造具有null源和目标的新的RotateEvent事件ScrollEvent(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)
构造新的ScrollEvent事件。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)
构造具有null源和目标的新的ScrollEvent事件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, ScrollEvent.HorizontalTextScrollUnits textDeltaXUnits, double textDeltaX, ScrollEvent.VerticalTextScrollUnits textDeltaYUnits, double textDeltaY, int touchCount, PickResult pickResult)
构造具有null源和目标的新的ScrollEvent事件SwipeEvent(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)
构造新的SwipeEvent事件。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)
构造具有null源和目标的新的SwipeEvent事件。TouchEvent(Object source, EventTarget target, EventType<TouchEvent> eventType, TouchPoint touchPoint, List<TouchPoint> touchPoints, int eventSetId, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown)
构建新的TouchEvent事件。TouchEvent(EventType<TouchEvent> eventType, TouchPoint touchPoint, List<TouchPoint> touchPoints, int eventSetId, boolean shiftDown, boolean controlDown, boolean altDown, boolean metaDown)
构造具有null源和目标的新的TouchEvent事件。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)
构造新的ZoomEvent事件。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)
构造具有null源和目标的新的ZoomEvent事件。 -
Uses of EventType in javafx.scene.media
Fields in javafx.scene.media declared as EventType Modifier and Type Field 描述 static EventType<MediaErrorEvent>
MediaErrorEvent. MEDIA_ERROR
唯一有效的事件类型为MediaErrorEvent
。Methods in javafx.scene.media that return EventType Modifier and Type 方法 描述 EventType<MediaErrorEvent>
MediaErrorEvent. getEventType()
-
Uses of EventType in javafx.scene.transform
Fields in javafx.scene.transform declared as EventType Modifier and Type Field 描述 static EventType<TransformChangedEvent>
TransformChangedEvent. ANY
所有变换事件类型的公共超类型。static EventType<TransformChangedEvent>
TransformChangedEvent. TRANSFORM_CHANGED
TransformChangedEvent唯一有效的EventType。Methods in javafx.scene.transform with parameters of type EventType Modifier and Type 方法 描述 <T extends Event>
voidTransform. addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)
为此转换注册事件过滤器。<T extends Event>
voidTransform. addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
注册一个事件处理程序到这个变换。<T extends Event>
voidTransform. removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)
从此转换中注销先前注册的事件过滤器。<T extends Event>
voidTransform. removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
从此转换中注销先前注册的事件处理程序。 -
Uses of EventType in javafx.scene.web
Fields in javafx.scene.web declared as EventType Modifier and Type Field 描述 static EventType<WebEvent>
WebEvent. ALERT
当脚本调用JavaScriptalert
函数时,会发生此事件。static EventType<WebErrorEvent>
WebErrorEvent. ANY
所有WebErrorEvent
类型的常用超类型。static EventType<WebEvent>
WebEvent. ANY
所有Web事件类型的常用超类型。static EventType<WebEvent>
WebEvent. RESIZED
当脚本更改JavaScriptwindow
对象的位置时,会发生此事件。static EventType<WebEvent>
WebEvent. STATUS_CHANGED
当脚本更改状态行文本时,会发生此事件。static EventType<WebErrorEvent>
WebErrorEvent. USER_DATA_DIRECTORY_ALREADY_IN_USE
当WebEngine
检测到其用户数据目录已在不同VM中运行的WebEngine
已被使用时,会发生此事件。static EventType<WebErrorEvent>
WebErrorEvent. USER_DATA_DIRECTORY_IO_ERROR
当WebEngine
在尝试创建或访问用户数据目录时遇到I / O错误时,会发生此事件。static EventType<WebErrorEvent>
WebErrorEvent. USER_DATA_DIRECTORY_SECURITY_ERROR
当WebEngine
在尝试创建或访问用户数据目录时遇到安全错误时,会发生此事件。static EventType<WebEvent>
WebEvent. VISIBILITY_CHANGED
当脚本更改JavaScriptwindow
对象的可见性时,会发生此事件。Constructors in javafx.scene.web with parameters of type EventType Constructor 描述 WebErrorEvent(Object source, EventType<WebErrorEvent> type, String message, Throwable exception)
创建一个新的WebErrorEvent
。WebEvent(Object source, EventType<WebEvent> type, T data)
创建一个新的事件对象。 -
Uses of EventType in javafx.stage
Fields in javafx.stage declared as EventType Modifier and Type Field 描述 static EventType<WindowEvent>
WindowEvent. ANY
所有窗口事件类型的常用超类型。static EventType<WindowEvent>
WindowEvent. WINDOW_CLOSE_REQUEST
当有外部请求关闭该窗口时,此事件将传递到窗口。static EventType<WindowEvent>
WindowEvent. WINDOW_HIDDEN
此事件发生在隐藏后的窗口上。static EventType<WindowEvent>
WindowEvent. WINDOW_HIDING
此事件发生在隐藏之前的窗口上。static EventType<WindowEvent>
WindowEvent. WINDOW_SHOWING
此事件发生在显示之前的窗口上。static EventType<WindowEvent>
WindowEvent. WINDOW_SHOWN
此事件发生在显示之后的窗口上。Methods in javafx.stage that return EventType Modifier and Type 方法 描述 EventType<WindowEvent>
WindowEvent. getEventType()
Methods in javafx.stage with parameters of type EventType Modifier and Type 方法 描述 <T extends Event>
voidWindow. addEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)
向此节点注册事件过滤器。<T extends Event>
voidWindow. addEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
向此节点注册事件处理程序。WindowEvent
WindowEvent. copyFor(Object newSource, EventTarget newTarget, EventType<WindowEvent> type)
用给定的字段替换给定事件的副本。<T extends Event>
voidWindow. removeEventFilter(EventType<T> eventType, EventHandler<? super T> eventFilter)
从此节点注销先前注册的事件过滤器。<T extends Event>
voidWindow. removeEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
从此节点注销先前注册的事件处理程序。protected <T extends Event>
voidWindow. setEventHandler(EventType<T> eventType, EventHandler<? super T> eventHandler)
设置要用于此事件类型的处理程序。Constructors in javafx.stage with parameters of type EventType Constructor 描述 WindowEvent(Window source, EventType<? extends Event> eventType)
构造新的Event
与指定的事件源,目标和类型。
-