]> source.dussan.org Git - vaadin-framework.git/commitdiff
API naming change, needs update -> needs layout
authorLeif Åstrand <leif@vaadin.com>
Thu, 12 Apr 2012 13:51:01 +0000 (16:51 +0300)
committerLeif Åstrand <leif@vaadin.com>
Thu, 12 Apr 2012 13:51:22 +0000 (16:51 +0300)
src/com/vaadin/terminal/gwt/client/LayoutManager.java
src/com/vaadin/terminal/gwt/client/ui/AbstractComponentConnector.java
src/com/vaadin/terminal/gwt/client/ui/gridlayout/GridLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/menubar/MenuBarConnector.java
src/com/vaadin/terminal/gwt/client/ui/orderedlayout/AbstractOrderedLayoutConnector.java
src/com/vaadin/terminal/gwt/client/ui/splitpanel/AbstractSplitPanelConnector.java
src/com/vaadin/terminal/gwt/client/ui/table/TableConnector.java
src/com/vaadin/terminal/gwt/client/ui/twincolselect/TwinColSelectConnector.java

index 4338f1284a4fdbc0f02f38e4e27a7f5340c71e20..d0bd841dad52b578264b45982228b4f5285d571b 100644 (file)
@@ -69,7 +69,7 @@ public class LayoutManager {
 
     public void registerDependency(ManagedLayout owner, Element element) {
         MeasuredSize measuredSize = ensureMeasured(element);
-        setNeedsUpdate(owner);
+        setNeedsLayout(owner);
         measuredSize.addDependent(owner.getConnectorId());
     }
 
@@ -528,7 +528,7 @@ public class LayoutManager {
                 .getComponentConnectors();
         for (ComponentConnector connector : paintableWidgets) {
             if (connector instanceof ManagedLayout) {
-                setNeedsUpdate((ManagedLayout) connector);
+                setNeedsLayout((ManagedLayout) connector);
             }
         }
         setEverythingNeedsMeasure();
@@ -536,16 +536,16 @@ public class LayoutManager {
     }
 
     // TODO Rename to setNeedsLayout
-    public final void setNeedsUpdate(ManagedLayout layout) {
-        setWidthNeedsUpdate(layout);
-        setHeightNeedsUpdate(layout);
+    public final void setNeedsLayout(ManagedLayout layout) {
+        setNeedsHorizontalLayout(layout);
+        setNeedsVerticalLayout(layout);
     }
 
-    public final void setWidthNeedsUpdate(ManagedLayout layout) {
+    public final void setNeedsHorizontalLayout(ManagedLayout layout) {
         needsHorizontalLayout.add(layout);
     }
 
-    public final void setHeightNeedsUpdate(ManagedLayout layout) {
+    public final void setNeedsVerticalLayout(ManagedLayout layout) {
         needsVerticalLayout.add(layout);
     }
 
index 9542bb81d4e2fcf2d348db4d07fd1432db83d988..f9b03f04fa6e554530352c7972f2d75cb37d6f20 100644 (file)
@@ -151,14 +151,14 @@ public abstract class AbstractComponentConnector extends AbstractConnector
         if (newWidth.endsWith("%") != lastKnownWidth.endsWith("%")) {
             ComponentContainerConnector parent = getParent();
             if (parent instanceof ManagedLayout) {
-                getLayoutManager().setWidthNeedsUpdate((ManagedLayout) parent);
+                getLayoutManager().setNeedsHorizontalLayout((ManagedLayout) parent);
             }
         }
 
         if (newHeight.endsWith("%") != lastKnownHeight.endsWith("%")) {
             ComponentContainerConnector parent = getParent();
             if (parent instanceof ManagedLayout) {
-                getLayoutManager().setHeightNeedsUpdate((ManagedLayout) parent);
+                getLayoutManager().setNeedsVerticalLayout((ManagedLayout) parent);
             }
         }
 
index 70b0952d9d18ab534be3b7142467867917c9b8c7..82f26383a1a2b8d5c8347056bf59fa014754f293 100644 (file)
@@ -160,7 +160,7 @@ public class GridLayoutConnector extends AbstractComponentContainerConnector
                 updateCaption(child);
             }
         }
-        getLayoutManager().setNeedsUpdate(this);
+        getLayoutManager().setNeedsLayout(this);
     }
 
     @Override
index abdeaae61edf36582b32a014de46353010ce501d..d063c89ca96dd7891de4091131dd86ba69d433d3 100644 (file)
@@ -149,7 +149,7 @@ public class MenuBarConnector extends AbstractComponentConnector implements
             }
         }// while
 
-        getLayoutManager().setWidthNeedsUpdate(this);
+        getLayoutManager().setNeedsHorizontalLayout(this);
 
     }// updateFromUIDL
 
index 4a9190e0f1cee3e4a7648b7654ccea990a7a7120..47c16e7c401a83c98ed4c47ff34db23c8cdfde96 100644 (file)
@@ -91,7 +91,7 @@ public abstract class AbstractOrderedLayoutConnector extends
             caption.updateCaption();
         } else {
             layout.setCaption(component.getWidget(), null);
-            getLayoutManager().setNeedsUpdate(this);
+            getLayoutManager().setNeedsLayout(this);
         }
     }
 
@@ -137,7 +137,7 @@ public abstract class AbstractOrderedLayoutConnector extends
 
         layout.updateSpacingStyleName(getState().isSpacing());
 
-        getLayoutManager().setNeedsUpdate(this);
+        getLayoutManager().setNeedsLayout(this);
     }
 
     private int getSizeForInnerSize(int size, boolean isVertical) {
index f8fd2faf4138ef15b28c9817b52f0f61f2573470..7340c2cbd94f45b9d269221793b026de35321aea 100644 (file)
@@ -134,7 +134,7 @@ public abstract class AbstractSplitPanelConnector extends
         // appearing/disappearing scrollbars into account.
         getConnection().runDescendentsLayout(getWidget());
 
-        getLayoutManager().setNeedsUpdate(this);
+        getLayoutManager().setNeedsLayout(this);
 
     }
 
index b53ee469cc2d4077fd1eeaa99c9119c434dc6978..d84b8f01e00cf31ff523edead69d7f88e3e1ea2f 100644 (file)
@@ -292,7 +292,7 @@ public class TableConnector extends AbstractComponentContainerConnector
                     getLayoutManager().setNeedsMeasure(
                             TableConnector.this.getParent());
                     getLayoutManager()
-                            .setHeightNeedsUpdate(TableConnector.this);
+                            .setNeedsVerticalLayout(TableConnector.this);
                     getLayoutManager().layoutNow();
                 }
             });
index 6f8773a4ceefd0dc3d84ab6a120cbf533d39ea2e..328d0fc18b8aac9e846cc265d017bdfc81851c07 100644 (file)
@@ -23,7 +23,7 @@ public class TwinColSelectConnector extends OptionGroupBaseConnector implements
         // correctly
         if (isRealUpdate(uidl)) {
             getWidget().updateCaptions(uidl);
-            getLayoutManager().setWidthNeedsUpdate(this);
+            getLayoutManager().setNeedsHorizontalLayout(this);
         }
 
         super.updateFromUIDL(uidl, client);