11.6. Wrapping a third-party library

If you need to wrap a third-party JavaScript library, you’re probably in for some serious JSNI development. You’re going to have to wrap all of the objects that could be created as JavaScriptObjects or as overlays; you’ll need to hook up event handling and duplicate, in GWT Java code structure, those API methods you wish to expose.

In this section we’ll do this with the Cooliris API.[3] You may be familiar with the wall of pictures that can be created, as shown in figure 11.13.

3 Cooliris API: www.cooliris.com/developer/.

Figure 11.13. A Cooliris photo wall embedded in a GWT application

Through the chapter’s ...

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.