Example usage for Java javafx.scene.control ContextMenu fields, constructors, methods, implement or subclass
The text is from its open source code.
ContextMenu() Create a new ContextMenu | |
ContextMenu(MenuItem... items) Create a new ContextMenu initialized with the given items |
ObservableList | getItems() The menu items on the context menu. |
EventHandler | getOnAction() |
double | getX() |
double | getY() |
void | hide() Hides this ContextMenu and any visible submenus, assuming that when this function is called that the ContextMenu was showing. |
boolean | isShowing() |
ObjectProperty | onActionProperty() |
void | setAutoHide(boolean value) |
void | setHideOnEscape(boolean value) |
void | setId(String value) Sets the id of this PopupControl . |
void | setOnAction(EventHandler |
void | setOnShowing(EventHandler |
void | setOnShown(EventHandler |
void | show(Node anchor, double screenX, double screenY) Shows the ContextMenu at the specified screen coordinates. |
void | show(Node anchor, Side side, double dx, double dy) Shows the ContextMenu relative to the given anchor node, on the side specified by the hpos and vpos parameters, and offset by the given dx and dy values for the x-axis and y-axis, respectively. |
void | show(Window owner) Show the popup. |