O'Reilly logo

ExtGWT Rich Internet Application Cookbook by Odili Charles Opute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

To respond to events, we create listener objects.

  • A listener is an object whose class implements an appropriate interface; in GXT it's the Listener interface
  • SelectionListener is a listener implementation used to listen for selections such as button presses
  • The method handleEvent(), or componentSelected() in the case of a button, contains the code to run when the event is fired
  • The listener is attached to a GUI component using the addListener() method or addSelectionListener() for a button

As of version 2.0, GWT uses handlers for its event handling. GXT version 3.0 will move from using listeners to using handlers, so that it will be compatible with the GWT event handling mechanism. This compatibility will also allow GXT 3.0 to add support for ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required