Uses of Class
javafx.scene.control.MenuItem
-
Packages that use MenuItem Package Description 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. -
-
Uses of MenuItem in javafx.scene.control
Subclasses of MenuItem in javafx.scene.control Modifier and Type Class Description class
CheckMenuItem
AMenuItem
that can be toggled between selected and unselected states.class
CustomMenuItem
class
Menu
A popup menu of actionable items which is displayed to the user only upon request.class
RadioMenuItem
class
SeparatorMenuItem
AMenuItem
that as the name suggests allows for a horizontal Separator to be embedded within it, by assigning aSeparator
to thecontent
property of theCustomMenuItem
This is provided for convenience as groups ofmenuitems
can be separated by a separator.Methods in javafx.scene.control that return types with arguments of type MenuItem Modifier and Type Method Description ObservableList<MenuItem>
ContextMenu. getItems()
The menu items on the context menu.ObservableList<MenuItem>
Menu. getItems()
The items to show within this menu.ObservableList<MenuItem>
MenuButton. getItems()
The items to show within this buttons menu.Constructors in javafx.scene.control with parameters of type MenuItem Constructor Description ContextMenu(MenuItem... items)
Create a new ContextMenu initialized with the given itemsMenu(String text, Node graphic, MenuItem... items)
MenuButton(String text, Node graphic, MenuItem... items)
Creates a new menu button with the given text and graphic to display on the button, and inserts the given items into theitems
list.SplitMenuButton(MenuItem... items)
Creates a new split menu button with the given list of menu items.
-