]> source.dussan.org Git - vaadin-framework.git/commitdiff
Remove UIDL parameter from many caption related methods (#8435).
authorHenri Sara <hesara@vaadin.com>
Mon, 19 Mar 2012 09:43:23 +0000 (11:43 +0200)
committerArtur Signell <artur@vaadin.com>
Wed, 21 Mar 2012 15:53:54 +0000 (17:53 +0200)
Visibility change related code for captions removed from VCaption,
VCaptionWrapper and VFormLayout.Caption, should be handled by
removing/adding caption based on hierarchy change events.

27 files changed:
src/com/vaadin/terminal/gwt/client/ComponentContainerConnector.java
src/com/vaadin/terminal/gwt/client/VCaption.java
src/com/vaadin/terminal/gwt/client/VCaptionWrapper.java
src/com/vaadin/terminal/gwt/client/ui/AbsoluteLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java
src/com/vaadin/terminal/gwt/client/ui/AbstractOrderedLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/AbstractSplitPanelConnector.java
src/com/vaadin/terminal/gwt/client/ui/AccordionConnector.java
src/com/vaadin/terminal/gwt/client/ui/CssLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/CustomComponentConnector.java
src/com/vaadin/terminal/gwt/client/ui/CustomLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/FormConnector.java
src/com/vaadin/terminal/gwt/client/ui/FormLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/GridLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/PanelConnector.java
src/com/vaadin/terminal/gwt/client/ui/PopupViewConnector.java
src/com/vaadin/terminal/gwt/client/ui/RootConnector.java
src/com/vaadin/terminal/gwt/client/ui/TableConnector.java
src/com/vaadin/terminal/gwt/client/ui/TabsheetConnector.java
src/com/vaadin/terminal/gwt/client/ui/VAbsoluteLayout.java
src/com/vaadin/terminal/gwt/client/ui/VAccordion.java
src/com/vaadin/terminal/gwt/client/ui/VCssLayout.java
src/com/vaadin/terminal/gwt/client/ui/VCustomLayout.java
src/com/vaadin/terminal/gwt/client/ui/VFormLayout.java
src/com/vaadin/terminal/gwt/client/ui/VTabsheet.java
src/com/vaadin/terminal/gwt/client/ui/VTabsheetBase.java
src/com/vaadin/terminal/gwt/client/ui/WindowConnector.java

index f4855dfd4044edbc4584b0f7962de05e2fb1000b..e0438360e3221c6a51b7fb288c1858573b361366 100644 (file)
@@ -26,10 +26,8 @@ public interface ComponentContainerConnector extends ComponentConnector {
      * 
      * @param connector
      *            Child component for which service is requested.
-     * @param uidl
-     *            UIDL of the child component.
      */
-    void updateCaption(ComponentConnector connector, UIDL uidl);
+    void updateCaption(ComponentConnector connector);
 
     /**
      * Returns the children for this connector.
index 62c6604c586c71161dcea28fc502bee8028a2981..b8a105f21be325d06265b455ac8e783d8f09cfaf 100644 (file)
@@ -86,13 +86,10 @@ public class VCaption extends HTML {
      * This method may only be called when the caption has an owner - otherwise,
      * use {@link #updateCaptionWithoutOwner(UIDL, String, boolean, boolean)}.
      * 
-     * @param uidl
      * @return true if the position where the caption should be placed has
      *         changed
      */
-    public boolean updateCaption(UIDL uidl) {
-        setVisible(!uidl.getBooleanAttribute("invisible"));
-
+    public boolean updateCaption() {
         boolean wasPlacedAfterComponent = placedAfterComponent;
 
         // Caption is placed after component unless there is some part which
@@ -119,8 +116,7 @@ public class VCaption extends HTML {
             showError = showError && !abstractFieldState.isHideErrors();
         }
         if (owner instanceof AbstractFieldConnector) {
-            showRequired = ((AbstractFieldConnector) owner)
-                    .isRequired();
+            showRequired = ((AbstractFieldConnector) owner).isRequired();
         }
 
         if (hasIcon) {
@@ -252,13 +248,8 @@ public class VCaption extends HTML {
     }
 
     @Deprecated
-    public boolean updateCaptionWithoutOwner(UIDL uidl, String caption,
-            boolean disabled, boolean hasDescription, String iconURL) {
-        // TODO temporary method, needed because some tabsheet and accordion
-        // internal captions do not have an owner or shared state. Simplified to
-        // only support those cases
-        setVisible(!uidl.getBooleanAttribute("invisible"));
-
+    public boolean updateCaptionWithoutOwner(String caption, boolean disabled,
+            boolean hasDescription, String iconURL) {
         boolean wasPlacedAfterComponent = placedAfterComponent;
 
         // Caption is placed after component unless there is some part which
@@ -372,26 +363,29 @@ public class VCaption extends HTML {
         }
     }
 
-    public static boolean isNeeded(UIDL uidl, ComponentState state) {
-        if (state != null) {
-            if (state.getCaption() != null) {
-                return true;
-            }
-            if (state.getIcon() != null) {
-                return true;
-            }
-            if (state.getErrorMessage() != null) {
-                return true;
-            }
-        } else {
-            // TODO fallback for cases where the caption has no owner (Tabsheet,
-            // Accordion)
-            if (uidl.getStringAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_CAPTION) != null) {
-                return true;
-            }
-            if (uidl.hasAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_ICON)) {
-                return true;
-            }
+    @Deprecated
+    public static boolean isNeeded(UIDL uidl) {
+        // TODO fallback for cases where the caption has no owner (Tabsheet,
+        // Accordion)
+        if (uidl.getStringAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_CAPTION) != null) {
+            return true;
+        }
+        if (uidl.hasAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_ICON)) {
+            return true;
+        }
+
+        return false;
+    }
+
+    public static boolean isNeeded(ComponentState state) {
+        if (state.getCaption() != null) {
+            return true;
+        }
+        if (state.getIcon() != null) {
+            return true;
+        }
+        if (state.getErrorMessage() != null) {
+            return true;
         }
 
         return false;
index b96f9621d4f7fe321ede69653f19cba518a5ec5e..2c5d9384f42fcbfcde0d0a1cbc7b95fe42b29fc2 100644 (file)
@@ -29,9 +29,8 @@ public class VCaptionWrapper extends FlowPanel {
         setStyleName(CLASSNAME);
     }
 
-    public void updateCaption(UIDL uidl) {
-        caption.updateCaption(uidl);
-        setVisible(!uidl.getBooleanAttribute("invisible"));
+    public void updateCaption() {
+        caption.updateCaption();
     }
 
     public ComponentConnector getPaintable() {
index ca0d6bbc737d94e97aa0c22e3dbb3b5c2f814570..4f8d75ff67cb0bb0f7d59e71b4a61907fea13f37 100644 (file)
@@ -72,10 +72,10 @@ public class AbsoluteLayoutConnector extends
         }
     }
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
+    public void updateCaption(ComponentConnector component) {
         AbsoluteWrapper parent2 = (AbsoluteWrapper) (component.getWidget())
                 .getParent();
-        parent2.updateCaption(uidl);
+        parent2.updateCaption();
     }
 
     @Override
index de85f597df00f3b9bb9eb441205bf51cf8fd21f0..39815f5156265f932a425da67636b69b8fba0968 100644 (file)
@@ -29,9 +29,6 @@ public abstract class AbstractComponentConnector extends AbstractConnector
 
     private Widget widget;
 
-    /* State variables */
-    private boolean visible = true;
-
     // shared state from the server to the client
     private ComponentState state;
 
@@ -115,8 +112,6 @@ public abstract class AbstractComponentConnector extends AbstractConnector
         }
 
         ConnectorMap paintableMap = ConnectorMap.get(getConnection());
-        // Visibility
-        setVisible(!uidl.getBooleanAttribute("invisible"), uidl);
 
         if (getState().getDebugId() != null) {
             getWidget().getElement().setId(getState().getDebugId());
@@ -163,7 +158,7 @@ public abstract class AbstractComponentConnector extends AbstractConnector
         if (delegateCaptionHandling()) {
             ComponentContainerConnector parent = getParent();
             if (parent != null) {
-                parent.updateCaption(this, uidl);
+                parent.updateCaption(this);
             } else {
                 VConsole.error("Parent of connector "
                         + getClass().getName()
@@ -262,34 +257,6 @@ public abstract class AbstractComponentConnector extends AbstractConnector
         return true;
     }
 
-    /**
-     * Sets the visible state for this paintable.
-     * 
-     * @param visible
-     *            true if the paintable should be made visible, false otherwise
-     * @param captionUidl
-     *            The UIDL that is passed to the parent and onwards to VCaption
-     *            if the caption needs to be updated as a result of the
-     *            visibility change.
-     */
-    protected void setVisible(boolean visible, UIDL captionUidl) {
-        boolean wasVisible = this.visible;
-        this.visible = visible;
-
-        getWidget().setVisible(visible);
-        if (wasVisible != visible) {
-            // Changed invisibile <-> visible
-            if (wasVisible && delegateCaptionHandling()) {
-                // Must hide caption when component is hidden
-                getParent().updateCaption(this, captionUidl);
-            }
-        }
-    }
-
-    protected boolean isVisible() {
-        return visible;
-    }
-
     /**
      * Generates the style name for the widget based on the given primary style
      * name (typically returned by Widget.getPrimaryStyleName()) and the UIDL
index f4a65df56bd94fba859f4acb332e47a4bb3ddfec..dc0812c6f13e8a8ad6eb547e0d7d34af137f3dbd 100644 (file)
@@ -27,9 +27,9 @@ public abstract class AbstractOrderedLayoutConnector extends
                 getWidget().spacingMeasureElement);
     }
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
+    public void updateCaption(ComponentConnector component) {
         VMeasuringOrderedLayout layout = getWidget();
-        if (VCaption.isNeeded(uidl, component.getState())) {
+        if (VCaption.isNeeded(component.getState())) {
             VLayoutSlot layoutSlot = layout.getSlotForChild(component
                     .getWidget());
             VCaption caption = layoutSlot.getCaption();
@@ -40,7 +40,7 @@ public abstract class AbstractOrderedLayoutConnector extends
 
                 layout.setCaption(widget, caption);
             }
-            caption.updateCaption(uidl);
+            caption.updateCaption();
         } else {
             layout.setCaption(component.getWidget(), null);
             getLayoutManager().setNeedsUpdate(this);
index 5725f6d4f534f946705d8213324b89447fe75094..3426932aab86152898d9d901b5a6852e9e79d743 100644 (file)
@@ -55,7 +55,7 @@ public abstract class AbstractSplitPanelConnector extends
 
     public static final String SPLITTER_CLICK_EVENT_IDENTIFIER = "sp_click";
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
+    public void updateCaption(ComponentConnector component) {
         // TODO Implement caption handling
     }
 
index d0c663a6ced232d0a509823a86dcc50110547ade..267884ccc50b57aa08ae3ef15427cece11f9c153 100644 (file)
@@ -59,7 +59,7 @@ public class AccordionConnector extends TabsheetBaseConnector implements
         return GWT.create(VAccordion.class);
     }
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
+    public void updateCaption(ComponentConnector component) {
         /* Accordion does not render its children's captions */
     }
 
index d2a8497331ef4535b8652cec405a305081f7ec65..f714ab8bd7f29b9993dfa13afccbfe610526a6d0 100644 (file)
@@ -56,8 +56,8 @@ public class CssLayoutConnector extends AbstractComponentContainerConnector {
         return GWT.create(VCssLayout.class);
     }
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
-        getWidget().panel.updateCaption(component, uidl);
+    public void updateCaption(ComponentConnector component) {
+        getWidget().panel.updateCaption(component);
     }
 
 }
index 68593ab2810e0e6bdc193c6305ffea2cdffce166..e3e52bdb8ddf4ca1ab0e7fe4fa3a394c268fa9ac 100644 (file)
@@ -45,7 +45,7 @@ public class CustomComponentConnector extends
         return (VCustomComponent) super.getWidget();
     }
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
+    public void updateCaption(ComponentConnector component) {
         // NOP, custom component dont render composition roots caption
     }
 
index 2f2021ecd6506bd51dd1c84e9e32780a76948e1a..2941afe901bad272af9b3d12100b611028408640 100644 (file)
@@ -85,8 +85,8 @@ public class CustomLayoutConnector extends AbstractComponentContainerConnector
         return GWT.create(VCustomLayout.class);
     }
 
-    public void updateCaption(ComponentConnector paintable, UIDL uidl) {
-        getWidget().updateCaption(paintable, uidl);
+    public void updateCaption(ComponentConnector paintable) {
+        getWidget().updateCaption(paintable);
 
     }
 
index 146283ec03517852f172e8222144a92685c346cf..01bd8ce007cadcfd598312bb68592199e76f50f9 100644 (file)
@@ -65,8 +65,8 @@ public class FormConnector extends AbstractComponentContainerConnector
         }
 
         if (null != getState().getErrorMessage()) {
-            getWidget().errorMessage.updateMessage(getState()
-                    .getErrorMessage());
+            getWidget().errorMessage
+                    .updateMessage(getState().getErrorMessage());
             getWidget().errorMessage.setVisible(true);
         } else {
             getWidget().errorMessage.setVisible(false);
@@ -154,7 +154,7 @@ public class FormConnector extends AbstractComponentContainerConnector
         }
     }
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
+    public void updateCaption(ComponentConnector component) {
         // NOP form don't render caption for neither field layout nor footer
         // layout
     }
index 52eb4c98264a7a898cdba1d9b34fd5f850ab3e2a..1c402309accda504fbd9c58ede0e4f32337df847 100644 (file)
@@ -24,16 +24,16 @@ public class FormLayoutConnector extends AbstractComponentContainerConnector {
         getWidget().table.updateFromUIDL(uidl, client);
     }
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
+    public void updateCaption(ComponentConnector component) {
         final Caption c = getWidget().table.widgetToCaption.get(component
                 .getWidget());
         if (c != null) {
-            c.updateCaption(uidl, component.getState(), component.isEnabled());
+            c.updateCaption(component.getState(), component.isEnabled());
         }
         final ErrorFlag e = getWidget().table.widgetToError.get(component
                 .getWidget());
         if (e != null) {
-            e.updateFromUIDL(uidl, component);
+            e.updateFromUIDL(component);
         }
     }
 
index dbe490f01747318cab1629271ba44bde62655d71..3a3bd46f07e0dd0a90489ad721c88f5d0f8f77e6 100644 (file)
@@ -125,9 +125,9 @@ public class GridLayoutConnector extends AbstractComponentContainerConnector
         getLayoutManager().setNeedsUpdate(this);
     }
 
-    public void updateCaption(ComponentConnector paintable, UIDL uidl) {
+    public void updateCaption(ComponentConnector paintable) {
         VGridLayout layout = getWidget();
-        if (VCaption.isNeeded(uidl, paintable.getState())) {
+        if (VCaption.isNeeded(paintable.getState())) {
             Cell cell = layout.widgetToCell.get(paintable.getWidget());
             VLayoutSlot layoutSlot = cell.slot;
             VCaption caption = layoutSlot.getCaption();
@@ -138,7 +138,7 @@ public class GridLayoutConnector extends AbstractComponentContainerConnector
 
                 layout.setCaption(widget, caption);
             }
-            caption.updateCaption(uidl);
+            caption.updateCaption();
         } else {
             layout.setCaption(paintable.getWidget(), null);
         }
index 91320c3d8daea5f749f8d6a7786be697c0153752..95a0e6f2d59882d61026f0c8ecf7d001137fd2ff 100644 (file)
@@ -177,7 +177,7 @@ public class PanelConnector extends AbstractComponentContainerConnector
         getWidget().contentNode.setTabIndex(getState().getTabIndex());
     }
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
+    public void updateCaption(ComponentConnector component) {
         // NOP: layouts caption, errors etc not rendered in Panel
     }
 
index f1b6c4bbfa9424c504136b2db3979de064e39504..3b31301567fbbceb614cd9ea54233563b78d3fd4 100644 (file)
@@ -77,15 +77,15 @@ public class PopupViewConnector extends AbstractComponentContainerConnector {
         }
     }// updateFromUIDL
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
-        if (VCaption.isNeeded(uidl, component.getState())) {
+    public void updateCaption(ComponentConnector component) {
+        if (VCaption.isNeeded(component.getState())) {
             if (getWidget().popup.captionWrapper != null) {
-                getWidget().popup.captionWrapper.updateCaption(uidl);
+                getWidget().popup.captionWrapper.updateCaption();
             } else {
                 getWidget().popup.captionWrapper = new VCaptionWrapper(
                         component, getConnection());
                 getWidget().popup.setWidget(getWidget().popup.captionWrapper);
-                getWidget().popup.captionWrapper.updateCaption(uidl);
+                getWidget().popup.captionWrapper.updateCaption();
             }
         } else {
             if (getWidget().popup.captionWrapper != null) {
index 3aac8d7ac3cacb9ad70212f76a39f1c97c7a42c5..591e614b718cb5e37f5fd0d19db715cd4a212ada 100644 (file)
@@ -306,7 +306,7 @@ public class RootConnector extends AbstractComponentContainerConnector
         }
     };
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
+    public void updateCaption(ComponentConnector component) {
         // NOP The main view never draws caption for its layout
     }
 
index eae0cd61eee55931f1d92b3d118303a73d6b3525..572b09d7ddb39825f97fac57fd9f8d84a8eef9d9 100644 (file)
@@ -248,7 +248,7 @@ public class TableConnector extends AbstractComponentContainerConnector
         return (VScrollTable) super.getWidget();
     }
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
+    public void updateCaption(ComponentConnector component) {
         // NOP, not rendered
     }
 
index 6b2cf9efb0ac38b051e6505a5e30f06c1533c79a..180fb8ac3499cd5b90f6afc17c612eefd5f7869a 100644 (file)
@@ -71,7 +71,7 @@ public class TabsheetConnector extends TabsheetBaseConnector implements
         return (VTabsheet) super.getWidget();
     }
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
+    public void updateCaption(ComponentConnector component) {
         /* Tabsheet does not render its children's captions */
     }
 
index 88f525cb4e3796c1e113c2295ce8f48a071f62b3..103faff6ffce46aa050d3716cbc20c9ceb36a6be 100644 (file)
@@ -85,16 +85,15 @@ public class VAbsoluteLayout extends ComplexPanel {
             setStyleName(CLASSNAME + "-wrapper");
         }
 
-        public void updateCaption(UIDL uidl) {
+        public void updateCaption() {
 
-            boolean captionIsNeeded = VCaption.isNeeded(uidl,
-                    paintable.getState());
+            boolean captionIsNeeded = VCaption.isNeeded(paintable.getState());
             if (captionIsNeeded) {
                 if (caption == null) {
                     caption = new VCaption(paintable, client);
                     VAbsoluteLayout.this.add(caption);
                 }
-                caption.updateCaption(uidl);
+                caption.updateCaption();
                 updateCaptionPosition();
             } else {
                 if (caption != null) {
index e225895995084840d5b276487baeefd021cb7c46..cf07219516de655be0f697742fa79f5814809abb 100644 (file)
@@ -440,7 +440,6 @@ public class VAccordion extends VTabsheetBase {
         public void updateCaption(UIDL uidl) {
             // TODO need to call this because the caption does not have an owner
             caption.updateCaptionWithoutOwner(
-                    uidl,
                     uidl.getStringAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_CAPTION),
                     uidl.hasAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_DISABLED),
                     uidl.hasAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_DESCRIPTION),
index 9c9b2a7266c85be47942639aaf94f55b799c5bef..989e2af6b47900bf3ed5e3f6f0f87879c133bda2 100644 (file)
@@ -144,10 +144,10 @@ public class VCssLayout extends SimplePanel {
             insert(child, index);
         }
 
-        public void updateCaption(ComponentConnector paintable, UIDL uidl) {
+        public void updateCaption(ComponentConnector paintable) {
             Widget widget = paintable.getWidget();
             VCaption caption = widgetToCaption.get(widget);
-            if (VCaption.isNeeded(uidl, paintable.getState())) {
+            if (VCaption.isNeeded(paintable.getState())) {
                 if (caption == null) {
                     caption = new VCaption(paintable, client);
                     widgetToCaption.put(widget, caption);
@@ -157,7 +157,7 @@ public class VCssLayout extends SimplePanel {
                     insert(caption, getWidgetIndex(widget));
                     lastIndex++;
                 }
-                caption.updateCaption(uidl);
+                caption.updateCaption();
             } else if (caption != null) {
                 remove(caption);
                 widgetToCaption.remove(widget);
index 36d5fe98126bee9430dfc4abd93c7ebe7bad9fe8..8861a9bf24e733e22224b8515a00b73ec450460e 100644 (file)
@@ -300,10 +300,10 @@ public class VCustomLayout extends ComplexPanel {
     }
 
     /** Update caption for given widget */
-    public void updateCaption(ComponentConnector paintable, UIDL uidl) {
+    public void updateCaption(ComponentConnector paintable) {
         VCaptionWrapper wrapper = paintableToCaptionWrapper.get(paintable);
         Widget widget = paintable.getWidget();
-        if (VCaption.isNeeded(uidl, paintable.getState())) {
+        if (VCaption.isNeeded(paintable.getState())) {
             if (wrapper == null) {
                 // Add a wrapper between the layout and the child widget
                 final String loc = getLocation(widget);
@@ -312,7 +312,7 @@ public class VCustomLayout extends ComplexPanel {
                 super.add(wrapper, locationToElement.get(loc));
                 paintableToCaptionWrapper.put(paintable, wrapper);
             }
-            wrapper.updateCaption(uidl);
+            wrapper.updateCaption();
         } else {
             if (wrapper != null) {
                 // Remove the wrapper and add the widget directly to the layout
index 3ed63b9702a7e3a047d564a6be711333eeaa6217..1d7b053925a71ec88509f20a1108694aa26b4e37 100644 (file)
@@ -241,10 +241,7 @@ public class VFormLayout extends SimplePanel {
             setStyleName(styleName);
         }
 
-        public void updateCaption(UIDL uidl, ComponentState state,
-                boolean enabled) {
-            setVisible(!uidl.getBooleanAttribute("invisible"));
-
+        public void updateCaption(ComponentState state, boolean enabled) {
             // Update styles as they might have changed when the caption changed
             setStyles(getStylesFromState(state, enabled));
 
@@ -352,7 +349,7 @@ public class VFormLayout extends SimplePanel {
             sinkEvents(VTooltip.TOOLTIP_EVENTS);
         }
 
-        public void updateFromUIDL(UIDL uidl, ComponentConnector component) {
+        public void updateFromUIDL(ComponentConnector component) {
             owner = component;
             boolean showError = null != owner.getState().getErrorMessage();
             if (owner.getState() instanceof AbstractFieldState) {
index d54b40f52f8ad7198fe762580c2cc754128a1670..6e4f104b17da5518dfe9d8549f112e691d5ac3a2 100644 (file)
@@ -246,14 +246,14 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
             this.tab = tab;
         }
 
-        @Override
         public boolean updateCaption(UIDL uidl) {
             if (uidl.hasAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_DESCRIPTION)) {
                 TooltipInfo tooltipInfo = new TooltipInfo();
                 tooltipInfo
                         .setTitle(uidl
                                 .getStringAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_DESCRIPTION));
-                // TODO currently, there is no error indicator and message for a tab
+                // TODO currently, there is no error indicator and message for a
+                // tab
                 client.registerTooltip(getTabsheet(), getElement(), tooltipInfo);
             } else {
                 client.registerTooltip(getTabsheet(), getElement(), null);
@@ -262,7 +262,6 @@ public class VTabsheet extends VTabsheetBase implements Focusable,
             // TODO need to call this instead of super because the caption does
             // not have an owner
             boolean ret = updateCaptionWithoutOwner(
-                    uidl,
                     uidl.getStringAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_CAPTION),
                     uidl.hasAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_DISABLED),
                     uidl.hasAttribute(TabsheetBaseConnector.ATTRIBUTE_TAB_DESCRIPTION),
index 910400e77956e3dd9240f47571f6f1d8c617c30f..a499a354609c1b742a06cd47c7edeae2222ba8fd 100644 (file)
@@ -32,11 +32,7 @@ abstract class VTabsheetBase extends ComplexPanel {
     }
 
     /**
-     * @return a list of currently shown Paintables
-     * 
-     *         Apparently can be something else than Paintable as
-     *         {@link #updateFromUIDL(UIDL, ApplicationConnection)} checks if
-     *         instanceof Paintable. Therefore set to <Object>
+     * @return a list of currently shown Widgets
      */
     abstract protected Iterator<Widget> getWidgetIterator();
 
index 8d8931590d8c8f872c35fc2831d655d8ec66378c..c963b0877218c9ce92cff26e5ba75c0db434cdf5 100644 (file)
@@ -223,8 +223,8 @@ public class WindowConnector extends AbstractComponentContainerConnector
         }
     }
 
-    public void updateCaption(ComponentConnector component, UIDL uidl) {
-        // NOP, window has own caption, layout captio not rendered
+    public void updateCaption(ComponentConnector component) {
+        // NOP, window has own caption, layout caption not rendered
     }
 
     public void onBeforeShortcutAction(Event e) {