public interface UiWidgetMenuBar extends UiWidgetDynamicComposite<UiWidgetMenu>, UiWidgetRegularComposite<UiWidgetMenu>, UiWidgetNative
composite widget
that represents a
menu bar. It is contains
menus
that are displayed by
their title in the menu bar. UiWidgetMenuBar
should typically be created via
UiWidgetMainWindow.getMenuBar()
. For portability and
usability you should avoid creating it manually via UiContext
. However, if
you are using GWT with GWTP it might make sense to do so.STYLE_HEADER
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
Modifier and Type | Method and Description |
---|---|
void |
addChild(UiWidgetMenu child)
This method adds the given
child to the end of the child-list . |
UiWidgetMenu |
addMenu(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
UiWidgetMenu addMenu(String label)
label
- is the label
of the menu.void addChild(UiWidgetMenu 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<UiWidgetMenu>
child
- is the UiWidget
to add as child of this composite.List.add(Object)
Copyright © 2001–2016 mmm-Team. All rights reserved.