- All Superinterfaces:
AttributeReadAttached
,AttributeReadEnabled
,AttributeReadId
,AttributeReadText
,AttributeReadValid
,AttributeReadVisible
,AttributeWriteEnabled
,AttributeWriteId
,AttributeWriteReadOnly
,AttributeWriteText
,AttributeWriteTooltip
,AttributeWriteVisible
,io.github.mmm.event.EventSource<UiEvent,
,UiEventListener> UiAbstractMenu<UiAbstractMenuEntry>
,UiAbstractMenuEntry
,UiAbstractMenuWithItems
,UiComposite<UiAbstractMenuEntry>
,UiMenu
,UiRemovableComposite<UiAbstractMenuEntry>
,UiWidget
- Since:
- 1.0.0
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault UiMenuItemCheckbox
addCheckbox
(String text, UiClickEventListener listener) addCheckbox
(String text, UiClickEventListener listener, int index) default UiAdvancedMenu
default UiMenuItemRadioButton
addRadioButton
(String text, UiClickEventListener listener) addRadioButton
(String text, UiClickEventListener listener, 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.AttributeReadText
getText
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteId
setId
Methods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteText
setText
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.UiAbstractMenuWithItems
addItem, addItem, addItem, addItem, addSeparator, addSeparator
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
-
addMenu
- Specified by:
addMenu
in interfaceUiAbstractMenu<UiAbstractMenuEntry>
- Parameters:
text
- the newlabel text
of theUiMenu
to create.- Returns:
- the
UiMenu
that has been created and added.
-
addMenu
- Specified by:
addMenu
in interfaceUiAbstractMenu<UiAbstractMenuEntry>
- 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.
-
addCheckbox
- Parameters:
text
- the newlabel text
of theUiMenuItemCheckbox
to create.listener
- theUiClickEventListener
to listen forUiClickEvent
s.- Returns:
- the created and added
UiMenuItemCheckbox
.
-
addCheckbox
- Parameters:
text
- the newlabel text
of theUiMenuItemCheckbox
to create.listener
- theUiClickEventListener
to listen forUiClickEvent
s.index
- is theinvalid reference
index
UiMenuItemCheckbox
.- Returns:
- the created and added
UiMenuItemCheckbox
.
-
addRadioButton
- Parameters:
text
- the newlabel text
of theUiMenuItemRadioButton
to create.listener
- theUiClickEventListener
to listen forUiClickEvent
s.- Returns:
- the created and added
UiMenuItemRadioButton
.
-
addRadioButton
- Parameters:
text
- the newlabel text
of theUiMenuItemRadioButton
to create.listener
- theUiClickEventListener
to listen forUiClickEvent
s.index
- is theinvalid reference
index
UiMenuItemRadioButton
.- Returns:
- the created and added
UiMenuItemRadioButton
.
-