4.9. Getting Elemental, my dear Watson!
GWT 2.5, the latest release at the time of writing, brings with it a new API called Elemental.
Note
Don’t forget to explicitly add the gwt-elemental.jar file to your class-path because it’s not included in the standard gwt-user.jar of GWT.
This API is intended to bind as closely as possible to HTML5 and melt away during compilation (leave no overhead). It comes without a lot of the protection of normal GWT but should give access to modern browser functions as quickly as they and GWT are updated. Let’s take a quick look at it now so you’re at least aware of it.
4.9.1. Examining Elemental
Table 4.1 shows how you’d add a button that reacts to clicks to a simple panel, which is itself added ...
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.