Class CmsChangeHeightAnimation

    • Constructor Summary

      Constructors 
      Constructor Description
      CmsChangeHeightAnimation​(com.google.gwt.dom.client.Element element, int targetHeight, com.google.gwt.user.client.Command callback)
      Constructor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static CmsChangeHeightAnimation change​(com.google.gwt.dom.client.Element element, int targetHeight, com.google.gwt.user.client.Command callback, int duration)
      Slides the given element into view executing the callback afterwards.
      protected void onComplete()  
      protected void onUpdate​(double progress)  
      • Methods inherited from class com.google.gwt.animation.client.Animation

        cancel, interpolate, isRunning, onCancel, onStart, run, run, run, run
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmsChangeHeightAnimation

        public CmsChangeHeightAnimation​(com.google.gwt.dom.client.Element element,
                                        int targetHeight,
                                        com.google.gwt.user.client.Command callback)
        Constructor.

        Parameters:
        element - the element to animate
        targetHeight - the height when the animation should stop
        callback - the callback executed after the animation is completed
    • Method Detail

      • change

        public static CmsChangeHeightAnimation change​(com.google.gwt.dom.client.Element element,
                                                      int targetHeight,
                                                      com.google.gwt.user.client.Command callback,
                                                      int duration)
        Slides the given element into view executing the callback afterwards.

        Parameters:
        element - the element to slide in
        targetHeight - the height when the animation should stop
        callback - the callback executed after the animation is completed
        duration - the animation duration
        Returns:
        the running animation object
      • onUpdate

        protected void onUpdate​(double progress)
        Specified by:
        onUpdate in class com.google.gwt.animation.client.Animation
        See Also:
        Animation.onUpdate(double)