Default skin implementation for the MenuBar control. In essence it is
a simple toolbar. For the time being there is no overflow behavior and we just
hide nodes which fall outside the bounds.
Creates a new MenuBarSkin instance, installing the necessary child
nodes into the Control children list, as
well as the necessary input mappings for handling key, mouse, etc events.
Creates a new MenuBarSkin instance, installing the necessary child
nodes into the Control children list, as
well as the necessary input mappings for handling key, mouse, etc events.
Parameters:
control - The control that this skin should be installed onto.
Method Details
setDefaultSystemMenuBar
public staticvoidsetDefaultSystemMenuBar(MenuBar menuBar)
Set the default system menu bar. This allows an application to keep menu
in the system menu bar after the last Window is closed.
Parameters:
menuBar - the menu bar
setSpacing
public finalvoidsetSpacing(double value)
Sets the value of the spacing property.
Property description:
Specifies the spacing between menu buttons on the MenuBar.