]> source.dussan.org Git - vaadin-framework.git/commitdiff
#8324 Fixed VAbsoluteLayoutPaintable to be a container
authorArtur Signell <artur@vaadin.com>
Tue, 31 Jan 2012 11:45:16 +0000 (13:45 +0200)
committerArtur Signell <artur@vaadin.com>
Tue, 31 Jan 2012 13:08:29 +0000 (15:08 +0200)
src/com/vaadin/terminal/gwt/client/ui/VAbsoluteLayout.java
src/com/vaadin/terminal/gwt/client/ui/VAbsoluteLayoutPaintable.java

index 7a659223141b1b36f16f8518c7d00431006a5e0b..48019a11f60368a53f5c9c8329b6b9262242581e 100644 (file)
@@ -116,12 +116,6 @@ public class VAbsoluteLayout extends ComplexPanel {
         return true;
     }
 
-    public void updateCaption(VPaintableWidget component, UIDL uidl) {
-        AbsoluteWrapper parent2 = (AbsoluteWrapper) (component
-                .getWidgetForPaintable()).getParent();
-        parent2.updateCaption(uidl);
-    }
-
     AbsoluteWrapper getWrapper(ApplicationConnection client, UIDL componentUIDL) {
         AbsoluteWrapper wrapper = pidToComponentWrappper.get(componentUIDL
                 .getId());
index b054e57eeb895831b3a7e0e3de0c28d40fa9474f..27535806c1644b5c5e8165f188c5a0a89ef78c3f 100644 (file)
@@ -15,7 +15,7 @@ import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.VPaintableWidget;\r
 import com.vaadin.terminal.gwt.client.ui.VAbsoluteLayout.AbsoluteWrapper;\r
 \r
-public class VAbsoluteLayoutPaintable extends VAbstractPaintableWidget {\r
+public class VAbsoluteLayoutPaintable extends VAbstractPaintableWidgetContainer {\r
 \r
     private LayoutClickEventHandler clickEventHandler = new LayoutClickEventHandler(\r
             this, EventId.LAYOUT_CLICK) {\r
@@ -66,6 +66,12 @@ public class VAbsoluteLayoutPaintable extends VAbstractPaintableWidget {
         getWidgetForPaintable().rendering = false;\r
     }\r
 \r
+    public void updateCaption(VPaintableWidget component, UIDL uidl) {\r
+        AbsoluteWrapper parent2 = (AbsoluteWrapper) (component\r
+                .getWidgetForPaintable()).getParent();\r
+        parent2.updateCaption(uidl);\r
+    }\r
+\r
     @Override\r
     protected Widget createWidget() {\r
         return GWT.create(VAbsoluteLayout.class);\r