summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2010-02-23 08:30:01 +0000
committerArtur Signell <artur.signell@itmill.com>2010-02-23 08:30:01 +0000
commit40cddca975b102d8195704f63c4a841266f8179b (patch)
tree10cf7a235e9201ca7196bbbc8dc8c9bc8dcd22a6 /src
parentea74f719748411a2a096cefb3f39016cbf7f0710 (diff)
downloadvaadin-framework-40cddca975b102d8195704f63c4a841266f8179b.tar.gz
vaadin-framework-40cddca975b102d8195704f63c4a841266f8179b.zip
Fix for #4215 and #4216 for ContainerHierarchicalWrapper
svn changeset:11478/svn branch:6.3
Diffstat (limited to 'src')
-rw-r--r--src/com/vaadin/data/util/ContainerHierarchicalWrapper.java13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java b/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java
index 6420aaf838..72d6962736 100644
--- a/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java
+++ b/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java
@@ -217,7 +217,12 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
return ((Container.Hierarchical) container)
.areChildrenAllowed(itemId);
}
- return !noChildrenAllowed.contains(itemId);
+
+ if (noChildrenAllowed.contains(itemId)) {
+ return false;
+ }
+
+ return containsId(itemId);
}
/*
@@ -281,7 +286,11 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
return ((Container.Hierarchical) container).isRoot(itemId);
}
- return parent.get(itemId) == null;
+ if (parent.containsKey(itemId)) {
+ return false;
+ }
+
+ return containsId(itemId);
}
/*