]> source.dussan.org Git - vaadin-framework.git/commitdiff
Rename paintable -> connector internally
authorLeif Åstrand <leif@vaadin.com>
Mon, 16 Apr 2012 11:26:56 +0000 (14:26 +0300)
committerLeif Åstrand <leif@vaadin.com>
Mon, 16 Apr 2012 11:31:04 +0000 (14:31 +0300)
src/com/vaadin/terminal/gwt/client/LayoutManager.java

index d0bd841dad52b578264b45982228b4f5285d571b..07b8debc79eb93475ec5ac40b5946520ffe0ff2a 100644 (file)
@@ -30,7 +30,7 @@ public class LayoutManager {
     private static final boolean debugLogging = false;
 
     private ApplicationConnection connection;
-    private final Set<Element> measuredNonPaintableElements = new HashSet<Element>();
+    private final Set<Element> measuredNonConnectorElements = new HashSet<Element>();
     private final MeasuredSize nullSize = new MeasuredSize();
 
     private LayoutDependencyTree currentDependencyTree;
@@ -79,7 +79,7 @@ public class LayoutManager {
             measuredSize = new MeasuredSize();
 
             if (ConnectorMap.get(connection).getConnector(element) == null) {
-                measuredNonPaintableElements.add(element);
+                measuredNonConnectorElements.add(element);
             }
             setMeasuredSize(element, measuredSize);
         }
@@ -195,7 +195,7 @@ public class LayoutManager {
         }
         needsMeasure.clear();
 
-        measureNonPaintables();
+        measureNonConnectors();
 
         VConsole.log("Layout init in " + totalDuration.elapsedMillis() + " ms");
 
@@ -473,12 +473,12 @@ public class LayoutManager {
         }
     }
 
-    private void measureNonPaintables() {
-        for (Element element : measuredNonPaintableElements) {
+    private void measureNonConnectors() {
+        for (Element element : measuredNonConnectorElements) {
             measuredAndUpdate(element, getMeasuredSize(element, null));
         }
-        VConsole.log("Measured " + measuredNonPaintableElements.size()
-                + " non paintable elements");
+        VConsole.log("Measured " + measuredNonConnectorElements.size()
+                + " non connector elements");
     }
 
     private MeasureResult measuredAndUpdate(Element element,
@@ -518,15 +518,15 @@ public class LayoutManager {
         }
     }
 
-    private static boolean isManagedLayout(ComponentConnector paintable) {
-        return paintable instanceof ManagedLayout;
+    private static boolean isManagedLayout(ComponentConnector connector) {
+        return connector instanceof ManagedLayout;
     }
 
     public void forceLayout() {
-        ConnectorMap paintableMap = connection.getConnectorMap();
-        ComponentConnector[] paintableWidgets = paintableMap
+        ConnectorMap connectorMap = connection.getConnectorMap();
+        ComponentConnector[] componentConnectors = connectorMap
                 .getComponentConnectors();
-        for (ComponentConnector connector : paintableWidgets) {
+        for (ComponentConnector connector : componentConnectors) {
             if (connector instanceof ManagedLayout) {
                 setNeedsLayout((ManagedLayout) connector);
             }
@@ -700,7 +700,7 @@ public class LayoutManager {
 
     private void stopMeasuringIfUnecessary(Element element) {
         if (!needsMeasure(element)) {
-            measuredNonPaintableElements.remove(element);
+            measuredNonConnectorElements.remove(element);
             setMeasuredSize(element, null);
         }
     }