ADAPTER - is the generic type of AbstractUiWidgetNative.getWidgetAdapter().CHILD - is the generic type of the children.public abstract class AbstractUiWidgetSwitchComposite<ADAPTER extends UiWidgetAdapterSwitchComposite<CHILD>,CHILD extends UiWidget> extends AbstractUiWidgetDynamicComposite<ADAPTER,CHILD> implements UiWidgetSwitchComposite<CHILD>
UiWidgetSwitchComposite.AbstractUiWidgetNative.SizeImplAbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer| Modifier and Type | Field and Description |
|---|---|
private int |
showChildIndex |
STYLE_HEADERHTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_IDPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEWAI_ARIA| Constructor and Description |
|---|
AbstractUiWidgetSwitchComposite(UiContext context,
ADAPTER widgetAdapter)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getShowChildIndex() |
protected void |
initializeWidgetAdapter(ADAPTER adapter)
This method is called from
AbstractUiWidgetNative.getWidgetAdapter() to initialize the UiWidgetAdapter. |
boolean |
showChild(CHILD child)
This method shows the given
child. |
void |
showChild(int index)
This method shows the
child with the given index. |
boolean |
showChild(String id)
This method
shows the child identified by the given id. |
addChild, addChild, doAddChild, getChild, getChildCount, getChildIndex, removeChild, removeChildgetChildaddChangeHandler, addStyle, clearMessages, clearValidity, createSize, createUniqueId, createWidgetAdapter, dispose, doGetValue, doSetMode, doSetValue, doValidate, getAriaRole, getAriaRoleFixedType, getId, getIndexOfStyle, getMode, getModeFixed, getParent, getPrimaryStyle, getSize, getStyles, getTooltip, getVisibleFlag, getWidgetAdapter, getWidgetAdapter, hasStyle, hasWidgetAdapter, 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, waitaddChild, addChildremoveChild, removeChildgetChild, getChildgetChildCount, getChildIndexgetContext, getParent, getSizeclearMessagesaddEventHandler, removeEventHandlersetModegetModesetModeFixedgetModeFixedsetIdgetIdsetTooltipgetTooltipgetVisibleFlag, isVisible, setVisible, setVisibleisVisibleRecursivesetEnabledisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedisModifiedgetAriaRolevalidateresetValue, setValue, setValueForUsergetValueprivate int showChildIndex
showChild(int)public AbstractUiWidgetSwitchComposite(UiContext context, ADAPTER widgetAdapter)
context - is the context.widgetAdapter - is the widget adapter. Typically null for lazy
initialization.protected void initializeWidgetAdapter(ADAPTER adapter)
AbstractUiWidgetNative.getWidgetAdapter() to initialize the UiWidgetAdapter. All
attributes of this widget need to be set in the UiWidgetAdapter.initializeWidgetAdapter in class AbstractUiWidgetDynamicComposite<ADAPTER extends UiWidgetAdapterSwitchComposite<CHILD>,CHILD extends UiWidget>adapter - is the UiWidgetAdapter to initialize.public void showChild(int index)
child with the given index.showChild in interface UiWidgetSwitchComposite<CHILD extends UiWidget>index - is the index of the child to show. It has to be in the range from
0 to UiWidgetAbstractComposite.getChildCount() - 1.public boolean showChild(String id)
shows the child identified by the given id.Copyright © 2001–2016 mmm-Team. All rights reserved.