MenuBar
type (joe.win
)
Extends: Control
The MenuBar
type is the base class for JavaFX
labels like MenuBar
widgets.
- menuBar.menu(menu) → this
- menuBar.menus() → joe.List
Control Methods
- control.tooltip(tooltip) → this
- control.tooltipText(text) → this
Region Methods
- region.height(height) → this
- region.padding(pixels) → this
- region.padding(top, right, bottom, left) → this
- region.prefHeight(height) → this
- region.prefWidth(width) → this
- region.width(width) → this
Node Methods
- node.disable([flag]) → this
- node.getProperty(keyword) → value
- node.gridColumn(index) → this
- node.gridColumnSpan(span) → this
- node.gridHalignment(hpos) → this
- node.gridHgrow([priority]) → this
- node.gridMargin(insets) → this
- node.gridRow(index) → this
- node.gridRowSpan(span) → this
- node.gridValignment(vpos) → this
- node.gridVgrow([priority]) → this
- node.hgrow([priority]) → this
- node.id(id) → this
- node.isDisabled() → joe.Boolean
- node.listenTo(keyword, listener) → this
- node.properties() → joe.Set
- node.setProperty(keyword, value) → this
- node.splitResizeWithParent(flag) → this
- node.styleClasses() → joe.List
- node.styles(style, ...) → this
- node.toString() → joe.String
- node.vgrow([priority]) → this
Properties
MenuBar
widgets have the following properties, in addition to
those inherited from superclasses.
Property | Type | Description |
---|---|---|
#useSystemMenuBar | Boolean | Use system menu bar. |
MenuBar Initializer
MenuBar([text]) → MenuBar
Returns a MenuBar
.
Methods
menuBar.menu()
menuBar.menu(menu) → this
Adds a Menu
to the menu bar.
menuBar.menus()
menuBar.menus() → joe.List
Gets the list of the menu bar's menus, which can be updated freely.
All items must be instances of Menu
.