com.alkacon.geranium.client.util
public class FadeAnimation extends A_Animation
m_callback| Constructor and Description |
|---|
FadeAnimation(com.google.gwt.dom.client.Element element,
boolean show,
com.google.gwt.user.client.Command callback)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static FadeAnimation |
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 FadeAnimation |
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 FadeAnimation(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 FadeAnimation 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 FadeAnimation 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 in class A_AnimationAnimation.onComplete()protected void onUpdate(double progress)
onUpdate in class com.google.gwt.animation.client.AnimationAnimation.onUpdate(double)