4.7. Applying animation to widgets

As you’ve seen, layout panels have animation built into them, but can you apply animation to other widgets? It turns out that yes, some widgets do already have it built in, and others we can build ourselves.

4.7.1. Widgets that animate

GWT components that implement the HasAnimation interface have animation capabilities built in. The simplest way to find which ones do is to look at the Javadoc[3]—at the time of writing it looks like figure 4.19.

3HasAnimation Javadoc showing which widgets have animation built in: http://mng.bz/fvkE.

Figure 4.19. The widgets that, at the time of this writing, have built-in animation capabilities

You saw the PopupPanel animation in action in chapter 3’s search functionality. ...

Get GWT in Action, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.