Package | Description |
---|---|
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> |
Node.getOnContextMenuRequested()
Gets the value of the property onContextMenuRequested.
|
EventHandler<? super ContextMenuEvent> |
Scene.getOnContextMenuRequested()
Gets the value of the property onContextMenuRequested.
|
ObjectProperty<EventHandler<? super ContextMenuEvent>> |
Node.onContextMenuRequestedProperty()
Defines a function to be called when a context menu
has been requested on this
Node . |
ObjectProperty<EventHandler<? super ContextMenuEvent>> |
Scene.onContextMenuRequestedProperty()
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 |
---|---|
void |
Node.setOnContextMenuRequested(EventHandler<? super ContextMenuEvent> value)
Sets the value of the property onContextMenuRequested.
|
void |
Scene.setOnContextMenuRequested(EventHandler<? super ContextMenuEvent> value)
Sets the value of the property onContextMenuRequested.
|
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.
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.