public class CmsSlideAnimation extends A_CmsAnimation
Uses the in-line CSS display property, clear after completion if appropriate.
m_callback
构造器和说明 |
---|
CmsSlideAnimation(com.google.gwt.dom.client.Element element,
boolean show,
com.google.gwt.user.client.Command callback)
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
onComplete() |
protected void |
onUpdate(double progress) |
void |
run(int duration,
double startTime) |
static CmsSlideAnimation |
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 CmsSlideAnimation |
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 CmsSlideAnimation(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 CmsSlideAnimation 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 CmsSlideAnimation 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
在类中 com.google.gwt.animation.client.Animation
Animation.run(int, double)
protected void onComplete()
onComplete
在类中 A_CmsAnimation
Animation.onComplete()
protected void onUpdate(double progress)
onUpdate
在类中 com.google.gwt.animation.client.Animation
Animation.onUpdate(double)