Package | Description |
---|---|
com.sun.javafx.scene | |
com.sun.javafx.scene.control.behavior | |
com.sun.javafx.scene.control.skin | |
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.
|
Modifier and Type | Field and Description |
---|---|
private EventHandlerProperties.EventHandlerProperty<ContextMenuEvent> |
EventHandlerProperties.onMenuContextRequested |
Modifier and Type | Method and Description |
---|---|
EventHandler<? super ContextMenuEvent> |
EventHandlerProperties.onContextMenuRequested() |
ObjectProperty<EventHandler<? super ContextMenuEvent>> |
EventHandlerProperties.onContextMenuRequestedProperty() |
Modifier and Type | Method and Description |
---|---|
void |
TextAreaBehavior.contextMenuRequested(ContextMenuEvent e) |
void |
TextFieldBehavior.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 | Field and Description |
---|---|
private EventHandler<ContextMenuEvent> |
BehaviorSkinBase.contextMenuHandler |
private static EventHandler<ContextMenuEvent> |
TableColumnHeader.contextMenuRequestedHandler |
Modifier and Type | Field and Description |
---|---|
private EventHandler<? super ContextMenuEvent> |
NodeBuilder.onContextMenuRequested
Deprecated.
|
private EventHandler<? super ContextMenuEvent> |
SceneBuilder.onContextMenuRequested
Deprecated.
|
private ObjectProperty<EventHandler<? super ContextMenuEvent>> |
Scene.onContextMenuRequested
Defines a function to be called when a mouse button has been clicked
(pressed and released) on this
Scene . |
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 |
NodeBuilder.onContextMenuRequested(EventHandler<? super ContextMenuEvent> x)
Deprecated.
Set the value of the
onContextMenuRequested property for the instance constructed by this builder. |
B |
SceneBuilder.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 |
---|---|
private static EventHandler<ContextMenuEvent> |
Control.contextMenuHandler
Handles context menu requests by popping up the menu.
|
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(java.lang.Object newSource,
EventTarget newTarget) |
Modifier and Type | Method and Description |
---|---|
EventType<ContextMenuEvent> |
ContextMenuEvent.getEventType() |
Modifier and Type | Method and Description |
---|---|
private void |
ContextMenuEvent.recomputeCoordinatesToSource(ContextMenuEvent newEvent,
java.lang.Object newSource)
Fills the given event by this event's coordinates recomputed to the given
source object
|
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(java.lang.Object source,
EventTarget target,
EventType<ContextMenuEvent> eventType,
double x,
double y,
double screenX,
double screenY,
boolean keyboardTrigger,
PickResult pickResult)
Constructs new ContextMenu event.
|