- All Superinterfaces:
AttributeReadAttached
,AttributeReadEnabled
,AttributeReadId
,AttributeReadValid
,AttributeReadVisible
,AttributeWriteEnabled
,AttributeWriteId
,AttributeWriteReadOnly
,AttributeWriteTooltip
,AttributeWriteVisible
,io.github.mmm.event.EventSource<UiEvent,
,UiEventListener> UiAbstractMenu<UiAdvancedMenu>
,UiAbstractMenuBar<UiAdvancedMenu>
,UiComposite<UiAdvancedMenu>
,UiNativeWidget
,UiRemovableComposite<UiAdvancedMenu>
,UiWidget
UiAbstractMenuBar
representing a regular menu bar. It is contains
UiMenu
s that are displayed by their title in the menu bar. ATTENTION:
A
UiMenuBar
only exists once per application in the main window
and should only be accessed via
get()
. Never manually create UiMenuBar
via
UiWidgetFactoryNative.create(Class)
. This is only possible for modularity of the
UI implementations. Direct creation outside this framework is unspecified and behavior can change in future versions.- Since:
- 1.0.0
-
Method Summary
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadAttached
isAttached
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadId
getId
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteId
setId
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTooltip
getTooltip, setTooltip
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
Methods inherited from interface io.github.mmm.ui.api.widget.composite.UiComposite
getChild, getChild, getChildById, getChildCount, getChildIndex, getChildSibling, getChildSibling, getDescendant, getModificationTimestamp, getPropagation, isModified, isValid, reset, setFocused
Methods inherited from interface io.github.mmm.ui.api.widget.composite.UiRemovableComposite
removeChild, removeChild
Methods inherited from interface io.github.mmm.ui.api.widget.UiWidget
cast, dispose, getParent, getReadOnlyFixed, getStyles, isDisposed, isEnabled, isEnabled, isFocused, isReadOnly, isVisible, isVisible, setEnabled, setEnabled, setReadOnly, setReadOnlyFixed, setVisible, setVisible, validate, validate, validate, validateDown, validateUp
-
Method Details
-
addMenu
- Specified by:
addMenu
in interfaceUiAbstractMenu<UiAdvancedMenu>
- Parameters:
text
- the newlabel text
of theUiMenu
to create.- Returns:
- the
UiMenu
that has been created and added.
-
addMenu
- Specified by:
addMenu
in interfaceUiAbstractMenu<UiAdvancedMenu>
- Parameters:
text
- the newlabel text
of theUiMenu
to create.index
- is theindex
where to insert the newUiMenu
.- Returns:
- the
UiMenu
that has been created and added.
-
get
- Returns:
- the
UiMenuBar
of the main window.
-