List of usage examples for com.google.gwt.user.client.ui DialogBox DialogBox
public DialogBox()
From source file:uk.ac.ebi.fg.annotare2.prototype.frontier.client.FrontierApp.java
License:Apache License
public void onModuleLoad() { helloLabel = new Label(); helloLabel.setText("Hello, world!"); helloLabel.addClickHandler(new ClickHandler() { @Override/*w w w . ja v a 2 s. co m*/ public void onClick(ClickEvent event) { DialogBox box = new DialogBox(); box.setGlassEnabled(true); box.setHTML("Hello Dialog<a href=\"#\" class=\"icon icon-functional Close\" data-icon=\"x\"></a>"); box.setWidth("250px"); box.setWidget(new Label("Hello again!!!")); box.center(); box.show(); } }); RootPanel content = RootPanel.get("content"); content.add(helloLabel); }