]> source.dussan.org Git - vaadin-framework.git/commitdiff
Change internal naming for notifiable -> managed
authorLeif Åstrand <leif@vaadin.com>
Mon, 27 Feb 2012 13:37:13 +0000 (15:37 +0200)
committerLeif Åstrand <leif@vaadin.com>
Mon, 27 Feb 2012 13:37:13 +0000 (15:37 +0200)
src/com/vaadin/terminal/gwt/client/LayoutManager.java

index d125543c2dbd6c06141c9caf8036175f6fd119f8..f2117dc51339bfaa11b74da3b8b8e1ac8cdddbc9 100644 (file)
@@ -118,25 +118,25 @@ public class LayoutManager {
 
             for (VPaintableWidget paintable : paintableWidgets) {
                 MeasuredSize measuredSize = getMeasuredSize(paintable);
-                boolean notifiableType = isNotifiableType(paintable);
+                boolean managed = isManagedLayout(paintable);
 
                 VPaintableWidgetContainer parent = paintable.getParent();
-                boolean parentNotifiable = parent != null
-                        && isNotifiableType(parent);
+                boolean managedParent = parent != null
+                        && isManagedLayout(parent);
 
                 if (measuredSize.isHeightNeedsUpdate()) {
-                    if (notifiableType) {
+                    if (managed) {
                         needsHeightUpdate.add(paintable.getId());
                     }
-                    if (!paintable.isRelativeHeight() && parentNotifiable) {
+                    if (!paintable.isRelativeHeight() && managedParent) {
                         needsHeightUpdate.add(parent.getId());
                     }
                 }
                 if (measuredSize.isWidthNeedsUpdate()) {
-                    if (notifiableType) {
+                    if (managed) {
                         needsWidthUpdate.add(paintable.getId());
                     }
-                    if (!paintable.isRelativeWidth() && parentNotifiable) {
+                    if (!paintable.isRelativeWidth() && managedParent) {
                         needsWidthUpdate.add(parent.getId());
                     }
                 }
@@ -258,9 +258,8 @@ public class LayoutManager {
         }
     }
 
-    private static boolean isNotifiableType(VPaintableWidget paintable) {
-        return paintable instanceof SimpleManagedLayout
-                || paintable instanceof DirectionalManagedLayout;
+    private static boolean isManagedLayout(VPaintableWidget paintable) {
+        return paintable instanceof ManagedLayout;
     }
 
     public void foceLayout() {