ADAPTER - is the generic type of AbstractUiWidgetNative.getWidgetAdapter().public abstract class AbstractUiWidgetGridRow<ADAPTER extends UiWidgetAdapterGridRow> extends AbstractUiWidgetDynamicPanel<ADAPTER,UiWidgetGridCell> implements UiWidgetGridRow
UiWidgetGridCell.AbstractUiWidgetNative.SizeImplAbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainerPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE| Constructor and Description |
|---|
AbstractUiWidgetGridRow(UiContext context,
ADAPTER widgetAdapter)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(UiWidgetGridCell child)
This method adds the given
child to the end of the child-list. |
void |
addChild(UiWidgetGridCell child,
int index)
This method adds or better inserts the given
child at the given index. |
UiWidgetGridCell |
addChild(UiWidgetRegular child)
|
private UiWidgetGridCell |
addChildInternal(UiWidgetRegular child) |
UiWidgetGridCell |
addChildren(UiWidgetRegular... children)
This method creates a
UiWidgetGridCell, sets
the given children composed to a single widget and adds
it to this row. |
private boolean |
verifyColumnCount(UiWidgetGridCell child,
int index)
Verifies that the column count is not exceeded after addChild operation.
|
doAddChild, getChild, getChildCount, getChildIndex, initializeWidgetAdapter, 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, setParent, setPrimaryStyle, setStyles, setTooltip, setVisible, setVisible, toString, 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, waitremoveChild, removeChildgetChild, getChildgetChildCount, getChildIndexgetStylesgetPrimaryStyleresetValue, setValue, setValueForUsergetValuepublic AbstractUiWidgetGridRow(UiContext context, ADAPTER widgetAdapter)
context - is the context.widgetAdapter - is the widget adapter. Typically null for lazy
initialization.public UiWidgetGridCell addChild(UiWidgetRegular child)
UiWidgetGridCell, sets
the given child and adds it to this row. child is a UiWidgetField, this
method will also attach the
label before. This is
done on purpose for convenience. If you want to prevent this,
create a
UiWidgetGridCell directly and set the
UiWidgetField directly before you
add it.addChild in interface UiWidgetGridRowchild - is the child to add.UiWidgetGridCell.#addChild(UiWidgetGridCell)private UiWidgetGridCell addChildInternal(UiWidgetRegular child)
child - is the child widget to add.UiWidgetGridCell.addChild(UiWidgetRegular)public void addChild(UiWidgetGridCell 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<UiWidgetGridCell>addChild in class AbstractUiWidgetDynamicComposite<ADAPTER extends UiWidgetAdapterGridRow,UiWidgetGridCell>child - is the UiWidget to add as child of this composite.List.add(Object)public void addChild(UiWidgetGridCell child, int index)
child at the given index.addChild in interface UiWidgetDynamicComposite<UiWidgetGridCell>addChild in class AbstractUiWidgetDynamicComposite<ADAPTER extends UiWidgetAdapterGridRow,UiWidgetGridCell>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)public UiWidgetGridCell addChildren(UiWidgetRegular... children)
UiWidgetGridCell, sets
the given children composed to a single widget and adds
it to this row. addChildren in interface UiWidgetGridRowchildren - are the children to add.UiWidgetGridCell.#addChild(UiWidgetGridCell),
UiWidgetGridCell.setChildren(UiWidgetRegular...)private boolean verifyColumnCount(UiWidgetGridCell child, int index)
child - is the child to add.index - is the insert position or -1 for add at end.true if valid, false (or Exception) otherwise.Copyright © 2001–2016 mmm-Team. All rights reserved.