ADAPTER - is the generic type of AbstractUiWidgetNative.getWidgetAdapter().public abstract class AbstractUiWidgetGridPanel<ADAPTER extends UiWidgetAdapterGridPanel> extends AbstractUiWidgetDynamicPanel<ADAPTER,UiWidgetGridRow> implements UiWidgetGridPanel
UiWidgetGridPanel.AbstractUiWidgetNative.SizeImplAbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer| Modifier and Type | Field and Description |
|---|---|
private Integer |
columnCount |
STYLE_GRID_PANELPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE| Constructor and Description |
|---|
AbstractUiWidgetGridPanel(UiContext context,
ADAPTER widgetAdapter)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
UiWidgetGridRow |
addChildren(UiWidgetRegular... children)
This method creates a
UiWidgetGridRow, adds the
given children to it and then adds it to this
UiWidgetGridPanel. |
UiWidgetGridRow |
addChildSpanned(UiWidgetRegular child)
This method creates a
UiWidgetGridRow, adds the
given child with a full column span to it and then
adds it to this UiWidgetGridPanel. |
void |
addSeparatorRow()
Adds an empty
row that acts as a spacer to group blocks of rows with widgets. |
RolePresentation |
getAriaRole()
This method gets the
Accessibility.WAI_ARIA role of this object. |
protected Class<? extends Role> |
getAriaRoleFixedType() |
Integer |
getColumnCount()
This method gets the number of columns of this object (e.g.
|
void |
setColumnCount(int columnCount)
This method sets the
columnCount attribute. |
addChild, addChild, doAddChild, getChild, getChildCount, getChildIndex, initializeWidgetAdapter, removeChild, removeChildgetChildaddChangeHandler, addStyle, clearMessages, clearValidity, createSize, createUniqueId, createWidgetAdapter, dispose, doGetValue, doSetMode, doSetValue, doValidate, 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, waitaddChild, addChildremoveChild, removeChildgetChild, getChildgetChildCount, getChildIndexgetStylesgetPrimaryStyleresetValue, setValue, setValueForUsergetValueprivate Integer columnCount
getColumnCount()public AbstractUiWidgetGridPanel(UiContext context, ADAPTER widgetAdapter)
context - is the context.widgetAdapter - is the widget adapter. Typically null for
lazy initialization.public RolePresentation getAriaRole()
Accessibility.WAI_ARIA role of this object. UiWidget) is supposed to provide high-level
widgets and support setting the according Role and their attributes automatically. Therefore
users should only use this for special situations e.g. for setting aria-hidden intentionally for a visible object.getAriaRole in interface AttributeReadAriaRolegetAriaRole in interface UiWidgetGridPanelgetAriaRole in class AbstractUiWidgetNative<ADAPTER extends UiWidgetAdapterGridPanel,Void>Role or null if NOT set.Accessibilitypublic Integer getColumnCount()
getColumnCount in interface AttributeReadColumnCountnull if undefined.public void setColumnCount(int columnCount)
columnCount attribute.setColumnCount in interface AttributeWriteColumnCountcolumnCount - is the new value of AttributeReadColumnCount.getColumnCount(). Should be at least 1.AttributeReadColumnCount.getColumnCount()public UiWidgetGridRow addChildSpanned(UiWidgetRegular child)
UiWidgetGridRow, adds the
given child with a full column span to it and then
adds it to this UiWidgetGridPanel. AttributeWriteColumnCount.setColumnCount(int) before using the method.addChildSpanned in interface UiWidgetGridPanelchild - is the child widget to show in a row with the full width of this
panel.UiWidgetGridRow.public UiWidgetGridRow addChildren(UiWidgetRegular... children)
UiWidgetGridRow, adds the
given children to it and then adds it to this
UiWidgetGridPanel.addChildren in interface UiWidgetGridPanelchildren - are the child widgets to show in a row of this panel.UiWidgetGridRow.public void addSeparatorRow()
row that acts as a spacer to group blocks of rows with widgets.
This row will have the style
CssStyles.GRID_ROW_SEPARATOR.addSeparatorRow in interface UiWidgetGridPanelprotected Class<? extends Role> getAriaRoleFixedType()
getAriaRoleFixedType in class AbstractUiWidgetNative<ADAPTER extends UiWidgetAdapterGridPanel,Void>Class reflecting the Role that is fixed for this widget or null
if the role can be changed dynamically.Copyright © 2001–2016 mmm-Team. All rights reserved.