Example usage for com.google.gwt.user.client.ui DialogBox DialogBox

List of usage examples for com.google.gwt.user.client.ui DialogBox DialogBox

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui DialogBox DialogBox.

Prototype

public DialogBox(boolean autoHide, boolean modal) 

Source Link

Document

Creates an empty dialog box specifying its "auto-hide" and "modal" properties.

Usage

From source file:scrum.client.files.ProjectSelectionWidget.java

License:Open Source License

public void showDialog() {

    dialog = new DialogBox(true, true);
    dialog.setAnimationEnabled(true);
    dialog.setWidget(update());

    dialog.center();
    dialog.show();

}

From source file:scrum.client.files.UploadWidget.java

License:Open Source License

public static UploadWidget showDialog(Integer topPosition) {
    UploadWidget uploadWidget = new UploadWidget();

    uploadWidget.dialog = new DialogBox(true, true);
    DialogBox dialog = uploadWidget.dialog;
    dialog.setAnimationEnabled(true);/*  ww  w .j  a va  2  s  . c o  m*/
    dialog.setWidget(uploadWidget.update());

    dialog.center();
    if (topPosition != null)
        dialog.setPopupPosition(dialog.getPopupLeft(), topPosition);
    dialog.show();

    return uploadWidget;
}

From source file:scrum.client.issues.ReplyToIssueDialog.java

License:Open Source License

public void showDialog() {
    dialogBox = new DialogBox(true, true);
    dialogBox.setTitle("Reply by email");
    dialogBox.add(createForm());//from   w ww  .  j  av a 2s.  c  o  m
    dialogBox.center();
    dialogBox.show();
}