O'Reilly logo

Ext GWT 2.0 Beginner's Guide by Daniel Vaughan

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

Menus and toolbars

GXT provides the types of toolbars and menus that users have come to expect in desktop applications.

Menu component

Menu is a very flexible component that can be displayed as a context menu in relation to other widgets, using the show method.

Menu contextMenu = new Menu();
contextMenu.add(new MenuItem("Option 1"));
contextMenu.add(new MenuItem("Option 2"));
contextMenu.add(new MenuItem("Option 3"));
Label label = new Label("Menu appears here");
contextMenu.show(label);
Menu component

A Menu can be added to a Button to provide an additional option:

Menu contextMenu = new Menu(); contextMenu.add(new MenuItem("Option 1")); contextMenu.add(new MenuItem("Option ...

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