aboutsummaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2014-12-04 15:43:48 +0200
committerTeemu Suo-Anttila <teemusa@vaadin.com>2014-12-04 14:35:39 +0000
commitca061119cabe564c5d2205865d95a5e5ed496c6a (patch)
tree261d7e569353c3315c5b3ba90f1d558bf74711d6 /shared
parentc817f2c578839db70011889533f4c666638685cf (diff)
downloadvaadin-framework-ca061119cabe564c5d2205865d95a5e5ed496c6a.tar.gz
vaadin-framework-ca061119cabe564c5d2205865d95a5e5ed496c6a.zip
Add server-side CellStyleGenerator (#13334)
Change-Id: Id12f1135673d93fddd0a59d26b1c546a0ef0ee1d
Diffstat (limited to 'shared')
-rw-r--r--shared/src/com/vaadin/shared/ui/grid/GridState.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/grid/GridState.java b/shared/src/com/vaadin/shared/ui/grid/GridState.java
index 934ba25884..621b34a2b4 100644
--- a/shared/src/com/vaadin/shared/ui/grid/GridState.java
+++ b/shared/src/com/vaadin/shared/ui/grid/GridState.java
@@ -88,6 +88,20 @@ public class GridState extends AbstractComponentState {
public static final String JSONKEY_ROWKEY = "k";
/**
+ * The key in which a row's generated style can be found
+ *
+ * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, String)
+ */
+ public static final String JSONKEY_ROWSTYLE = "rs";
+
+ /**
+ * The key in which a generated styles for a row's cells can be found
+ *
+ * @see com.vaadin.shared.data.DataProviderRpc#setRowData(int, String)
+ */
+ public static final String JSONKEY_CELLSTYLES = "cs";
+
+ /**
* Columns in grid.
*/
public List<GridColumnState> columns = new ArrayList<GridColumnState>();
@@ -129,4 +143,7 @@ public class GridState extends AbstractComponentState {
/** The enabled state of the editor row */
public boolean editorRowEnabled = false;
+
+ /** Whether row data might contain generated styles */
+ public boolean hasCellStyleGenerator;
}