Guest User

Untitled

a guest
Jun 18th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. package com.sjl.webdriver.client;
  2.  
  3. import com.google.gwt.core.client.*;
  4. import com.google.gwt.event.dom.client.*;
  5. import com.google.gwt.user.client.ui.*;
  6.  
  7. public class SimpleApp implements EntryPoint {
  8.  
  9. public void onModuleLoad() {
  10. final RootPanel _root = RootPanel.get();
  11. _root.add(new Label("Hello"));
  12. _root.add(newButton());
  13. }
  14.  
  15. private PushButton newButton() {
  16. PushButton _b = new PushButton("push me");
  17. _b.ensureDebugId("button");
  18.  
  19. _b.addClickHandler(new ClickHandler(){
  20. public void onClick(ClickEvent event) {
  21. _root.add(new Label("whoop"));
  22. }
  23. });
  24.  
  25. return _b;
  26. }
  27. }
Add Comment
Please, Sign In to add comment