summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Dahlström <johannes.dahlstrom@vaadin.com>2011-12-22 14:14:05 +0000
committerJohannes Dahlström <johannes.dahlstrom@vaadin.com>2011-12-22 14:14:05 +0000
commitf4dd777d871553606968ee103b1cc0416401a49a (patch)
treef3a4e5422a720aef802bdb6af516a91405d76c09
parentb8f9716602d8107542f0bba9b75ee440c38267a3 (diff)
downloadvaadin-framework-f4dd777d871553606968ee103b1cc0416401a49a.tar.gz
vaadin-framework-f4dd777d871553606968ee103b1cc0416401a49a.zip
#8170: Symmetrically with attach(), Window.detach() should call detach() for subwindows
svn changeset:22472/svn branch:6.7
-rw-r--r--src/com/vaadin/ui/Window.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/com/vaadin/ui/Window.java b/src/com/vaadin/ui/Window.java
index 661174ca85..7e33f91d31 100644
--- a/src/com/vaadin/ui/Window.java
+++ b/src/com/vaadin/ui/Window.java
@@ -2391,4 +2391,17 @@ public class Window extends Panel implements URIHandler, ParameterHandler,
w.attach();
}
}
+
+ /**
+ * Notifies the child components and subwindows that the window is detached
+ * from the application.
+ */
+ @Override
+ public void detach() {
+ super.detach();
+ for (Window w : subwindows) {
+ w.detach();
+ }
+ }
+
}