public class UiWidgetAdapterGwtMenu extends UiWidgetAdapterGwtMenuItemBase implements UiWidgetAdapterMenu
Modifier and Type | Field and Description |
---|---|
private com.google.gwt.user.client.ui.MenuBar |
menuBar
The
MenuBar . |
TAB_INDEX_NONE
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
PROPERTY_LABEL
ACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY
ATTRIBUTE_COLSPAN
Constructor and Description |
---|
UiWidgetAdapterGwtMenu()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(UiWidgetMenuItem child,
int index)
This method adds the given
child at the given index . |
protected com.google.gwt.user.client.ui.MenuItem |
createToplevelWidget()
This method creates the
underlying widget . |
void |
removeChild(UiWidgetMenuItem child,
int index)
This method removes the given
child from the widget . |
removeFromParent, setEnabled, setLabel
addHandlerRegistration, addStyle, createAbsoluteImageUrl, createEventAdapter, dispose, getActiveWidget, getHeightInPixel, getImage, getImageParentElement, getLength, getSizeElement, getToplevelWidget, getToplevelWidget, getWidthInPixel, isStyleDeltaSupported, removeStyle, setAttribute, setId, setImage, setLength, setPrimaryStyle, setStyles, setTooltip, setVisible
applyEventAdapter, applyEventAdapterForChange, applyEventAdapterForClick, applyEventAdapterForFocus, applyEventAdapterForSelection, getEventAdapter, setEventSender
createLabel, getAccessKey, getAltText, getAttribute, getBundle, getColumnSpan, getContext, getHeightInRows, getId, getLabel, getMaximumTextLength, getPrimaryStyle, getSelectionMode, getStyles, getTitle, getTooltip, getToplevelWidget, getUiWidget, getUiWidgetTyped, getUrl, getValidationFailure, hasStyle, isDisposed, isEnabled, isFocused, isResizable, setMode, setParent, setUiWidget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAbsoluteImageUrl, createLabel, getToplevelWidget, isStyleDeltaSupported, removeFromParent, setEventSender, setMode, setParent, setVisible
setId
getId
setTooltip
getTooltip
setEnabled
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
setLength
getLength
getHeightInPixel, getWidthInPixel
getAttribute
setAttribute
setLabel
getLabel
protected com.google.gwt.user.client.ui.MenuItem createToplevelWidget()
underlying widget
. createToplevelWidget
in class AbstractUiWidgetAdapter<com.google.gwt.user.client.ui.MenuItem>
underlying widget
.public void addChild(UiWidgetMenuItem child, int index)
child
at the given index
.addChild
in interface UiWidgetAdapterDynamicComposite<UiWidgetMenuItem>
child
- is the UiWidget
to add as child of this panel.index
- -1
to add the child
at the end, otherwise the index where to
insert the given child
.UiWidgetDynamicComposite.addChild(UiWidget, int)
,
List.add(int, Object)
public void removeChild(UiWidgetMenuItem child, int index)
child
from the widget
.removeChild
in interface UiWidgetAdapterDynamicComposite<UiWidgetMenuItem>
child
- is the child to remove.index
- is the index of the child to remove.Copyright © 2001–2016 mmm-Team. All rights reserved.