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
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
ConstructorsConstructorDescriptionCmsMoveAnimation
(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
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
-
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 elementstartTop
- the start topstartLeft
- the start leftendTop
- the end topendLeft
- the end leftcallback
- the call-back to execute on complete
-
-
Method Details
-
onUpdate
- Specified by:
onUpdate
in classcom.google.gwt.animation.client.Animation
- See Also:
-
Animation.onUpdate(double)
-