ADAPTER - is the generic type of AbstractUiWidgetNative.getWidgetAdapter().public abstract class AbstractUiWidgetGridCell<ADAPTER extends UiWidgetAdapterGridCell> extends AbstractUiWidgetSingleMutableComposite<ADAPTER,UiWidgetRegular> implements UiWidgetGridCell
UiWidgetGridCell.AbstractUiWidgetNative.SizeImplAbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer| Modifier and Type | Field and Description |
|---|---|
private int |
columnSpan |
STYLE_HEADERHTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_IDPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEWAI_ARIAATTRIBUTE_COLSPAN| Constructor and Description |
|---|
AbstractUiWidgetGridCell(UiContext context,
ADAPTER widgetAdapter)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnSpan()
This method gets the number of columns spanned by this object (cell).
|
protected void |
initializeWidgetAdapter(ADAPTER adapter)
This method is called from
AbstractUiWidgetNative.getWidgetAdapter() to initialize the UiWidgetAdapter. |
void |
setChildren(UiWidgetRegular... children)
This method creates a
UiWidgetHorizontalPanel adds the
given children to it and sets it it as child of this
cell. |
void |
setColumnSpan(int columnSpan)
This method sets the
columnSpan attribute. |
setChilddoSetChild, getChild, getChild, getChildCount, getChildIndex, onChildRemoved, onChildSetgetChildaddChangeHandler, 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, waitgetChild, getChildCount, setChildgetChild, getChildgetChildIndexgetContext, getParent, getSizeclearMessagesaddEventHandler, removeEventHandlersetModegetModesetModeFixedgetModeFixedsetIdgetIdsetTooltipgetTooltipgetVisibleFlag, isVisible, setVisible, setVisibleisVisibleRecursivesetEnabledisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedisModifiedgetAriaRolevalidateresetValue, setValue, setValueForUsergetValueprivate int columnSpan
getColumnSpan()public AbstractUiWidgetGridCell(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 AbstractUiWidgetSingleComposite<ADAPTER extends UiWidgetAdapterGridCell,UiWidgetRegular>adapter - is the UiWidgetAdapter to initialize.public int getColumnSpan()
1 indicates that the next cells to the right are
connected.getColumnSpan in interface AttributeReadColumnSpan1.public void setColumnSpan(int columnSpan)
columnSpan attribute. 1 and not 0. To join with the next
column, you need to provide the value 2.setColumnSpan in interface AttributeWriteColumnSpancolumnSpan - is the new value of AttributeReadColumnSpan.getColumnSpan(). Should be at least 1. As
1 is the default, a typical value will be greater than 1.AttributeReadColumnSpan.getColumnSpan()public void setChildren(UiWidgetRegular... children)
UiWidgetHorizontalPanel adds the
given children to it and sets it it as child of this
cell. setChildren in interface UiWidgetGridCellchildren - are the children to add.#setChild(UiWidgetRegular)Copyright © 2001–2016 mmm-Team. All rights reserved.