ADAPTER - is the generic type of AbstractUiWidgetNative.getWidgetAdapter().CHILD - is the generic type of the children.public abstract class AbstractUiWidgetComposite<ADAPTER extends UiWidgetAdapter,CHILD extends UiWidget> extends AbstractUiWidgetNative<ADAPTER,Void> implements UiWidgetComposite<CHILD>
UiWidgetComposite.AbstractUiWidgetNative.SizeImplAbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainerSTYLE_HEADERHTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_IDPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEWAI_ARIA| Constructor and Description |
|---|
AbstractUiWidgetComposite(UiContext context,
ADAPTER widgetAdapter)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
abstract CHILD |
getChild(int index)
This method gets the child at the given index.
|
CHILD |
getChild(String id)
This method gets the child with the given
id. |
abstract int |
getChildIndex(UiWidget child)
This method determines the index of the given
child in the list of children of this composite. |
addChangeHandler, addStyle, clearMessages, clearValidity, createSize, createUniqueId, createWidgetAdapter, dispose, doGetValue, doSetMode, doSetValue, doValidate, getAriaRole, getAriaRoleFixedType, getChildCount, getId, getIndexOfStyle, getMode, getModeFixed, getParent, getPrimaryStyle, getSize, getStyles, getTooltip, getVisibleFlag, getWidgetAdapter, getWidgetAdapter, hasStyle, hasWidgetAdapter, initializeWidgetAdapter, isDisposed, isEnabled, isModifiedRecursive, isVisible, isVisibleRecursive, removeChangeHandler, removeFromParent, removeStyle, setAriaRole, setEnabled, setFocused, setId, setIdPrefix, setMode, setMode, setModeFixed, setModeRecursive, setParent, setPrimaryStyle, setStyles, setTooltip, setVisible, setVisible, toString, validateRecursive, visibilityChangedaddEventHandler, addValidator, clearMessagesLocal, clearValidationFailure, convertValueToString, fireEvent, fireValueChange, getBasicUtil, getContext, getDataBinding, getDataBinding, getDataBindingForWidget, getEventSender, getFactory, getLogger, getObserverSource, getOriginalValue, getRecentValue, getSource, getValueClass, getValueDirect, getValueOrException, getWidgetAdapter, hasEventSender, isMandatory, isModified, removeEventHandler, removeFromParent, removeValidator, setMandatory, setModified, setParent, setValueaddValidatorMandatory, createValidationFailure, getValue, getValueAndValidate, handleGetValueError, resetValue, setValue, setValueForUser, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildCountgetContext, getParent, getSizeclearMessagesaddEventHandler, removeEventHandlersetModegetModesetModeFixedgetModeFixedsetIdgetIdsetTooltipgetTooltipgetVisibleFlag, isVisible, setVisible, setVisibleisVisibleRecursivesetEnabledisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedisModifiedgetAriaRolevalidateresetValue, setValue, setValueForUsergetValuepublic AbstractUiWidgetComposite(UiContext context, ADAPTER widgetAdapter)
context - is the context.widgetAdapter - is the widget adapter. Typically null for
lazy initialization.public CHILD getChild(String id)
id.getChild in interface UiWidgetAbstractCompositegetChild in interface UiWidgetComposite<CHILD extends UiWidget>getChild in class AbstractUiWidgetNative<ADAPTER extends UiWidgetAdapter,Void>id - is the ID of the requested child.child with the given id or null if no such
child exists.public abstract CHILD getChild(int index)
getChild in interface UiWidgetAbstractCompositegetChild in interface UiWidgetComposite<CHILD extends UiWidget>getChild in class AbstractUiWidgetNative<ADAPTER extends UiWidgetAdapter,Void>index - is the index of the requested child. Has to be in the range from 0 to
UiWidgetAbstractComposite.getChildCount() - 1.List.get(int)public abstract int getChildIndex(UiWidget child)
child in the list of children of this composite. getChildIndex in interface UiWidgetAbstractCompositegetChildIndex in class AbstractUiWidgetNative<ADAPTER extends UiWidgetAdapter,Void>child - is the potential child.index of the given child or -1 if it is NOT
a child of this composite.List.indexOf(Object)Copyright © 2001–2016 mmm-Team. All rights reserved.