ADAPTER
- is the generic type of AbstractUiWidgetNative.getWidgetAdapter()
.public abstract class AbstractUiWidgetGridRow<ADAPTER extends UiWidgetAdapterGridRow> extends AbstractUiWidgetDynamicPanel<ADAPTER,UiWidgetGridCell> implements UiWidgetGridRow
UiWidgetGridCell
.AbstractUiWidgetNative.SizeImpl
AbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer
PROPERTY_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, removeChild
getChild
addChangeHandler, 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, 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
removeChild, removeChild
getChild, getChild
getChildCount, getChildIndex
getStyles
getPrimaryStyle
resetValue, setValue, setValueForUser
getValue
public 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 UiWidgetGridRow
child
- 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 UiWidgetGridRow
children
- 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.