com.alkacon.geranium.client.util
public class SlideAnimation extends A_Animation
Uses the in-line CSS display property, clear after completion if appropriate.
m_callback| Constructor and Description |
|---|
SlideAnimation(com.google.gwt.dom.client.Element element,
boolean show,
com.google.gwt.user.client.Command callback)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
onComplete() |
protected void |
onUpdate(double progress) |
void |
run(int duration,
double startTime) |
static SlideAnimation |
slideIn(com.google.gwt.dom.client.Element element,
com.google.gwt.user.client.Command callback,
int duration)
Slides the given element into view executing the callback afterwards.
|
static SlideAnimation |
slideOut(com.google.gwt.dom.client.Element element,
com.google.gwt.user.client.Command callback,
int duration)
Slides the given element out of view executing the callback afterwards.
|
public SlideAnimation(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 SlideAnimation slideIn(com.google.gwt.dom.client.Element element, com.google.gwt.user.client.Command callback, int duration)
element - the element to slide incallback - the callbackduration - the animation durationpublic static SlideAnimation slideOut(com.google.gwt.dom.client.Element element, com.google.gwt.user.client.Command callback, int duration)
element - the element to slide outcallback - the callbackduration - the animation durationpublic void run(int duration,
double startTime)
run in class com.google.gwt.animation.client.AnimationAnimation.run(int, double)protected void onComplete()
onComplete in class A_AnimationAnimation.onComplete()protected void onUpdate(double progress)
onUpdate in class com.google.gwt.animation.client.AnimationAnimation.onUpdate(double)