diff options
author | Pekka Hyvönen <pekka@vaadin.com> | 2015-04-08 11:46:28 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-04-09 06:39:45 +0000 |
commit | 59d5a799d63cfafbf02e0d680f99758da1a3338a (patch) | |
tree | e53e88d006e9c1914ebe954ab91e3348ec984586 /uitest/src/com/vaadin/tests/components | |
parent | db5fc67b3833e0424f5773c68dd98291282ebad1 (diff) | |
download | vaadin-framework-59d5a799d63cfafbf02e0d680f99758da1a3338a.tar.gz vaadin-framework-59d5a799d63cfafbf02e0d680f99758da1a3338a.zip |
Use MenuBar in Grid's sidebar for column hiding #17332
Change-Id: I3b15430c6f8dab6dadcd84ddf280153e91192c5f
Diffstat (limited to 'uitest/src/com/vaadin/tests/components')
-rw-r--r-- | uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java index 94620f34bd..2abd603ae4 100644 --- a/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java +++ b/uitest/src/com/vaadin/tests/components/grid/basicfeatures/GridBasicFeatures.java @@ -759,7 +759,6 @@ public class GridBasicFeatures extends AbstractComponentTest<Grid> { @SuppressWarnings("boxing") protected void createColumnActions() { createCategory("Columns", null); - for (int c = 0; c < COLUMNS; c++) { final int index = c; createCategory(getColumnProperty(c), "Columns"); @@ -974,6 +973,17 @@ public class GridBasicFeatures extends AbstractComponentTest<Grid> { }, c); } + createBooleanAction("All columns hidable", "Columns", false, + new Command<Grid, Boolean>() { + + @Override + public void execute(Grid c, Boolean value, Object data) { + for (Column col : grid.getColumns()) { + col.setHidable(value); + } + + } + }); } private static String getColumnProperty(int c) { |