diff options
Diffstat (limited to 'src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java')
-rw-r--r-- | src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java b/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java index 694c839fb4..8ba9b99474 100644 --- a/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java +++ b/src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java @@ -151,7 +151,9 @@ public class TreeExample extends CustomComponent implements Action.Handler, final Property p = item.getItemProperty(CAPTION_PROPERTY); p.setValue(caption); if (parent != null) { + tree.setChildrenAllowed(parent, true); tree.setParent(id, parent); + tree.setChildrenAllowed(id, false); } return id; } |