Package org.opencms.gwt.client.util
Class CmsChangeHeightAnimation
java.lang.Object
com.google.gwt.animation.client.Animation
org.opencms.gwt.client.util.A_CmsAnimation
org.opencms.gwt.client.util.CmsChangeHeightAnimation
Changes the elements height until the target height is reached.
- Since:
- 8.0.0
-
Field Summary
Fields inherited from class org.opencms.gwt.client.util.A_CmsAnimation
m_callback
-
Constructor Summary
ConstructorsConstructorDescriptionCmsChangeHeightAnimation
(com.google.gwt.dom.client.Element element, int targetHeight, com.google.gwt.user.client.Command callback) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
protected void
onUpdate
(double progress) Methods inherited from class com.google.gwt.animation.client.Animation
cancel, interpolate, isRunning, onCancel, onStart, run, run, run, run
-
Constructor Details
-
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 animatetargetHeight
- the height when the animation should stopcallback
- the callback executed after the animation is completed
-
-
Method Details
-
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 intargetHeight
- the height when the animation should stopcallback
- the callback executed after the animation is completedduration
- the animation duration- Returns:
- the running animation object
-
onComplete
- Overrides:
onComplete
in classA_CmsAnimation
- See Also:
-
Animation.onComplete()
-
onUpdate
- Specified by:
onUpdate
in classcom.google.gwt.animation.client.Animation
- See Also:
-
Animation.onUpdate(double)
-