Class CmsMoveAnimation

java.lang.Object
com.google.gwt.animation.client.Animation
org.opencms.gwt.client.util.A_CmsAnimation
org.opencms.gwt.client.util.CmsMoveAnimation

public class CmsMoveAnimation extends A_CmsAnimation
Move animation. Moving the given element from it's start to it's end position and executing the given call-back on complete.

Since:
8.0.0
  • Field Summary

    Fields inherited from class org.opencms.gwt.client.util.A_CmsAnimation

    m_callback
  • Constructor Summary

    Constructors
    Constructor
    Description
    CmsMoveAnimation(com.google.gwt.dom.client.Element element, int startTop, int startLeft, int endTop, int endLeft, com.google.gwt.user.client.Command callback)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    onUpdate(double progress)
     

    Methods inherited from class org.opencms.gwt.client.util.A_CmsAnimation

    onComplete

    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 Details

    • CmsMoveAnimation

      public CmsMoveAnimation(com.google.gwt.dom.client.Element element, int startTop, int startLeft, int endTop, int endLeft, com.google.gwt.user.client.Command callback)
      Constructor. Setting the element to animate, it's start and end position.

      Parameters:
      element - the element
      startTop - the start top
      startLeft - the start left
      endTop - the end top
      endLeft - the end left
      callback - the call-back to execute on complete
  • Method Details

    • onUpdate

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