diff options
author | Aleksi Hietanen <aleksi@vaadin.com> | 2017-05-15 13:49:56 +0300 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-05-16 15:35:17 +0300 |
commit | 75be04cfb516da4f395a18713a7549c0276c1714 (patch) | |
tree | bcb6408a639c6125b81242aedf4d0a95b0a4c26d /uitest | |
parent | b153ba2f8b8539df45ace39864fd0db4a4c26e4d (diff) | |
download | vaadin-framework-75be04cfb516da4f395a18713a7549c0276c1714.tar.gz vaadin-framework-75be04cfb516da4f395a18713a7549c0276c1714.zip |
Add ItemCollapseAllowedProvider interface
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/src/main/java/com/vaadin/tests/components/treegrid/TreeGridBasicFeatures.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/uitest/src/main/java/com/vaadin/tests/components/treegrid/TreeGridBasicFeatures.java b/uitest/src/main/java/com/vaadin/tests/components/treegrid/TreeGridBasicFeatures.java index 13064c4c39..911c13f449 100644 --- a/uitest/src/main/java/com/vaadin/tests/components/treegrid/TreeGridBasicFeatures.java +++ b/uitest/src/main/java/com/vaadin/tests/components/treegrid/TreeGridBasicFeatures.java @@ -17,6 +17,7 @@ import com.vaadin.server.SerializablePredicate; import com.vaadin.shared.Range; import com.vaadin.tests.components.AbstractComponentTest; import com.vaadin.tests.data.bean.HierarchicalTestBean; +import com.vaadin.ui.ItemCollapseAllowedProvider; import com.vaadin.ui.TreeGrid; @Theme("valo") @@ -137,7 +138,7 @@ public class TreeGridBasicFeatures extends AbstractComponentTest<TreeGrid> { } private void createCollapseAllowedSelect() { - LinkedHashMap<String, SerializablePredicate<HierarchicalTestBean>> options = new LinkedHashMap<>(); + LinkedHashMap<String, ItemCollapseAllowedProvider<HierarchicalTestBean>> options = new LinkedHashMap<>(); options.put("all allowed", t -> true); options.put("all disabled", t -> false); options.put("depth 0 disabled", t -> t.getDepth() != 0); |