From 59d5a799d63cfafbf02e0d680f99758da1a3338a Mon Sep 17 00:00:00 2001 From: Pekka Hyvönen Date: Wed, 8 Apr 2015 11:46:28 +0300 Subject: Use MenuBar in Grid's sidebar for column hiding #17332 Change-Id: I3b15430c6f8dab6dadcd84ddf280153e91192c5f --- .../components/grid/basicfeatures/GridBasicFeatures.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'uitest/src/com/vaadin') 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 { @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 { }, c); } + createBooleanAction("All columns hidable", "Columns", false, + new Command() { + + @Override + public void execute(Grid c, Boolean value, Object data) { + for (Column col : grid.getColumns()) { + col.setHidable(value); + } + + } + }); } private static String getColumnProperty(int c) { -- cgit v1.2.3