From d9cbbe89d35d7b8110376b7bf9adce0a4e1e39c6 Mon Sep 17 00:00:00 2001 From: Denis Anisimov Date: Thu, 23 Oct 2014 19:35:39 +0300 Subject: Fire attach/detach events when Window is added/removed from UI (#14908). Change-Id: Idc51aa5ab97a9d3f7a1f316d9536ae1cbaeafe38 --- server/src/com/vaadin/ui/UI.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/src') 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; } -- cgit v1.2.3