-
- 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
public interface UiMenuBar extends UiAbstractMenuBar<UiAdvancedMenu>, UiNativeWidget
UiAbstractMenuBar
representing a regular menu bar. It iscontains
UiMenu
s that are displayed by their title in the menu bar.
ATTENTION:
AUiMenuBar
only exists once per application in themain window
and should only be accessed viaget()
. Never manually createUiMenuBar
viaUiWidgetFactoryNative.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
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default UiAdvancedMenu
addMenu(String text)
UiAdvancedMenu
addMenu(String text, int index)
static UiMenuBar
get()
-
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 Detail
-
addMenu
default UiAdvancedMenu addMenu(String text)
- 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
UiAdvancedMenu addMenu(String text, int index)
- 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.
-
-