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

Pre-empt users with messages

The GXT toolkit also has a MessageBox class. It is very similar in concept and functionality to the Dialog class, except for its convenience methods for specific displays and the icons associated with these displays (which can be achieved with the Dialog class too, but with a little hair-pulling). It's therefore safe for us to call them (both classes) Dialogs, especially considering them from a presentation perspective, but they are different.

Pre-empt users with messages

How to do it...

  1. Call MessageBox.alert(), passing in a title, a message to show, and an optional listener as parameters, to display an alert dialog.
  2. Call MessageBox.confirm(), passing ...

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