On 23 nov, 15:45, Raphael André Bauer <raphael.andre.ba...@gmail.com>
wrote:
> Hi,
>
> I am currently checking out possibilites to use animations  together
> with ActivityManagers of GWT 2.1.
> (using something like -webkit-transition-property:
> -webkit-transform;      -webkit-transition-duration: 0.35s; etc).
>
> When the user navigates from one place to another I simply want to
> fade in / fade out stuff...
>
> My idea was to extend an ActivityManager and create an AnimatedActivityMapper.
>
> Then I could (theoretically) overwrite
>         @Override
>           private void showWidget(IsWidget view) {
>                     if (display != null) {
>                       display.setWidget(view);
>                     }
>                   }
>
> and add stuff to add classes responsible for the animation.
>
> Would this be roughly a good way to do it, or are there side effects I
> am not aware of. Is there any best practise for that?

Why not doing this in the AcceptsOneWidget you give to the
ActivityManager?
Have a look at the Expenses sample, which animates using a
LayoutPanel:
http://code.google.com/p/google-web-toolkit/source/browse/tags/2.1.0/samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/SlidingPanel.java

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

Reply via email to