VALUE
- is the generic type of the value
.CHILD
- is the generic type of the children
.DELEGATE
- is the generic type of the delegate
.public class UiWidgetCustomDynamicComposite<VALUE,CHILD extends UiWidget,DELEGATE extends UiWidgetDynamicComposite<CHILD>> extends UiWidgetCustomComposite<VALUE,CHILD,DELEGATE> implements UiWidgetDynamicComposite<CHILD>
custom widget
implementing
UiWidgetDynamicComposite
.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 |
---|
UiWidgetCustomDynamicComposite(UiContext context,
DELEGATE delegate,
Class<VALUE> valueClass)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(CHILD child)
This method adds the given
child to the end of the child-list . |
void |
addChild(CHILD child,
int index)
This method adds or better inserts the given
child at the given index . |
boolean |
removeChild(CHILD child)
This method removes the given
child from this panel. |
CHILD |
removeChild(int index)
This method removes the child at the given
index from this panel. |
doGetValue, doSetValue, getChild, getChild, getChildCount, getChildIndex
addStyle, clearMessages, clearValidity, dispose, doInitialize, doSetMode, doValidate, getAriaRole, getDelegate, getDelegate, getId, getMode, getModeFixed, getParent, getPrimaryStyle, getSize, getSource, getStyles, getTooltip, getValueClass, getVisibleFlag, getWidgetAdapter, hasStyle, hasWidgetAdapter, initialize, isDisposed, isEnabled, isModifiedRecursive, isVisible, isVisibleRecursive, removeFromParent, removeStyle, setEnabled, setFocused, setId, setMode, setMode, setModeFixed, setParent, setPrimaryStyle, setStyles, setTooltip, setVisible, setVisible
addChangeHandler, addEventHandler, addValidator, clearMessagesLocal, clearValidationFailure, convertValueToString, fireEvent, fireValueChange, getBasicUtil, getContext, getDataBinding, getDataBinding, getDataBindingForWidget, getEventSender, getFactory, getLogger, getObserverSource, getOriginalValue, getRecentValue, getValueDirect, getValueOrException, getWidgetAdapter, hasEventSender, isMandatory, isModified, removeChangeHandler, removeEventHandler, removeFromParent, removeValidator, setMandatory, setModified, setParent, setValue, toString
addValidatorMandatory, createValidationFailure, getValue, getValueAndValidate, handleGetValueError, resetValue, setValue, setValueForUser, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChild, getChild
getChildCount, getChildIndex
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
getValue
getValueAndValidate, getValueDirect
addChangeHandler, removeChangeHandler
resetValue, setValue, setValue, setValueForUser
getOriginalValue, getValueOrException
addValidatorMandatory, isMandatory
addValidator, removeValidator
public boolean removeChild(CHILD child)
child
from this panel.removeChild
in interface UiWidgetMultiComposite<CHILD extends UiWidget>
child
- is the UiWidget
to remove from this panel.true
if the given child
has been removed successfully,
false
otherwise (it has NOT been previously added).List.remove(Object)
public CHILD removeChild(int index)
index
from this panel.removeChild
in interface UiWidgetMultiComposite<CHILD extends UiWidget>
index
- is the index
of the child to remove. It has to be in the range from
0
to UiWidgetAbstractComposite.getChildCount()
- 1
.index
.List.remove(int)
public void addChild(CHILD child)
child
to the end of the child-list
. For
vertical layouts this will be the bottom and for horizontal layouts this will be the right.addChild
in interface UiWidgetDynamicComposite<CHILD extends UiWidget>
child
- is the UiWidget
to add as child of this composite.List.add(Object)
public void addChild(CHILD child, int index)
child
at the given index
.addChild
in interface UiWidgetDynamicComposite<CHILD extends UiWidget>
child
- is the UiWidget
to add as child of this panel.index
- is the index
of the new child. It has to be in the range from
0
to UiWidgetAbstractComposite.getChildCount()
.UiWidgetDynamicComposite.addChild(UiWidget)
,
List.add(int, Object)
Copyright © 2001–2016 mmm-Team. All rights reserved.