|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cruxframework.crux.core.client.css.animation.Animation<T>
public abstract class Animation<T extends com.google.gwt.resources.client.CssResource>
Base class to create animations on top of CSS3 animations.
| Nested Class Summary | |
|---|---|
static interface |
Animation.Callback
Callback used to monitor when the animation is completed |
| Constructor Summary | |
|---|---|
Animation()
Constructor |
|
| Method Summary | |
|---|---|
void |
animate(com.google.gwt.dom.client.Element el)
Run the animation on the given element |
void |
animate(com.google.gwt.dom.client.Element el,
Animation.Callback callback)
Run the animation on the given element |
void |
animate(com.google.gwt.user.client.ui.Widget widget)
Run the animation on the given widget |
void |
animate(com.google.gwt.user.client.ui.Widget widget,
Animation.Callback callback)
Run the animation on the given widget |
protected String |
getAnimationCssTrigger()
Retrieve the name of the css class used to trigger the animation |
protected abstract String |
getAnimationName()
Retrieve the name of the css animation rule used to animate the element |
protected abstract T |
getCssResource()
Retrieve the CssResource that declare the animation rules used by this animation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Animation()
| Method Detail |
|---|
public void animate(com.google.gwt.user.client.ui.Widget widget)
widget - to be animatedpublic void animate(com.google.gwt.dom.client.Element el)
el - to be animated
public void animate(com.google.gwt.user.client.ui.Widget widget,
Animation.Callback callback)
widget - to be animatedcallback - called when animation is completed
public void animate(com.google.gwt.dom.client.Element el,
Animation.Callback callback)
el - to be animatedcallback - called when animation is completedprotected String getAnimationCssTrigger()
protected abstract String getAnimationName()
protected abstract T getCssResource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||