summaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorJohannes Tuikkala <johannes@vaadin.com>2015-01-12 10:18:42 +0200
committerVaadin Code Review <review@vaadin.com>2015-01-20 10:31:01 +0000
commitb8ae4fc242495cc805ac931d708c918893c06183 (patch)
treedba6124bcc92fdcc2e90c0255f5424553b293541 /server/src
parent21b554709fb31131dca836710522bd89ddc2398c (diff)
downloadvaadin-framework-b8ae4fc242495cc805ac931d708c918893c06183.tar.gz
vaadin-framework-b8ae4fc242495cc805ac931d708c918893c06183.zip
Fix for: TreeTable with ContainerHierarchicalWrapper not correctly
displaying child items (#15421) Change-Id: Iadf1faa979fbae412b55551c6622b0429039a21c
Diffstat (limited to 'server/src')
-rw-r--r--server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java b/server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java
index 0bfec33957..199d186fab 100644
--- a/server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java
+++ b/server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java
@@ -450,6 +450,8 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
// Update parent
parent.remove(itemId);
+ fireItemSetChangeIfAbstractContainer();
+
return true;
}
@@ -490,10 +492,22 @@ public class ContainerHierarchicalWrapper implements Container.Hierarchical,
}
}
+ fireItemSetChangeIfAbstractContainer();
+
return true;
}
/**
+ * inform container (if it is instance of AbstractContainer) about the
+ * change in hierarchy (#15421)
+ */
+ private void fireItemSetChangeIfAbstractContainer() {
+ if (container instanceof AbstractContainer) {
+ ((AbstractContainer) container).fireItemSetChange();
+ }
+ }
+
+ /**
* Creates a new Item into the Container, assigns it an automatic ID, and
* adds it to the hierarchy.
*