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
public interface UiAbstractMenuWithItems extends UiAbstractMenu<UiAbstractMenuEntry>
- Since:
- 1.0.0
- See Also:
addItem(String, UiClickEventListener, int)
,addSeparator(int)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default UiMenuItem
addItem(UiAction action)
default UiMenuItem
addItem(UiAction action, int index)
default UiMenuItem
addItem(String text, UiClickEventListener listener)
UiMenuItem
addItem(String text, UiClickEventListener listener, int index)
default UiMenuItemSeparator
addSeparator()
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 Detail
-
addItem
default UiMenuItem addItem(String text, UiClickEventListener listener)
- Parameters:
text
- the newlabel text
of theUiMenuItem
to create.listener
- theUiClickEventListener
to listen forUiClickEvent
s.- Returns:
- the created and added
UiMenuItem
.
-
addItem
UiMenuItem addItem(String text, UiClickEventListener listener, int index)
- Parameters:
text
- the newlabel text
of theUiMenuItem
to create.listener
- theUiClickEventListener
to listen forUiClickEvent
s.index
- is theindex
where to insert the newUiMenuItem
.- Returns:
- the created and added
UiMenuItem
.
-
addItem
default UiMenuItem addItem(UiAction action)
- Parameters:
action
- theUiAction
to bind.index
- is theindex
where to insert the newUiMenuItem
.- Returns:
- the created and added
UiMenuItem
.
-
addItem
default UiMenuItem addItem(UiAction action, int index)
- Parameters:
action
- theUiAction
to bind.index
- is theindex
where to insert the newUiMenuItem
.- Returns:
- the created and added
UiMenuItem
.
-
addSeparator
default UiMenuItemSeparator addSeparator()
- Returns:
- the
UiMenuItemSeparator
that has been created and added to this menu.
-
addSeparator
UiMenuItemSeparator addSeparator(int index)
- Parameters:
index
- is theindex
where to insert the newUiMenuItemSeparator
.- Returns:
- the
UiMenuItemSeparator
that has been created and added to this menu.
-
-