public interface UiWidgetMenu extends UiWidgetDynamicComposite<UiWidgetMenuItem>, UiWidgetMenuItem, AttributeWriteLabel, UiWidgetNative
dynamic composite widget
that represents a
menu. A menu is something that is displayed by its label
and opens a list of
menu items
if it is clicked. The user can click on one of these
menu items
to execute a specific functionality. UiWidgetMenu
is also a UiWidgetMenuItem
so you can add it to another menu as a
sub menu.STYLE_HEADER
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
PROPERTY_LABEL
Modifier and Type | Method and Description |
---|---|
void |
addChild(UiWidgetMenuItem child)
This method adds the given
child to the end of the child-list . |
void |
addSeparator()
|
UiWidgetMenu |
addSubmenu(String label)
|
addChild
removeChild, removeChild
getChild, getChild
getChildCount, getChildIndex
getContext, getParent, getSize
clearMessages
addEventHandler, removeEventHandler
setMode
getMode
setModeFixed
getModeFixed
setId
getId
setTooltip
getTooltip
getVisibleFlag, isVisible, setVisible, setVisible
isVisibleRecursive
setEnabled
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
isModified
getAriaRole
validate
setLabel
getLabel
void addChild(UiWidgetMenuItem child)
child
to the end of the child-list
. For
vertical layouts this will be the bottom and for horizontal layouts this will be the right.addChild
in interface UiWidgetDynamicComposite<UiWidgetMenuItem>
child
- is the UiWidget
to add as child of this composite.List.add(Object)
void addSeparator()
UiWidgetMenu addSubmenu(String label)
label
- is the label
of the sub-menu.Copyright © 2001–2016 mmm-Team. All rights reserved.