From: Matti Tahvonen Date: Thu, 30 Aug 2007 10:04:27 +0000 (+0000) Subject: subwindows now send attach events & works with focus correctly X-Git-Tag: 6.7.0.beta1~6051 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e26aebd3ab9e7c2c41947e705b561adc1488cb56;p=vaadin-framework.git subwindows now send attach events & works with focus correctly svn changeset:2154/svn branch:trunk --- diff --git a/src/com/itmill/toolkit/ui/Window.java b/src/com/itmill/toolkit/ui/Window.java index 48115ffb0d..3ac97df352 100644 --- a/src/com/itmill/toolkit/ui/Window.java +++ b/src/com/itmill/toolkit/ui/Window.java @@ -252,7 +252,7 @@ public class Window extends Panel implements URIHandler, ParameterHandler { * @return the Value of property parent. */ public final Component getParent() { - return null; + return super.getParent(); } /** @@ -823,8 +823,11 @@ public class Window extends Panel implements URIHandler, ParameterHandler { * the Focused component or null if none is focused. */ public void setFocusedComponent(Component.Focusable focusable) { - this.application.setFocusedComponent(focusable); - this.focusedComponent = focusable; + Application app = getApplication(); + if(app != null) { + app.setFocusedComponent(focusable); + this.focusedComponent = focusable; + } } /* Focusable id generator ****************************************** */