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.SizeImpl
AbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer
STYLE_HEADER
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_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, visibilityChanged
addEventHandler, 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, setValue
addValidatorMandatory, createValidationFailure, getValue, getValueAndValidate, handleGetValueError, resetValue, setValue, setValueForUser, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChildCount
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
resetValue, setValue, setValueForUser
getValue
public 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 UiWidgetAbstractComposite
getChild
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 UiWidgetAbstractComposite
getChild
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 UiWidgetAbstractComposite
getChildIndex
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.