14.2. How GWT manages events

Like most areas of DOM, browsers aren’t consistent in how they manage events, plus some substantial issues exist with leaky implementations that GWT needs to work around. As usual, GWT does manage to hide nearly all of those differences for us, leaving us to program against one model and expect consistency across all browsers. In this section, we’ll look at how GWT does that, starting with how it deals with the main inconsistency in browser implementations—the difference between event bubbling and capture.

Once you know how GWT will generally handle events, we’ll dig into how you can stop events from propagating, if you want to do that. Then we’ll look at how to tell the GWT event-handling mechanism that a particular ...

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.