Package org.opencms.gwt.client.util
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
onUpdate(double progress)
-
Methods inherited from class org.opencms.gwt.client.util.A_CmsAnimation
onComplete
-
-
-
-
Constructor Detail
-
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 elementstartTop
- the start topstartLeft
- the start leftendTop
- the end topendLeft
- the end leftcallback
- the call-back to execute on complete
-
-
Method Detail
-
onUpdate
protected void onUpdate(double progress)
- Specified by:
onUpdate
in classcom.google.gwt.animation.client.Animation
- See Also:
Animation.onUpdate(double)
-
-