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

java.lang.Object
  extended by com.google.gwt.animation.client.Animation
      extended by org.overlord.sramp.ui.client.animation.AbstractAnimation
Direct Known Subclasses:
FadeOutAnimation, MoveAnimation

public abstract class AbstractAnimation
extends com.google.gwt.animation.client.Animation

Base class for animations.

Author:
eric.wittmann@redhat.com

Constructor Summary
AbstractAnimation(com.google.gwt.user.client.ui.Widget targetWidget)
          Constructor.
 
Method Summary
protected  void doOnCancel()
          Called when the animation is cancelled.
protected  void doOnComplete()
          Called when the animation completes.
 com.google.gwt.user.client.ui.Widget getTargetWidget()
           
 boolean isCancelled()
           
 boolean isRunning()
           
protected  void onCancel()
           
protected  void onComplete()
           
protected  void onStart()
           
 void setCancelled(boolean cancelled)
           
 void setRunning(boolean running)
           
 void setTargetWidget(com.google.gwt.user.client.ui.Widget targetWidget)
           
 
Methods inherited from class com.google.gwt.animation.client.Animation
cancel, interpolate, onUpdate, run, run, run, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractAnimation

public AbstractAnimation(com.google.gwt.user.client.ui.Widget targetWidget)
Constructor.

Parameters:
targetWidget -
Method Detail

isCancelled

public boolean isCancelled()
Returns:
the cancelled

setCancelled

public void setCancelled(boolean cancelled)
Parameters:
cancelled - the cancelled to set

onStart

protected final void onStart()
Overrides:
onStart in class com.google.gwt.animation.client.Animation
See Also:
Animation.onStart()

onCancel

protected final void onCancel()
Overrides:
onCancel in class com.google.gwt.animation.client.Animation
See Also:
Animation.onCancel()

doOnCancel

protected void doOnCancel()
Called when the animation is cancelled.


onComplete

protected final void onComplete()
Overrides:
onComplete in class com.google.gwt.animation.client.Animation
See Also:
Animation.onComplete()

doOnComplete

protected void doOnComplete()
Called when the animation completes. This method is *not* called when the animation is cancelled.


isRunning

public boolean isRunning()
Returns:
the running

setRunning

public void setRunning(boolean running)
Parameters:
running - the running to set

getTargetWidget

public com.google.gwt.user.client.ui.Widget getTargetWidget()
Returns:
the targetWidget

setTargetWidget

public void setTargetWidget(com.google.gwt.user.client.ui.Widget targetWidget)
Parameters:
targetWidget - the targetWidget to set


Copyright © 2012-2013 JBoss, a division of Red Hat. All Rights Reserved.