diff options
author | Denis Anisimov <denis@vaadin.com> | 2014-10-23 19:35:39 +0300 |
---|---|---|
committer | Sauli Tähkäpää <sauli@vaadin.com> | 2014-11-10 12:57:38 +0200 |
commit | d9cbbe89d35d7b8110376b7bf9adce0a4e1e39c6 (patch) | |
tree | 820b3d371e15ef456e963c8de60d7583320b2c2f /server/src | |
parent | 672fee934c804fa232e8d573142a37746cceff77 (diff) | |
download | vaadin-framework-d9cbbe89d35d7b8110376b7bf9adce0a4e1e39c6.tar.gz vaadin-framework-d9cbbe89d35d7b8110376b7bf9adce0a4e1e39c6.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; } |