Also have a look at how PopupPanel or DialogBox use Animation for an example.

-jason

On Dec 23, 2009, at 2:24 PM, pohl wrote:

> Absolutely.   If another javascript manages to do something in a
> browser, then you can do it in GWT.   A good starting place would be
> to look at is the following class:
> 
>  com.google.gwt.animation.client.Animation
> 
> It's an abstract class that you extend.  There's a mechanism that
> repeatedly calls this method that you implement:
> 
>    onUpdate(double progress)
> 
> The "progress" argument will be between 0.0 and 1.0, which tells you
> how far along you are in the animation step.   (Think of it as a
> percentage.)  Using that number, you can decide, for example, exactly
> how "zoomed", or "faded", or "moved" your widget or element is.  When
> the animation starts, the value will be 0.0.  When it's done, it will
> be 1.0.  In between, the Animation class provides a nice "easing
> function" that gives something a bit more natural than straight linear
> interpolation would.   The nice thing about it is that you don't have
> to think about the easing function.  The abstract superclass will just
> call onUpdate() and let you know how far along you are.
> 
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/animation/client/Animation.html
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
> 
> 

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to