Uses of Class
javafx.scene.input.ContextMenuEvent
-
Packages that use ContextMenuEvent 软件包 描述 javafx.scene 为JavaFX Scene Graph API提供核心的基类集。javafx.scene.input 提供一组用于鼠标和键盘输入事件处理的类。 -
-
Uses of ContextMenuEvent in javafx.scene
Methods in javafx.scene that return types with arguments of type ContextMenuEvent Modifier and Type 方法 描述 EventHandler<? super ContextMenuEvent>
Node. getOnContextMenuRequested()
获取属性onContextMenuRequested的值。EventHandler<? super ContextMenuEvent>
Scene. getOnContextMenuRequested()
获取属性onContextMenuRequested的值。ObjectProperty<EventHandler<? super ContextMenuEvent>>
Node. onContextMenuRequestedProperty()
定义在Node
上请求上下文菜单时要调用的函数。ObjectProperty<EventHandler<? super ContextMenuEvent>>
Scene. onContextMenuRequestedProperty()
定义当这个Scene
点击(按下和释放)鼠标按钮时调用的功能。Method parameters in javafx.scene with type arguments of type ContextMenuEvent Modifier and Type 方法 描述 void
Node. setOnContextMenuRequested(EventHandler<? super ContextMenuEvent> value)
设置属性onContextMenuRequested的值。void
Scene. setOnContextMenuRequested(EventHandler<? super ContextMenuEvent> value)
设置属性onContextMenuRequested的值。 -
Uses of ContextMenuEvent in javafx.scene.input
Fields in javafx.scene.input with type parameters of type ContextMenuEvent Modifier and Type Field 描述 static EventType<ContextMenuEvent>
ContextMenuEvent. ANY
所有上下文菜单事件类型的常用超类型。static EventType<ContextMenuEvent>
ContextMenuEvent. CONTEXT_MENU_REQUESTED
当请求上下文菜单时,会发生此事件。Methods in javafx.scene.input that return ContextMenuEvent Modifier and Type 方法 描述 ContextMenuEvent
ContextMenuEvent. copyFor(Object newSource, EventTarget newTarget)
Methods in javafx.scene.input that return types with arguments of type ContextMenuEvent Modifier and Type 方法 描述 EventType<ContextMenuEvent>
ContextMenuEvent. getEventType()
Constructor parameters in javafx.scene.input with type arguments of type ContextMenuEvent 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事件。
-