]> source.dussan.org Git - vaadin-framework.git/commitdiff
Renamed method to better reflect what it does (#6219, #8399)
authorArtur Signell <artur.signell@itmill.com>
Fri, 3 Aug 2012 07:50:47 +0000 (07:50 +0000)
committerArtur Signell <artur.signell@itmill.com>
Fri, 3 Aug 2012 07:50:47 +0000 (07:50 +0000)
svn changeset:24049/svn branch:6.8

src/com/vaadin/terminal/gwt/client/ui/VMenuBar.java
src/com/vaadin/terminal/gwt/client/ui/VOverlay.java
src/com/vaadin/terminal/gwt/client/ui/VPopupView.java

index d0c5952de22d7d48b489793fc01678ed87b2abfe..d89cec9ad6b749da190d327a845e904db6201991 100644 (file)
@@ -793,7 +793,7 @@ public class VMenuBar extends SimpleFocusablePanel implements Paintable,
                             contentWidth + Util.getNativeScrollbarSize(),
                             Unit.PX);
                 }
-                popup.sizeUpdated();
+                popup.sizeOrPositionUpdated();
             }
         }
         return top;
index 6f4c5e70bb847fab8e1f6a6ae1e697d08a29c4b8..31ed3ebb5d6fe0aaef6b66e21a87429de6ae80a6 100644 (file)
@@ -224,7 +224,7 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
         style.setMarginLeft(-adjustByRelativeLeftBodyMargin(), Unit.PX);
         style.setMarginTop(-adjustByRelativeTopBodyMargin(), Unit.PX);
         super.setPopupPosition(left, top);
-        sizeUpdated(isAnimationEnabled() ? 0 : 1);
+        sizeOrPositionUpdated(isAnimationEnabled() ? 0 : 1);
     }
 
     private IFrameElement getShimElement() {
@@ -315,7 +315,7 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
         if (isAnimationEnabled()) {
             new ResizeAnimation().run(POPUP_PANEL_ANIMATION_DURATION);
         } else {
-            sizeUpdated(1.0);
+            sizeOrPositionUpdated(1.0);
         }
         Util.runIE7ZeroSizedBodyFix();
     }
@@ -347,13 +347,13 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
     @Override
     public void setWidth(String width) {
         super.setWidth(width);
-        sizeUpdated(1.0);
+        sizeOrPositionUpdated(1.0);
     }
 
     @Override
     public void setHeight(String height) {
         super.setHeight(height);
-        sizeUpdated(1.0);
+        sizeOrPositionUpdated(1.0);
     }
 
     /**
@@ -377,15 +377,15 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
      * size of overlay without using normal 'setWidth(String)' and
      * 'setHeight(String)' methods (if not calling super.setWidth/Height).
      * 
-     * @deprecated Call {@link #sizeUpdated()} instead.
+     * @deprecated Call {@link #sizeOrPositionUpdated()} instead.
      */
     @Deprecated
     protected void updateShadowSizeAndPosition() {
-        sizeUpdated();
+        sizeOrPositionUpdated();
     }
 
-    protected void sizeUpdated() {
-        sizeUpdated(1.0);
+    protected void sizeOrPositionUpdated() {
+        sizeOrPositionUpdated(1.0);
     }
 
     /**
@@ -398,7 +398,7 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
      *            A value between 0.0 and 1.0, indicating the progress of the
      *            animation (0=start, 1=end).
      */
-    private void sizeUpdated(final double progress) {
+    private void sizeOrPositionUpdated(final double progress) {
         // Don't do anything if overlay element is not attached
         if (!isAttached()) {
             return;
@@ -499,7 +499,7 @@ public class VOverlay extends PopupPanel implements CloseHandler<PopupPanel> {
     protected class ResizeAnimation extends Animation {
         @Override
         protected void onUpdate(double progress) {
-            sizeUpdated(progress);
+            sizeOrPositionUpdated(progress);
         }
     }
 
index 50e4a05e825f9436d594aec35484b2fb1cae6c62..6a46d64c5afd4cd79015eeb9e8062400842955bc 100644 (file)
@@ -34,6 +34,7 @@ import com.vaadin.terminal.gwt.client.UIDL;
 import com.vaadin.terminal.gwt.client.Util;
 import com.vaadin.terminal.gwt.client.VCaption;
 import com.vaadin.terminal.gwt.client.VCaptionWrapper;
+import com.vaadin.terminal.gwt.client.VConsole;
 import com.vaadin.terminal.gwt.client.VTooltip;
 import com.vaadin.terminal.gwt.client.ui.ShortcutActionHandler.ShortcutActionHandlerOwner;
 import com.vaadin.terminal.gwt.client.ui.richtextarea.VRichTextArea;
@@ -300,6 +301,7 @@ public class VPopupView extends HTML implements Container, Iterable<Widget> {
 
         @Override
         public void hide(boolean autoClosed) {
+            VConsole.log("Hiding popupview");
             hiding = true;
             syncChildren();
             unregisterPaintables();
@@ -475,7 +477,7 @@ public class VPopupView extends HTML implements Container, Iterable<Widget> {
     }
 
     public boolean requestLayout(Set<Paintable> child) {
-        popup.sizeUpdated();
+        popup.sizeOrPositionUpdated();
         return true;
     }