Module io.github.mmm.ui.api.menu
Package io.github.mmm.ui.api.widget.menu
Interface UiAbstractMenuWithItems
- All Superinterfaces:
AttributeReadAttached
,AttributeReadEnabled
,AttributeReadId
,AttributeReadValid
,AttributeReadVisible
,AttributeWriteEnabled
,AttributeWriteId
,AttributeWriteReadOnly
,AttributeWriteTooltip
,AttributeWriteVisible
,io.github.mmm.event.EventSource<UiEvent,
,UiEventListener> UiAbstractMenu<UiAbstractMenuEntry>
,UiComposite<UiAbstractMenuEntry>
,UiRemovableComposite<UiAbstractMenuEntry>
,UiWidget
- All Known Subinterfaces:
UiAdvancedMenu
,UiMenu
,UiNavigationBar
- Since:
- 1.0.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault UiMenuItem
default UiMenuItem
default UiMenuItem
addItem
(String text, UiClickEventListener listener) addItem
(String text, UiClickEventListener listener, int index) default UiMenuItemSeparator
addSeparator
(int index) 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.menu.UiAbstractMenu
addMenu, addMenu
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
-
addItem
- Parameters:
text
- the newlabel text
of theUiMenuItem
to create.listener
- theUiClickEventListener
to listen forUiClickEvent
s.- Returns:
- the created and added
UiMenuItem
.
-
addItem
- Parameters:
text
- the newlabel text
of theUiMenuItem
to create.listener
- theUiClickEventListener
to listen forUiClickEvent
s.index
- is theinvalid reference
index
UiMenuItem
.- Returns:
- the created and added
UiMenuItem
.
-
addItem
- Parameters:
action
- theUiAction
to bind.- Returns:
- the created and added
UiMenuItem
.
-
addItem
- Parameters:
action
- theUiAction
to bind.index
- is theinvalid reference
index
UiMenuItem
.- Returns:
- the created and added
UiMenuItem
.
-
addSeparator
- Returns:
- the
UiMenuItemSeparator
that has been created and added to this menu.
-
addSeparator
- Parameters:
index
- is theinvalid reference
index
UiMenuItemSeparator
.- Returns:
- the
UiMenuItemSeparator
that has been created and added to this menu.
-