Chapter 6. Handling events

This chapter covers

  • GWT event model

  • Listening and previewing events

  • Event types

  • Implementing drag and drop

Finishing off the trilogy of GWT basics, and coming just before we pull everything together in the chapter on developing composite widgets, we’ll now cover how events are handled in GWT. Remember the plasma television remote control with buttons that are labeled nicely and set out in a sensible way? When you push the buttons, you want something to happen—you want the remote control to handle the button-click event and change the channel or alter the volume. It’s exactly the same in GWT applications; widgets are laid out in panels, and when the user interacts with them, you want things to happen—you must handle events. ...

Get GWT in Action 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.