]> source.dussan.org Git - vaadin-framework.git/commitdiff
Leaf nodes no longer look expandable (fixes #1686)
authorMarc Englund <marc.englund@itmill.com>
Wed, 11 Jun 2008 07:30:35 +0000 (07:30 +0000)
committerMarc Englund <marc.englund@itmill.com>
Wed, 11 Jun 2008 07:30:35 +0000 (07:30 +0000)
svn changeset:4852/svn branch:trunk

src/com/itmill/toolkit/demo/featurebrowser/TreeExample.java

index 694c839fb46b7b7a61b84a597fefd7ada3732de4..8ba9b99474465149443ada11067cebaa784f0d08 100644 (file)
@@ -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;
     }