From ebe75aa2b803db493fd8daab5b4e90f33e2e39d5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Tue, 4 Sep 2012 10:36:20 +0300 Subject: [PATCH] Make two more event classes static (#5855) --- server/src/com/vaadin/Application.java | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/server/src/com/vaadin/Application.java b/server/src/com/vaadin/Application.java index 636204cbf0..e4e49391bb 100644 --- a/server/src/com/vaadin/Application.java +++ b/server/src/com/vaadin/Application.java @@ -674,18 +674,20 @@ public class Application implements Terminal.ErrorListener, Serializable { * This event is sent each time a window is removed from the application * with {@link com.vaadin.Application#removeWindow(Window)}. */ - public class WindowDetachEvent extends EventObject { + public static class WindowDetachEvent extends EventObject { private final Window window; /** * Creates a event. * + * @param application + * the application to which the detached window belonged. * @param window * the Detached window. */ - public WindowDetachEvent(Window window) { - super(Application.this); + public WindowDetachEvent(Application application, Window window) { + super(application); this.window = window; } @@ -714,18 +716,20 @@ public class Application implements Terminal.ErrorListener, Serializable { * This event is sent each time a window is attached tothe application with * {@link com.vaadin.Application#addWindow(Window)}. */ - public class WindowAttachEvent extends EventObject { + public static class WindowAttachEvent extends EventObject { private final Window window; /** * Creates a event. * + * @param application + * the application to which the detached window belonged. * @param window * the Attached window. */ - public WindowAttachEvent(Window window) { - super(Application.this); + public WindowAttachEvent(Application application, Window window) { + super(application); this.window = window; } -- 2.39.5