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

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

Introduction

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

The text is from its open source code.

Constructor

Menu(String text)
Constructs a Menu and sets the display text with the specified text.
Menu()
Constructs a Menu with an empty string for its display text.

Method

ObservableListgetItems()
The items to show within this menu.
EventHandlergetOnHidden()
EventHandlergetOnShowing()
EventHandlergetOnShown()
voidhide()
Hides the ContextMenu if it was previously showing, and any showing submenus.
booleanisShowing()
voidsetDisable(boolean value)
voidsetMnemonicParsing(boolean value)
voidsetOnHidden(EventHandler value)
voidsetOnHiding(EventHandler value)
voidsetOnShowing(EventHandler value)
voidsetOnShown(EventHandler value)
voidshow()
If the Menu is not disabled and the ContextMenu is not already showing, then this will cause the ContextMenu to be shown.
ReadOnlyBooleanPropertyshowingProperty()
StringtoString()