diff options
author | Artur Signell <artur@vaadin.com> | 2015-01-21 20:59:32 +0200 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2015-01-21 20:59:32 +0200 |
commit | c410fa7e85e0769369cee2cebd2cea538919af2b (patch) | |
tree | c7535bd48ae9c2b221a867e47f91515e1bbc2ffa /server/src/com/vaadin/data | |
parent | 74976a7ffcdd4ea3c19e799d16bf5430c6975420 (diff) | |
parent | f818f7cb44fc77db7252e97c78608ae6c67d6ab6 (diff) | |
download | vaadin-framework-c410fa7e85e0769369cee2cebd2cea538919af2b.tar.gz vaadin-framework-c410fa7e85e0769369cee2cebd2cea538919af2b.zip |
Merge remote-tracking branch 'origin/master' into grid
Conflicts:
client/src/com/vaadin/client/ui/VScrollTable.java
Change-Id: I79e003b2087e8e0e5c8aa6d25bdeb890ce9a60c5
Diffstat (limited to 'server/src/com/vaadin/data')
-rw-r--r-- | server/src/com/vaadin/data/util/ContainerHierarchicalWrapper.java | 14 |
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. * |