org.overlord.sramp.ui.client.animation
Class MoveAnimation
java.lang.Object
com.google.gwt.animation.client.Animation
org.overlord.sramp.ui.client.animation.AbstractAnimation
org.overlord.sramp.ui.client.animation.MoveAnimation
public class MoveAnimation
- extends AbstractAnimation
Animation that will move a widget from one position to another.
- Author:
- eric.wittmann@redhat.com
|
Constructor Summary |
MoveAnimation(com.google.gwt.user.client.ui.Widget targetWidget,
String property,
int from,
int to)
Constructor. |
| Methods inherited from class com.google.gwt.animation.client.Animation |
cancel, interpolate, run, run, run, run |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MoveAnimation
public MoveAnimation(com.google.gwt.user.client.ui.Widget targetWidget,
String property,
int from,
int to)
- Constructor.
- Parameters:
targetWidget -
onUpdate
protected void onUpdate(double progress)
- Specified by:
onUpdate in class com.google.gwt.animation.client.Animation
- See Also:
Animation.onUpdate(double)
doOnCancel
protected void doOnCancel()
- Description copied from class:
AbstractAnimation
- Called when the animation is cancelled.
- Overrides:
doOnCancel in class AbstractAnimation
- See Also:
AbstractAnimation.doOnCancel()
doOnComplete
protected void doOnComplete()
- Description copied from class:
AbstractAnimation
- Called when the animation completes. This method is *not* called when the
animation is cancelled.
- Overrides:
doOnComplete in class AbstractAnimation
- See Also:
AbstractAnimation.doOnComplete()
getProperty
public String getProperty()
- Returns:
- the property
setProperty
public void setProperty(String property)
- Parameters:
property - the property to set
getFrom
public int getFrom()
- Returns:
- the from
setFrom
public void setFrom(int from)
- Parameters:
from - the from to set
getTo
public int getTo()
- Returns:
- the to
setTo
public void setTo(int to)
- Parameters:
to - the to to set
Copyright © 2012-2013 JBoss, a division of Red Hat. All Rights Reserved.