public abstract class Animation<T extends com.google.gwt.resources.client.CssResource> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Animation.Callback
Callback used to monitor when the animation is completed
|
| Constructor and Description |
|---|
Animation()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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 animatedpublic void animate(com.google.gwt.user.client.ui.Widget widget,
Animation.Callback callback)
widget - to be animatedcallback - called when animation is completedpublic 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()
Copyright © 2015. All rights reserved.