Package | Description |
---|---|
com.sun.javafx.scene | |
com.sun.javafx.scene.control.behavior | |
javafx.scene |
Provides the core set of base
classes for the JavaFX Scene Graph API.
|
javafx.scene.input |
Provides the set of classes for mouse and keyboard input event handling.
|
Modifier and Type | Method and Description |
---|---|
EventHandler<? super ContextMenuEvent> |
EventHandlerProperties.onContextMenuRequested() |
ObjectProperty<EventHandler<? super ContextMenuEvent>> |
EventHandlerProperties.onContextMenuRequestedProperty() |
Modifier and Type | Method and Description |
---|---|
void |
TextFieldBehavior.contextMenuRequested(ContextMenuEvent e) |
void |
TextAreaBehavior.contextMenuRequested(ContextMenuEvent e) |
void |
BehaviorBase.contextMenuRequested(ContextMenuEvent e)
Invoked by a Skin when the control has had its context menu requested,
most commonly by right-clicking on the control.
|
Modifier and Type | Method and Description |
---|---|
EventHandler<? super ContextMenuEvent> |
Scene.getOnContextMenuRequested() |
EventHandler<? super ContextMenuEvent> |
Node.getOnContextMenuRequested() |
ObjectProperty<EventHandler<? super ContextMenuEvent>> |
Scene.onContextMenuRequestedProperty() |
ObjectProperty<EventHandler<? super ContextMenuEvent>> |
Node.onContextMenuRequestedProperty()
Defines a function to be called when a context menu
has been requested on this
Node . |
Modifier and Type | Method and Description |
---|---|
B |
SceneBuilder.onContextMenuRequested(EventHandler<? super ContextMenuEvent> x)
Deprecated.
Set the value of the
onContextMenuRequested property for the instance constructed by this builder. |
B |
NodeBuilder.onContextMenuRequested(EventHandler<? super ContextMenuEvent> x)
Deprecated.
Set the value of the
onContextMenuRequested property for the instance constructed by this builder. |
void |
Scene.setOnContextMenuRequested(EventHandler<? super ContextMenuEvent> value) |
void |
Node.setOnContextMenuRequested(EventHandler<? super ContextMenuEvent> value) |
Modifier and Type | Field and Description |
---|---|
static EventType<ContextMenuEvent> |
ContextMenuEvent.ANY
Common supertype for all context menu event types.
|
static EventType<ContextMenuEvent> |
ContextMenuEvent.CONTEXT_MENU_REQUESTED
This event occurs when a context menu is requested.
|
Modifier and Type | Method and Description |
---|---|
ContextMenuEvent |
ContextMenuEvent.copyFor(Object newSource,
EventTarget newTarget) |
Modifier and Type | Method and Description |
---|---|
EventType<ContextMenuEvent> |
ContextMenuEvent.getEventType() |
Constructor and Description |
---|
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.
|
ContextMenuEvent(Object source,
EventTarget target,
EventType<ContextMenuEvent> eventType,
double x,
double y,
double screenX,
double screenY,
boolean keyboardTrigger,
PickResult pickResult)
Constructs new ContextMenu event.
|
Copyright © 2020. All rights reserved.