Java javafx.scene.control ContextMenu fields, constructors, methods, implement or subclass

Example usage for Java javafx.scene.control ContextMenu fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javafx.scene.control ContextMenu.

The text is from its open source code.

Constructor

ContextMenu()
Create a new ContextMenu
ContextMenu(MenuItem... items)
Create a new ContextMenu initialized with the given items

Method

ObservableListgetItems()
The menu items on the context menu.
EventHandlergetOnAction()
doublegetX()
doublegetY()
voidhide()
Hides this ContextMenu and any visible submenus, assuming that when this function is called that the ContextMenu was showing.
booleanisShowing()
ObjectProperty>onActionProperty()
voidsetAutoHide(boolean value)
voidsetHideOnEscape(boolean value)
voidsetId(String value)
Sets the id of this PopupControl .
voidsetOnAction(EventHandler value)
voidsetOnShowing(EventHandler value)
voidsetOnShown(EventHandler value)
voidshow(Node anchor, double screenX, double screenY)
Shows the ContextMenu at the specified screen coordinates.
voidshow(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.
voidshow(Window owner)
Show the popup.