diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2015-03-22 22:20:57 +0200 |
---|---|---|
committer | Pekka Hyvönen <pekka@vaadin.com> | 2015-03-22 22:20:57 +0200 |
commit | 16c67cfab9b3dd2dbf324caa612fa3a2d15550d0 (patch) | |
tree | 028c2f0acd484b9cd93131d5972eae8d36c580bc /shared | |
parent | 8d5b8042358e8eea8db30a3114cd02993244abb2 (diff) | |
download | vaadin-framework-16c67cfab9b3dd2dbf324caa612fa3a2d15550d0.tar.gz vaadin-framework-16c67cfab9b3dd2dbf324caa612fa3a2d15550d0.zip |
Grid column hiding info from client to server #(17023)
Fixes mismatched client-server API regarding ColumnVisibilityChangeEvent
Adds and removes the column hiding toggle as needed when columns added / removed.
Known bug when a hidable column added, column toggle won't get the caption of column.
Change-Id: I708e19432dc822f713bf11f5b8e6eadb528a3961
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java b/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java index 28f59ea93a..2b2308fe84 100644 --- a/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java +++ b/shared/src/com/vaadin/shared/ui/grid/GridServerRpc.java @@ -76,4 +76,19 @@ public interface GridServerRpc extends ServerRpc { * @see com.vaadin.ui.Grid#setDetailsVisible(Object, boolean) */ void sendDetailsComponents(int fetchId); + + /** + * Informs the server that the column's visibility has been changed. + * + * @since + * @param id + * 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); } |