diff options
author | Henrik Paul <henrik@vaadin.com> | 2014-06-30 17:37:51 +0300 |
---|---|---|
committer | Henrik Paul <henrik@vaadin.com> | 2014-07-03 08:05:55 +0000 |
commit | 1f94f03f56182697fda5c79ff42c492f26a8767b (patch) | |
tree | 8a0e6aad9ae053c31cc6557a0ce3916b899fc583 /shared | |
parent | fdba3d43f594bb0236df022f505b64f4970885e5 (diff) | |
download | vaadin-framework-1f94f03f56182697fda5c79ff42c492f26a8767b.tar.gz vaadin-framework-1f94f03f56182697fda5c79ff42c492f26a8767b.zip |
Client now recognizes server-side selection model changes. (#13334)
Change-Id: Ic42e0e96871620fde6b9ce17dd5b487b1d6b8370
Diffstat (limited to 'shared')
-rw-r--r-- | shared/src/com/vaadin/shared/ui/grid/GridState.java | 37 |
1 files changed, 37 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 6ca0021817..3dcf7764ac 100644 --- a/shared/src/com/vaadin/shared/ui/grid/GridState.java +++ b/shared/src/com/vaadin/shared/ui/grid/GridState.java @@ -31,6 +31,42 @@ import com.vaadin.shared.annotations.DelegateToWidget; public class GridState extends AbstractComponentState { /** + * A description of which of the three bundled SelectionModels is currently + * in use. + * <p> + * Used as a data transfer object instead of the client/server ones, because + * they don't know about each others classes. + * + * @see com.vaadin.ui.components.grid.Grid.SelectionMode + * @see com.vaadin.client.ui.grid.Grid.SelectionMode + */ + public enum SharedSelectionMode { + /** + * Representation of a single selection mode + * + * @see com.vaadin.ui.components.grid.Grid.SelectionMode#SINGLE + * @see com.vaadin.client.ui.grid.Grid.SelectionMode#SINGLE + */ + SINGLE, + + /** + * Representation of a multiselection mode + * + * @see com.vaadin.ui.components.grid.Grid.SelectionMode#MULTI + * @see com.vaadin.client.ui.grid.Grid.SelectionMode#MULTI + */ + MULTI, + + /** + * Representation of a no-selection mode + * + * @see com.vaadin.ui.components.grid.Grid.SelectionMode#NONE + * @see com.vaadin.client.ui.grid.Grid.SelectionMode#NONE + */ + NONE; + } + + /** * The default value for height-by-rows for both GWT widgets * {@link com.vaadin.ui.components.grid Grid} and * {@link com.vaadin.client.ui.grid.Escalator Escalator} @@ -95,4 +131,5 @@ public class GridState extends AbstractComponentState { // instantiated just to avoid NPEs public List<String> selectedKeys = new ArrayList<String>(); + public SharedSelectionMode selectionMode; } |