diff options
author | Jouni Koivuviita <jouni@vaadin.com> | 2014-08-07 10:35:59 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2014-08-11 18:30:58 +0000 |
commit | c21e8c3e76e6cda3a785d50d8d4e9301cb8c9c1a (patch) | |
tree | c2dc8259489800a865b84c209f014be1336d0abc | |
parent | ee124b34b2997e0d91363b8cd3eb9f50b035f48f (diff) | |
download | vaadin-framework-c21e8c3e76e6cda3a785d50d8d4e9301cb8c9c1a.tar.gz vaadin-framework-c21e8c3e76e6cda3a785d50d8d4e9301cb8c9c1a.zip |
Added more hierarchy levels to the hierarchical container in ValoThemeUI test
Change-Id: Ic35c2f77a5acb0221792ad0a0195e4566dbece00
-rw-r--r-- | uitest/src/com/vaadin/tests/themes/valo/ValoThemeUI.java | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUI.java b/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUI.java index 1f92265d9d..5f286989a0 100644 --- a/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUI.java +++ b/uitest/src/com/vaadin/tests/themes/valo/ValoThemeUI.java @@ -395,8 +395,34 @@ public class ValoThemeUI extends UI { sg.nextString(true) + " " + sg.nextString(false)); child.getItemProperty(ICON_PROPERTY).setValue( testIcon.get()); - ((Hierarchical) container).setChildrenAllowed(id, false); + // ((Hierarchical) container).setChildrenAllowed(id, false); ((Hierarchical) container).setParent(id, i); + + for (int k = 1; k < 5; k++) { + String id2 = id + " -> " + k; + child = container.addItem(id2); + child.getItemProperty(CAPTION_PROPERTY).setValue( + sg.nextString(true) + " " + + sg.nextString(false)); + child.getItemProperty(ICON_PROPERTY).setValue( + testIcon.get()); + // ((Hierarchical) container) + // .setChildrenAllowed(id, false); + ((Hierarchical) container).setParent(id2, id); + + for (int l = 1; l < 5; l++) { + String id3 = id2 + " -> " + l; + child = container.addItem(id3); + child.getItemProperty(CAPTION_PROPERTY).setValue( + sg.nextString(true) + " " + + sg.nextString(false)); + child.getItemProperty(ICON_PROPERTY).setValue( + testIcon.get()); + // ((Hierarchical) container) + // .setChildrenAllowed(id, false); + ((Hierarchical) container).setParent(id3, id2); + } + } } } } |