- 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
UiMenus 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
isAttachedMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadId
getIdMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteId
setIdMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTooltip
getTooltip, setTooltipMethods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListenerMethods inherited from interface io.github.mmm.ui.api.widget.composite.UiComposite
getChild, getChild, getChildById, getChildCount, getChildIndex, getChildSibling, getChildSibling, getDescendant, getModificationTimestamp, getPropagation, isModified, isValid, reset, setFocusedMethods inherited from interface io.github.mmm.ui.api.widget.composite.UiRemovableComposite
removeChild, removeChildMethods 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:
addMenuin interfaceUiAbstractMenu<UiAdvancedMenu>- Parameters:
text- the newlabel textof theUiMenuto create.- Returns:
- the
UiMenuthat has been created and added.
-
addMenu
- Specified by:
addMenuin interfaceUiAbstractMenu<UiAdvancedMenu>- Parameters:
text- the newlabel textof theUiMenuto create.index- is theindexwhere to insert the newUiMenu.- Returns:
- the
UiMenuthat has been created and added.
-
get
- Returns:
- the
UiMenuBarof the main window.
-