Package com.vaadin.shared.ui.grid
Class GridState
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TreeGridState
public class GridState extends AbstractSingleSelectState
The shared state for theGridcomponent.- Since:
- 8.0
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description booleanaccessibleNavigationWhether accessible navigation is enabled for the grid.doublebodyRowHeightExplicit body row height in pixels for grid rows, or -1 to calculate automatically based on the theme.List<String>columnOrderColumn order in grid.booleancolumnReorderingAllowedWhether the columns can be reordered.ColumnResizeModecolumnResizeModeColumn resize mode in grid.static doubleDEFAULT_HEIGHT_BY_ROWSSectionStatefooterThe state of the footer section.doublefooterRowHeightExplicit body row height in pixels for grid rows, or -1 to calculate automatically based on the theme.intfrozenColumnCountThe number of frozen columns.booleanhasDescriptionsWhether rows and/or cells have generated descriptions (tooltips).SectionStateheaderThe state of the header section.doubleheaderRowHeightExplicit body row height in pixels for grid rows, or -1 to calculate automatically based on the theme.doubleheightByRowsThe height of the Grid in terms of body rows.HeightModeheightModeThe mode by which Grid defines its height.static StringJSONKEY_CELLDESCRIPTIONThe key in which a cell's description can be found.static StringJSONKEY_CELLSTYLESThe key in which a generated styles for a row's cells can be found.static StringJSONKEY_DATAThe key in which a row's data can be found.static StringJSONKEY_DETAILS_VISIBLEThe key that tells whether details are visible for the row.static StringJSONKEY_ROWDESCRIPTIONThe key in which a row's description can be found.static StringJSONKEY_ROWKEYThe key in which a row's own key can be found.static StringJSONKEY_ROWSTYLEThe key in which a row's generated style can be found.static StringJSONKEY_SELECTEDThe key that tells whether row is selected or not.ContentModerowDescriptionContentModeThe content mode for row descriptions.GridConstants.SidebarColumnOrdersidebarColumnOrderOrdering of columns in the sidebar column hider widgetString[]sortColumnsKeys of the currently sorted columns.SortDirection[]sortDirsDirections for each sorted column.-
Fields inherited from class com.vaadin.shared.ui.AbstractSingleSelectState
selectedItemKey
-
Fields inherited from class com.vaadin.shared.AbstractFieldState
readOnly, required
-
Fields inherited from class com.vaadin.shared.ui.TabIndexState
tabIndex
-
Fields inherited from class com.vaadin.shared.AbstractComponentState
caption, captionAsHtml, description, descriptionContentMode, errorLevel, errorMessage, height, id, primaryStyleName, styles, width
-
Fields inherited from class com.vaadin.shared.communication.SharedState
enabled, registeredEventListeners, resources
-
-
Constructor Summary
Constructors Constructor Description GridState()
-
-
-
Field Detail
-
DEFAULT_HEIGHT_BY_ROWS
public static final double DEFAULT_HEIGHT_BY_ROWS
- See Also:
- Constant Field Values
-
JSONKEY_DATA
public static final String JSONKEY_DATA
The key in which a row's data can be found.
-
JSONKEY_ROWKEY
public static final String JSONKEY_ROWKEY
The key in which a row's own key can be found.
-
JSONKEY_ROWSTYLE
public static final String JSONKEY_ROWSTYLE
The key in which a row's generated style can be found.
-
JSONKEY_CELLSTYLES
public static final String JSONKEY_CELLSTYLES
The key in which a generated styles for a row's cells can be found.
-
JSONKEY_ROWDESCRIPTION
public static final String JSONKEY_ROWDESCRIPTION
The key in which a row's description can be found.
-
JSONKEY_CELLDESCRIPTION
public static final String JSONKEY_CELLDESCRIPTION
The key in which a cell's description can be found.
-
JSONKEY_DETAILS_VISIBLE
public static final String JSONKEY_DETAILS_VISIBLE
The key that tells whether details are visible for the row.
-
JSONKEY_SELECTED
public static final String JSONKEY_SELECTED
The key that tells whether row is selected or not.- See Also:
- Constant Field Values
-
columnResizeMode
public ColumnResizeMode columnResizeMode
Column resize mode in grid.- Since:
- 7.7.5
-
header
public SectionState header
The state of the header section.
-
footer
public SectionState footer
The state of the footer section.
-
frozenColumnCount
public int frozenColumnCount
The number of frozen columns.
-
heightByRows
public double heightByRows
The height of the Grid in terms of body rows.
-
heightMode
public HeightMode heightMode
The mode by which Grid defines its height.
-
sortColumns
public String[] sortColumns
Keys of the currently sorted columns.
-
sortDirs
public SortDirection[] sortDirs
Directions for each sorted column.
-
sidebarColumnOrder
public GridConstants.SidebarColumnOrder sidebarColumnOrder
Ordering of columns in the sidebar column hider widget
-
hasDescriptions
public boolean hasDescriptions
Whether rows and/or cells have generated descriptions (tooltips).
-
columnReorderingAllowed
public boolean columnReorderingAllowed
Whether the columns can be reordered.
-
bodyRowHeight
public double bodyRowHeight
Explicit body row height in pixels for grid rows, or -1 to calculate automatically based on the theme.- Since:
- 8.2
-
headerRowHeight
public double headerRowHeight
Explicit body row height in pixels for grid rows, or -1 to calculate automatically based on the theme.- Since:
- 8.2
-
footerRowHeight
public double footerRowHeight
Explicit body row height in pixels for grid rows, or -1 to calculate automatically based on the theme.- Since:
- 8.2
-
rowDescriptionContentMode
public ContentMode rowDescriptionContentMode
The content mode for row descriptions.- Since:
- 8.2
-
accessibleNavigation
public boolean accessibleNavigation
Whether accessible navigation is enabled for the grid.- Since:
- 8.28
-
-