public class CmsFadeAnimation extends A_CmsAnimation
m_callback| 构造器和说明 |
|---|
CmsFadeAnimation(com.google.gwt.dom.client.Element element,
boolean show,
com.google.gwt.user.client.Command callback)
Constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static CmsFadeAnimation |
fadeIn(com.google.gwt.dom.client.Element element,
com.google.gwt.user.client.Command callback,
int duration)
Fades the given element into view executing the callback afterwards.
|
static CmsFadeAnimation |
fadeOut(com.google.gwt.dom.client.Element element,
com.google.gwt.user.client.Command callback,
int duration)
Fades the given element out of view executing the callback afterwards.
|
protected void |
onComplete() |
protected void |
onUpdate(double progress) |
public CmsFadeAnimation(com.google.gwt.dom.client.Element element,
boolean show,
com.google.gwt.user.client.Command callback)
element - the element to animateshow - true to show the element, false to hide it awaycallback - the callback executed after the animation is completedpublic static CmsFadeAnimation fadeIn(com.google.gwt.dom.client.Element element, com.google.gwt.user.client.Command callback, int duration)
element - the element to fade incallback - the callbackduration - the animation durationpublic static CmsFadeAnimation fadeOut(com.google.gwt.dom.client.Element element, com.google.gwt.user.client.Command callback, int duration)
element - the element to fade outcallback - the callbackduration - the animation durationprotected void onComplete()
onComplete 在类中 A_CmsAnimationAnimation.onComplete()protected void onUpdate(double progress)
onUpdate 在类中 com.google.gwt.animation.client.AnimationAnimation.onUpdate(double)