Package com.vaadin.shared.ui.grid
Class GridState
- java.lang.Object
-
- com.vaadin.shared.communication.SharedState
-
- com.vaadin.shared.AbstractComponentState
-
- com.vaadin.shared.ui.TabIndexState
-
- com.vaadin.shared.ui.grid.GridState
-
- All Implemented Interfaces:
Serializable
public class GridState extends TabIndexState
The shared state for thecom.vaadin.ui.components.grid.Grid
component- Since:
- 7.4
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GridState.SharedSelectionMode
A description of which of the three bundled SelectionModels is currently in use.
-
Field Summary
Fields Modifier and Type Field Description ContentMode
cellTooltipContentMode
The content mode used for cell tooltips.List<String>
columnOrder
Column order in grid.boolean
columnReorderingAllowed
Whether the columns can be reorderedColumnResizeMode
columnResizeMode
Column resize mode in grid.List<GridColumnState>
columns
Columns in grid.static double
DEFAULT_HEIGHT_BY_ROWS
The default value for height-by-rows for both GWT widgetsGrid
andEscalator
boolean
editorBuffered
Buffered editor modeString
editorCancelCaption
The caption for the cancel button in the editorboolean
editorEnabled
The enabled state of the editor interfaceString
editorSaveCaption
The caption for the save button in the editorGridStaticSectionState
footer
int
frozenColumnCount
The number of frozen columnsboolean
hasDescriptions
Whether rows and/or cells have generated descriptions (tooltips)GridStaticSectionState
header
double
heightByRows
The height of the Grid in terms of body rows.HeightMode
heightMode
The mode by which Grid defines its height.static String
JSONKEY_CELLDESCRIPTION
The key in which a cell's description can be foundstatic String
JSONKEY_CELLSTYLES
The key in which a generated styles for a row's cells can be foundstatic String
JSONKEY_DATA
The key in which a row's data can be foundstatic String
JSONKEY_DETAILS_VISIBLE
The key that tells whether details are visible for the row.static String
JSONKEY_ROWDESCRIPTION
The key in which a row's description can be foundstatic String
JSONKEY_ROWKEY
The key in which a row's own key can be foundstatic String
JSONKEY_ROWSTYLE
The key in which a row's generated style can be foundstatic String
JSONKEY_SELECTED
The key that tells whether row is selected.ContentMode
rowTooltipContentMode
The content mode used for row tooltips.String[]
sortColumns
Keys of the currently sorted columnsSortDirection[]
sortDirs
Directions for each sorted column-
Fields inherited from class com.vaadin.shared.ui.TabIndexState
tabIndex
-
Fields inherited from class com.vaadin.shared.AbstractComponentState
caption, captionAsHtml, description, errorLevel, errorMessage, height, id, immediate, primaryStyleName, readOnly, 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
The default value for height-by-rows for both GWT widgetsGrid
andEscalator
- See Also:
- Constant Field Values
-
JSONKEY_DATA
public static final String JSONKEY_DATA
The key in which a row's data can be found- See Also:
com.vaadin.shared.data.DataProviderRpc#setRowData(int, String)
, Constant Field Values
-
JSONKEY_ROWKEY
public static final String JSONKEY_ROWKEY
The key in which a row's own key can be found- See Also:
com.vaadin.shared.data.DataProviderRpc#setRowData(int, String)
, Constant Field Values
-
JSONKEY_ROWSTYLE
public static final String JSONKEY_ROWSTYLE
The key in which a row's generated style can be found- See Also:
com.vaadin.shared.data.DataProviderRpc#setRowData(int, String)
, Constant Field Values
-
JSONKEY_CELLSTYLES
public static final String JSONKEY_CELLSTYLES
The key in which a generated styles for a row's cells can be found- See Also:
com.vaadin.shared.data.DataProviderRpc#setRowData(int, String)
, Constant Field Values
-
JSONKEY_ROWDESCRIPTION
public static final String JSONKEY_ROWDESCRIPTION
The key in which a row's description can be found- Since:
- 7.6
- See Also:
com.vaadin.shared.data.DataProviderRpc#setRowData(int, String)
, Constant Field Values
-
JSONKEY_CELLDESCRIPTION
public static final String JSONKEY_CELLDESCRIPTION
The key in which a cell's description can be found- Since:
- 7.6
- See Also:
com.vaadin.shared.data.DataProviderRpc#setRowData(int, String)
, Constant Field Values
-
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.- Since:
- 7.6
- See Also:
- Constant Field Values
-
columnResizeMode
public ColumnResizeMode columnResizeMode
Column resize mode in grid.- Since:
- 7.7.5
-
columns
public List<GridColumnState> columns
Columns in grid.
-
header
public GridStaticSectionState header
-
footer
public GridStaticSectionState footer
-
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
-
editorEnabled
public boolean editorEnabled
The enabled state of the editor interface
-
editorBuffered
public boolean editorBuffered
Buffered editor mode- Since:
- 7.6
-
hasDescriptions
public boolean hasDescriptions
Whether rows and/or cells have generated descriptions (tooltips)- Since:
- 7.6
-
editorSaveCaption
public String editorSaveCaption
The caption for the save button in the editor
-
editorCancelCaption
public String editorCancelCaption
The caption for the cancel button in the editor
-
columnReorderingAllowed
public boolean columnReorderingAllowed
Whether the columns can be reordered
-
cellTooltipContentMode
public ContentMode cellTooltipContentMode
The content mode used for cell tooltips.- Since:
- 7.7.14
-
rowTooltipContentMode
public ContentMode rowTooltipContentMode
The content mode used for row tooltips.- Since:
- 7.7.14
-
-