diff options
author | Leif Åstrand <leif@vaadin.com> | 2012-09-04 10:36:20 +0300 |
---|---|---|
committer | Leif Åstrand <leif@vaadin.com> | 2012-09-04 10:36:40 +0300 |
commit | ebe75aa2b803db493fd8daab5b4e90f33e2e39d5 (patch) | |
tree | 624783140b3fc064cea01f7117e51ce9b7e32d68 | |
parent | dd6265dcf5376fe4ead3fab7dbe10df2099389c7 (diff) | |
download | vaadin-framework-ebe75aa2b803db493fd8daab5b4e90f33e2e39d5.tar.gz vaadin-framework-ebe75aa2b803db493fd8daab5b4e90f33e2e39d5.zip |
Make two more event classes static (#5855)
-rw-r--r-- | server/src/com/vaadin/Application.java | 16 |
1 files 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; } |