Buttons are often simple widgets that allow the user to execute an action by clicking on it, such as submitting an HTML form with its Submit button. However, we can do more with buttons nowadays beyond form submission; we can even give them a complete makeover with the various text, icon, and alignment options available with a GXT
button.
A GXT
button is a very simple widget; without all the bells and whistles it is a one-liner.
ButtonBar btnBar = new ButtonBar(); Icons ICONS = GWT.create(Icons.class); // Text button Button textBtn = new Button("Btn Text"); textBtn.setToolTip("This is a simple text button"); btnBar.add(textBtn); // Icon button Button iconBtn = new Button(); iconBtn.setIcon(ICONS.people()); btnBar.add(iconBtn); // Text and Icon button Button mixedBtn = new Button("Mixed Btn", ICONS.orgchart()); btnBar.add(mixedBtn); // Real world button SelectionListener<ButtonEvent> listener = new SelectionListener<ButtonEvent...