Class ContextMenuEvent

java.lang.Object
All Implemented Interfaces:
Serializable, Cloneable

public class ContextMenuEvent extends InputEvent
When the user requests a context menu, this event occurs. Context menus can be triggered by the mouse or the keyboard. The exact sequence of mouse or keyboard events that is used to request a menu is platform specific. For example, on Windows, Shift+F10 requests a context menu.

The event coordinates contain default position for the context menu. For mouse-triggered events it is the position of the mouse cursor, for keyboard-triggered events it is a point inside of bounds of current focus owner (which is the event's target).

Since:
JavaFX 2.1
See Also: