WIDGET - is the generic type of AbstractUiWidgetAdapter.getToplevelWidget().public abstract class UiWidgetAdapterGwtWidgetActive<WIDGET extends com.google.gwt.user.client.ui.Widget> extends UiWidgetAdapterGwtWidget<WIDGET> implements UiWidgetAdapterActive, AttributeWriteKeyboardFilter
UiWidgetAdapterActive using GWT based on Widget.| Modifier and Type | Field and Description |
|---|---|
private KeyboardFilterAdapter |
keyboardFilterAdapter |
TAB_INDEX_NONEHTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_IDPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEWAI_ARIAACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEYPROPERTY_LABELATTRIBUTE_COLSPAN| Constructor and Description |
|---|
UiWidgetAdapterGwtWidgetActive()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyEventAdapterForClick(EventAdapterGwt adapter)
Applies for
EventType.CLICK events. |
protected void |
applyEventAdapterForFocus(EventAdapterGwt adapter)
Applies for
EventType.FOCUS_GAIN and
EventType.FOCUS_LOSS events. |
CharFilter |
getKeyboardFilter()
This method gets the keyboard-filter.
|
protected abstract com.google.gwt.user.client.ui.Focusable |
getWidgetAsFocusable() |
protected abstract com.google.gwt.event.dom.client.HasAllFocusHandlers |
getWidgetAsHasAllFocusHandlers() |
protected com.google.gwt.event.dom.client.HasBlurHandlers |
getWidgetAsHasBlurHandlers() |
protected com.google.gwt.event.dom.client.HasFocusHandlers |
getWidgetAsHasFocusHandlers() |
protected abstract com.google.gwt.event.dom.client.HasKeyPressHandlers |
getWidgetAsKeyPressHandlers() |
void |
setAccessKey(char accessKey)
This method sets the
accessKey attribute of this object. |
protected com.google.gwt.event.shared.HandlerRegistration |
setClickEventSender(com.google.gwt.event.dom.client.ClickHandler handler,
com.google.gwt.user.client.ui.Widget widget)
Registers the given
handler for click events. |
boolean |
setFocused()
This method sets the
focus to this object. |
void |
setKeyboardFilter(CharFilter keyboardFilter)
This method sets the
keyboard-filter. |
dispose, getActiveWidget, removeFromParentaddHandlerRegistration, addStyle, createAbsoluteImageUrl, createEventAdapter, getHeightInPixel, getImage, getImageParentElement, getLength, getSizeElement, getToplevelWidget, getToplevelWidget, getWidthInPixel, isStyleDeltaSupported, removeStyle, setAttribute, setId, setImage, setLength, setPrimaryStyle, setStyles, setTooltip, setVisibleapplyEventAdapter, applyEventAdapterForChange, applyEventAdapterForSelection, getEventAdapter, setEventSendercreateLabel, 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, setUiWidgetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateAbsoluteImageUrl, createLabel, getToplevelWidget, isStyleDeltaSupported, removeFromParent, setEventSender, setMode, setParent, setVisiblesetIdgetIdsetTooltipgetTooltipsetEnabledisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedsetLengthgetLengthgetHeightInPixel, getWidthInPixelgetAttributesetAttributeisFocusedgetAccessKeyprivate KeyboardFilterAdapter keyboardFilterAdapter
getKeyboardFilter()public UiWidgetAdapterGwtWidgetActive()
protected abstract com.google.gwt.user.client.ui.Focusable getWidgetAsFocusable()
widget as Focusable or null if NOT
supported.protected abstract com.google.gwt.event.dom.client.HasKeyPressHandlers getWidgetAsKeyPressHandlers()
widget as HasKeyPressHandlers or null if
NOT supported.protected abstract com.google.gwt.event.dom.client.HasAllFocusHandlers getWidgetAsHasAllFocusHandlers()
widget as HasAllFocusHandlers or null if
NOT supported.protected com.google.gwt.event.dom.client.HasFocusHandlers getWidgetAsHasFocusHandlers()
widget as HasFocusHandlers or null if NOT
supported.protected com.google.gwt.event.dom.client.HasBlurHandlers getWidgetAsHasBlurHandlers()
widget as HasBlurHandlers or null if NOT
supported.protected com.google.gwt.event.shared.HandlerRegistration setClickEventSender(com.google.gwt.event.dom.client.ClickHandler handler,
com.google.gwt.user.client.ui.Widget widget)
handler for click events.handler - is the ClickHandler to register.widget - is the Widget where to register the ClickHandler.HandlerRegistration.public final boolean setFocused()
focus to this object. setFocused in interface AttributeWriteOnlyFocusedtrue if the focus has been set successfully, false otherwise.protected void applyEventAdapterForClick(EventAdapterGwt adapter)
EventType.CLICK events.applyEventAdapterForClick in class AbstractUiWidgetAdapterWithEvents<WIDGET extends com.google.gwt.user.client.ui.Widget,EventAdapterGwt>adapter - is the event adapter.protected void applyEventAdapterForFocus(EventAdapterGwt adapter)
EventType.FOCUS_GAIN and
EventType.FOCUS_LOSS events.applyEventAdapterForFocus in class AbstractUiWidgetAdapterWithEvents<WIDGET extends com.google.gwt.user.client.ui.Widget,EventAdapterGwt>adapter - is the event adapter.public final CharFilter getKeyboardFilter()
accepted
by filter can be entered into the according UI field.getKeyboardFilter in interface AttributeReadKeyboardFilternull if not set.public final void setKeyboardFilter(CharFilter keyboardFilter)
keyboard-filter. Typically such filter is only set once
(e.g. to build custom datatype fields based on generic text input widgets) and then never changed. setKeyboardFilter in interface AttributeWriteKeyboardFilterkeyboardFilter - is the keyboard filter to set. An existing filter will be replaced. May be
null to remove an existing filter.public void setAccessKey(char accessKey)
accessKey attribute of this object.setAccessKey in interface AttributeWriteAccessKeyaccessKey - is the new value of AttributeReadAccessKey.getAccessKey(). Use AttributeReadAccessKey.ACCESS_KEY_NONE to unset.Copyright © 2001–2016 mmm-Team. All rights reserved.