ADAPTER
- is the generic type of AbstractUiWidgetNative.getWidgetAdapter()
.public abstract class AbstractUiWidgetGridCell<ADAPTER extends UiWidgetAdapterGridCell> extends AbstractUiWidgetSingleMutableComposite<ADAPTER,UiWidgetRegular> implements UiWidgetGridCell
UiWidgetGridCell
.AbstractUiWidgetNative.SizeImpl
AbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer
Modifier and Type | Field and Description |
---|---|
private int |
columnSpan |
STYLE_HEADER
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
ATTRIBUTE_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. |
setChild
doSetChild, getChild, getChild, getChildCount, getChildIndex, onChildRemoved, onChildSet
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
getChild, getChildCount, setChild
getChild, getChild
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
resetValue, setValue, setValueForUser
getValue
private 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 AttributeReadColumnSpan
1
.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 AttributeWriteColumnSpan
columnSpan
- 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 UiWidgetGridCell
children
- are the children to add.#setChild(UiWidgetRegular)
Copyright © 2001–2016 mmm-Team. All rights reserved.