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 /uitest | |
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 'uitest')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/grid/GridBasicFeatures.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/GridBasicFeatures.java b/uitest/src/com/vaadin/tests/components/grid/GridBasicFeatures.java index cfe1d0c00d..6af229bd28 100644 --- a/uitest/src/com/vaadin/tests/components/grid/GridBasicFeatures.java +++ b/uitest/src/com/vaadin/tests/components/grid/GridBasicFeatures.java @@ -31,6 +31,7 @@ import com.vaadin.tests.components.AbstractComponentTest; import com.vaadin.ui.components.grid.ColumnGroup; import com.vaadin.ui.components.grid.ColumnGroupRow; import com.vaadin.ui.components.grid.Grid; +import com.vaadin.ui.components.grid.Grid.SelectionMode; import com.vaadin.ui.components.grid.GridColumn; import com.vaadin.ui.components.grid.renderers.DateRenderer; import com.vaadin.ui.components.grid.renderers.HtmlRenderer; @@ -159,6 +160,19 @@ public class GridBasicFeatures extends AbstractComponentTest<Grid> { } }, primaryStyleNames.get("v-grid")); + + LinkedHashMap<String, SelectionMode> selectionModes = new LinkedHashMap<String, Grid.SelectionMode>(); + selectionModes.put("single", SelectionMode.SINGLE); + selectionModes.put("multi", SelectionMode.MULTI); + selectionModes.put("none", SelectionMode.NONE); + createSelectAction("Selection mode", "State", selectionModes, "multi", + new Command<Grid, Grid.SelectionMode>() { + @Override + public void execute(Grid grid, SelectionMode selectionMode, + Object data) { + grid.setSelectionMode(selectionMode); + } + }); } protected void createHeaderActions() { |