Uses of Class
javafx.scene.control.MenuItem
Packages that use MenuItem
Package
Description
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.controlModifier and TypeClassDescriptionclassAMenuItemthat can be toggled between selected and unselected states.classclassA popup menu of actionable items which is displayed to the user only upon request.classclassAMenuItemthat as the name suggests allows for a horizontal Separator to be embedded within it, by assigning aSeparatorto thecontentproperty of theCustomMenuItemThis is provided for convenience as groups ofmenuitemscan be separated by a separator.Methods in javafx.scene.control that return types with arguments of type MenuItemModifier and TypeMethodDescriptionfinal ObservableList<MenuItem> ContextMenu.getItems()The menu items on the context menu.final ObservableList<MenuItem> Menu.getItems()The items to show within this menu.final ObservableList<MenuItem> MenuButton.getItems()The items to show within this buttons menu.Constructors in javafx.scene.control with parameters of type MenuItemModifierConstructorDescriptionContextMenu(MenuItem... items) Create a new ContextMenu initialized with the given itemsMenuButton(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 theitemslist.SplitMenuButton(MenuItem... items) Creates a new split menu button with the given list of menu items.