diff options
author | Denis Anisimov <denis@vaadin.com> | 2014-10-23 19:35:39 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2014-10-29 10:16:31 +0000 |
commit | b5d16c53055fc3cda6fca637713fe2a045a765fb (patch) | |
tree | 0c1cd2ca0d823c2ccf19673eb8da44cecfd6266f /server/src | |
parent | 8d036d968a24dc1ee1690d86bdc73cbe718a8ad7 (diff) | |
download | vaadin-framework-b5d16c53055fc3cda6fca637713fe2a045a765fb.tar.gz vaadin-framework-b5d16c53055fc3cda6fca637713fe2a045a765fb.zip |
Fire attach/detach events when Window is added/removed from UI (#14908).
Change-Id: Idc51aa5ab97a9d3f7a1f316d9536ae1cbaeafe38
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/com/vaadin/ui/UI.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/UI.java b/server/src/com/vaadin/ui/UI.java index 438b086ec2..78cb5488e8 100644 --- a/server/src/com/vaadin/ui/UI.java +++ b/server/src/com/vaadin/ui/UI.java @@ -499,6 +499,7 @@ public abstract class UI extends AbstractSingleComponentContainer implements private void attachWindow(Window w) { windows.add(w); w.setParent(this); + fireComponentAttachEvent(w); markAsDirty(); } @@ -523,6 +524,7 @@ public abstract class UI extends AbstractSingleComponentContainer implements window.setParent(null); markAsDirty(); window.fireClose(); + fireComponentDetachEvent(window); return true; } |