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.Gridcomponent- Since:
- 7.4
- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGridState.SharedSelectionModeA description of which of the three bundled SelectionModels is currently in use.
-
Field Summary
Fields Modifier and Type Field Description ContentModecellTooltipContentModeThe content mode used for cell tooltips.List<String>columnOrderColumn order in grid.booleancolumnReorderingAllowedWhether the columns can be reorderedColumnResizeModecolumnResizeModeColumn resize mode in grid.List<GridColumnState>columnsColumns in grid.static doubleDEFAULT_HEIGHT_BY_ROWSThe default value for height-by-rows for both GWT widgetsGridandEscalatorbooleaneditorBufferedBuffered editor modeStringeditorCancelCaptionThe caption for the cancel button in the editorbooleaneditorEnabledThe enabled state of the editor interfaceStringeditorSaveCaptionThe caption for the save button in the editorGridStaticSectionStatefooterintfrozenColumnCountThe number of frozen columnsbooleanhasDescriptionsWhether rows and/or cells have generated descriptions (tooltips)GridStaticSectionStateheaderdoubleheightByRowsThe 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 foundstatic StringJSONKEY_CELLSTYLESThe key in which a generated styles for a row's cells can be foundstatic StringJSONKEY_DATAThe key in which a row's data can be foundstatic 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 foundstatic StringJSONKEY_ROWKEYThe key in which a row's own key can be foundstatic StringJSONKEY_ROWSTYLEThe key in which a row's generated style can be foundstatic StringJSONKEY_SELECTEDThe key that tells whether row is selected.ContentModerowTooltipContentModeThe content mode used for row tooltips.String[]sortColumnsKeys of the currently sorted columnsSortDirection[]sortDirsDirections 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 widgetsGridandEscalator- 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.- Since:
- 7.5.0
- See Also:
com.vaadin.ui.Grid#setDetailsGenerator(com.vaadin.ui.Grid.DetailsGenerator),com.vaadin.ui.Grid#setDetailsVisible(Object, boolean),DataProviderRpc.setRowData(int, elemental.json.JsonArray), Constant Field Values
-
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
-
-