public interface UiWidgetGridPanel extends UiWidgetDynamicPanel<UiWidgetGridRow>, AttributeWriteColumnCount, UiWidgetNative
dynamic panel that represents a flexible grid. It
consists of rows that themselves consists of cells. You
can think of this widget as an HTML table used for layout (role=presentation). AttributeWriteColumnCount.setColumnCount(int) to get consistent results.| Modifier and Type | Field and Description |
|---|---|
static String |
STYLE_GRID_PANEL
The default
primary style of this widget. |
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE| 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. |
addChild, addChildremoveChild, removeChildgetChild, getChildgetChildCount, getChildIndexgetStylesgetPrimaryStylesetColumnCountgetColumnCountstatic final String STYLE_GRID_PANEL
primary style of this widget.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.
Here RolePresentation is used so the implementation can use a table as layout element.getAriaRole in interface AttributeReadAriaRoleRole or null if NOT set.AccessibilityUiWidgetGridRow 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.child - is the child widget to show in a row with the full width of this
panel.UiWidgetGridRow.UiWidgetGridRow addChildren(UiWidgetRegular... children)
UiWidgetGridRow, adds the
given children to it and then adds it to this
UiWidgetGridPanel.children - are the child widgets to show in a row of this panel.UiWidgetGridRow.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.Copyright © 2001–2016 mmm-Team. All rights reserved.