]> source.dussan.org Git - vaadin-framework.git/commitdiff
Make two more event classes static (#5855)
authorLeif Åstrand <leif@vaadin.com>
Tue, 4 Sep 2012 07:36:20 +0000 (10:36 +0300)
committerLeif Åstrand <leif@vaadin.com>
Tue, 4 Sep 2012 07:36:40 +0000 (10:36 +0300)
server/src/com/vaadin/Application.java

index 636204cbf0edb0cd22d081ed5b45d0f4919c3b9c..e4e49391bb5987a65b8c265fb32316c66d4c15bd 100644 (file)
@@ -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;
         }