Package org.worldbank.transport.tamt.client

Source Code of org.worldbank.transport.tamt.client.WaitModalDialog

package org.worldbank.transport.tamt.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.HTML;

public class WaitModalDialog extends Composite {

  DialogBox dialog;
  HTML html;
 
  public WaitModalDialog() {
 
    dialog = new DialogBox();
   
    dialog.setAutoHideEnabled(false); // user can't click outside of it
    //dialog.setGlassEnabled(true); // glass the UI behind it
    dialog.center();
   
    dialog.setText("Waiting...");
   
    //TODO: set the HTML widget for the message;
    html = new HTML("insert message here");
    dialog.add(html);
   
    initWidget(dialog);

    dialog.hide();
   
  }
 
  public void setHTML(String html)
  {
    this.html.setHTML(html);
  }
 
  public void showWait()
  {
    dialog.show();
  }
 
  public void hideWait()
  {
    dialog.hide();
  }
}
TOP

Related Classes of org.worldbank.transport.tamt.client.WaitModalDialog

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.