Home » Tag Archives: GWT UIBinder

Tag Archives: GWT UIBinder

GWT Custom Button using UIBinder

google-gwt-logo

Here’s an example on how to create a custom button using UIBinder on GWT. public class GwtUIBinderButton implements EntryPoint { public void onModuleLoad() { Button button = new Button(); button.setText("Button"); button.addClickHandler(new ClickHandler(){ @Override public void onClick(ClickEvent event) { Window.alert("Button clicked"); } }); RootPanel.get("container").add(button); } } public class Button extends Composite implements HasText, HasClickHandlers, ClickHandler{ private static ButtonUiBinder uiBinder = GWT.create(ButtonUiBinder.class); ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Advanced Java Guide
  • Java Design Patterns
  • JMeter Tutorial
  • Java 8 Features Tutorial
  • JUnit Tutorial
  • JSF Programming Cookbook
  • Java Concurrency Essentials