]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merge remote-tracking branch 'origin/6.8'
authorArtur Signell <artur@vaadin.com>
Tue, 31 Jan 2012 16:55:40 +0000 (18:55 +0200)
committerArtur Signell <artur@vaadin.com>
Tue, 31 Jan 2012 16:55:40 +0000 (18:55 +0200)
Conflicts:
WebContent/release-notes.html

1  2 
src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java
src/com/vaadin/terminal/gwt/client/ui/VCalendarPanel.java
src/com/vaadin/ui/Window.java

index a6cf51e80f6ecfd4d131cfc5d96e5eff9e69b2d3,5f6c29f182d68e6034a14e94bb6700a2b9ddf06a..e6c8642b84ac60e8c1704108c087fce82283bb7b
@@@ -889,37 -2344,40 +889,13 @@@ public class Window extends Panel imple
       */
      @Override
      public void focus() {
 -        if (getParent() != null) {
 -            /*
 -             * When focusing a sub-window it basically means it should be
 -             * brought to the front. Instead of just moving the keyboard focus
 -             * we focus the window and bring it top-most.
 -             */
 -            bringToFront();
 -        } else {
 -            super.focus();
 -        }
 -    }
 -
 -    /**
 -     * Notifies the child components and subwindows that the window is attached
 -     * to the application.
 -     */
 -    @Override
 -    public void attach() {
 -        super.attach();
 -        for (Window w : subwindows) {
 -            w.attach();
 -        }
 -    }
 -
 -    /**
 -     * Notifies the child components and subwindows that the window is detached
 -     * from the application.
 -     */
 -    @Override
 -    public void detach() {
 -        super.detach();
 -        for (Window w : subwindows) {
 -            w.detach();
 -        }
 +        /*
 +         * When focusing a sub-window it basically means it should be brought to
 +         * the front. Instead of just moving the keyboard focus we focus the
 +         * window and bring it top-most.
 +         */
 +        super.focus();
 +        bringToFront();
      }
  
-     /**
-      * Notifies the child components and subwindows that the window is attached
-      * to the application.
-      */
-     @Override
-     public void attach() {
-         super.attach();
-         for (Window w : subwindows) {
-             w.attach();
-         }
-     }
-     /**
-      * Notifies the child components and subwindows that the window is detached
-      * from the application.
-      */
-     @Override
-     public void detach() {
-         super.detach();
-         for (Window w : subwindows) {
-             w.detach();
-         }
-     }
  }