summaryrefslogtreecommitdiffstats
path: root/shared
diff options
context:
space:
mode:
authorAleksi Hietanen <aleksi@vaadin.com>2016-09-19 17:01:20 +0300
committerDenis Anisimov <denis@vaadin.com>2016-09-20 11:23:53 +0000
commit79132bcb6d498322ce8cb0f554658f96b13b29d9 (patch)
treeefe187599b0825d20c7e3812fd9110b911e03c77 /shared
parent8939d3257f2f48ce5525b908c3d3450cee837aaf (diff)
downloadvaadin-framework-79132bcb6d498322ce8cb0f554658f96b13b29d9.tar.gz
vaadin-framework-79132bcb6d498322ce8cb0f554658f96b13b29d9.zip
Reintroduce grid column hiding
Change-Id: I8a0344dffe3f2ef84f8134e05d9b7340d9b603a0
Diffstat (limited to 'shared')
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/grid/ColumnState.java9
-rw-r--r--shared/src/main/java/com/vaadin/shared/ui/grid/GridServerRpc.java6
2 files changed, 10 insertions, 5 deletions
diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/ColumnState.java b/shared/src/main/java/com/vaadin/shared/ui/grid/ColumnState.java
index 63a93cac15..c789988cb5 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/grid/ColumnState.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/grid/ColumnState.java
@@ -24,5 +24,14 @@ public class ColumnState extends SharedState {
public String id;
public boolean sortable;
+ /** The caption for the column hiding toggle. */
+ public String hidingToggleCaption;
+
+ /** Whether this column is currently hidden. */
+ public boolean hidden = false;
+
+ /** Whether the column can be hidden by the user. */
+ public boolean hidable = false;
+
public Connector renderer;
}
diff --git a/shared/src/main/java/com/vaadin/shared/ui/grid/GridServerRpc.java b/shared/src/main/java/com/vaadin/shared/ui/grid/GridServerRpc.java
index 7c9eb42b2c..08417b4b33 100644
--- a/shared/src/main/java/com/vaadin/shared/ui/grid/GridServerRpc.java
+++ b/shared/src/main/java/com/vaadin/shared/ui/grid/GridServerRpc.java
@@ -83,12 +83,8 @@ public interface GridServerRpc extends ServerRpc {
* the id of the column
* @param hidden
* <code>true</code> if hidden, <code>false</code> if unhidden
- * @param userOriginated
- * <code>true</code> if triggered by user, <code>false</code> if
- * by code
*/
- void columnVisibilityChanged(String id, boolean hidden,
- boolean userOriginated);
+ void columnVisibilityChanged(String id, boolean hidden);
/**
* Informs the server that a column has been resized by the user.