org.overlord.sramp.ui.client.animation
Class MoveAnimation

java.lang.Object
  extended by com.google.gwt.animation.client.Animation
      extended by org.overlord.sramp.ui.client.animation.AbstractAnimation
          extended by 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.
 
Method Summary
protected  void doOnCancel()
          Called when the animation is cancelled.
protected  void doOnComplete()
          Called when the animation completes.
 int getFrom()
           
 String getProperty()
           
 int getTo()
           
protected  void onUpdate(double progress)
           
 void setFrom(int from)
           
 void setProperty(String property)
           
 void setTo(int to)
           
 
Methods inherited from class org.overlord.sramp.ui.client.animation.AbstractAnimation
getTargetWidget, isCancelled, isRunning, onCancel, onComplete, onStart, setCancelled, setRunning, setTargetWidget
 
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
 

Constructor Detail

MoveAnimation

public MoveAnimation(com.google.gwt.user.client.ui.Widget targetWidget,
                     String property,
                     int from,
                     int to)
Constructor.

Parameters:
targetWidget -
Method Detail

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 JBoss, a division of Red Hat. All Rights Reserved.