Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.sjl.webdriver.client;
- import com.google.gwt.core.client.*;
- import com.google.gwt.event.dom.client.*;
- import com.google.gwt.user.client.ui.*;
- public class SimpleApp implements EntryPoint {
- public void onModuleLoad() {
- final RootPanel _root = RootPanel.get();
- _root.add(new Label("Hello"));
- _root.add(newButton());
- }
- private PushButton newButton() {
- PushButton _b = new PushButton("push me");
- _b.ensureDebugId("button");
- _b.addClickHandler(new ClickHandler(){
- public void onClick(ClickEvent event) {
- _root.add(new Label("whoop"));
- }
- });
- return _b;
- }
- }
Add Comment
Please, Sign In to add comment