public abstract class UiWidgetAdapterGwtMenuItemBase extends UiWidgetAdapterGwt<com.google.gwt.user.client.ui.MenuItem> implements AttributeWriteLabel
UiWidgetAdapter
using GWT based on MenuItem
.TAB_INDEX_NONE
PROPERTY_LABEL
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
ACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY
ATTRIBUTE_COLSPAN
Constructor and Description |
---|
UiWidgetAdapterGwtMenuItemBase()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
removeFromParent()
This method removes the
widget from its parent. |
void |
setEnabled(boolean enabled)
This method sets the
enabled status of this object. |
void |
setLabel(String label)
This method sets the
label of this object. |
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, createToplevelWidget, 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
getLabel
public UiWidgetAdapterGwtMenuItemBase()
public void setEnabled(boolean enabled)
enabled
status of this object. If it is disabled, the user can
not interact with the object.setEnabled
in interface AttributeWriteEnabled
enabled
- - if true
the object will be enabled, else the object will be disabled.public void setLabel(String label)
label
of this object.setLabel
in interface AttributeWriteLabel
label
- is the new label
to set.public void removeFromParent()
widget
from its parent. After this method, the
widget
is detached from the UI.removeFromParent
in interface UiWidgetAdapter
Copyright © 2001–2016 mmm-Team. All rights reserved.