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 UiMenuItemdefault UiMenuItemdefault UiMenuItemaddItem(String text, UiClickEventListener listener) addItem(String text, UiClickEventListener listener, int index) default UiMenuItemSeparatoraddSeparator(int index) 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.menu.UiAbstractMenu
addMenu, addMenuMethods 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
-
addItem
- Parameters:
text- the newlabel textof theUiMenuItemto create.listener- theUiClickEventListenerto listen forUiClickEvents.- Returns:
- the created and added
UiMenuItem.
-
addItem
- Parameters:
text- the newlabel textof theUiMenuItemto create.listener- theUiClickEventListenerto listen forUiClickEvents.index- is theindexwhere to insert the newUiMenuItem.- Returns:
- the created and added
UiMenuItem.
-
addItem
- Parameters:
action- theUiActionto bind.index- is theindexwhere to insert the newUiMenuItem.- Returns:
- the created and added
UiMenuItem.
-
addItem
- Parameters:
action- theUiActionto bind.index- is theindexwhere to insert the newUiMenuItem.- Returns:
- the created and added
UiMenuItem.
-
addSeparator
- Returns:
- the
UiMenuItemSeparatorthat has been created and added to this menu.
-
addSeparator
- Parameters:
index- is theindexwhere to insert the newUiMenuItemSeparator.- Returns:
- the
UiMenuItemSeparatorthat has been created and added to this menu.
-