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_HEADERHTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_IDPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEWAI_ARIAPROPERTY_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)
|
addChildremoveChild, removeChildgetChild, getChildgetChildCount, getChildIndexgetContext, getParent, getSizeclearMessagesaddEventHandler, removeEventHandlersetModegetModesetModeFixedgetModeFixedsetIdgetIdsetTooltipgetTooltipgetVisibleFlag, isVisible, setVisible, setVisibleisVisibleRecursivesetEnabledisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedisModifiedgetAriaRolevalidatesetLabelgetLabelvoid 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.