Package org.damour.base.client.ui.dialogs

Examples of org.damour.base.client.ui.dialogs.MessageDialogBox.center()


        Cookies.removeCookie(upload.getName());
        // This event is fired just before the form is submitted. We can take
        // this opportunity to perform validation.
        if (upload.getFilename().length() == 0) {
          MessageDialogBox dialog = new MessageDialogBox("Info", "The filename must not be empty", false, true, true);
          dialog.center();
          event.cancel();
        } else {
          progressMeter.setWidth("300px");
          progressPopup.setWidget(progressMeter);
          progressPopup.center();
View Full Code Here


        disclaimerText += "<BR><BR>Every effort is made to keep the website up and running smoothly. However, {0} takes no responsibility for, and will not be liable for, the website being temporarily unavailable due to technical issues beyond our control.";
        disclaimerText = BaseApplication.getMessages().getString("disclaimerText", disclaimerText, companyName);
        final MessageDialogBox dialog = new MessageDialogBox(BaseApplication.getMessages().getString("disclaimerAndTerms", "Disclaimer & Terms of Use"),
            disclaimerText, true, true, true);
        dialog.setWidth("600px");
        dialog.center();
      }
    });
    disclaimerCheckBox.setTitle(BaseApplication.getMessages().getString("disclaimerAgree", "You must read and agree in order to continue."));
    // present account dialog
    accountDialog.setText(BaseApplication.getMessages().getString("newAccount", "New Account"));
View Full Code Here

  public void getPasswordHint(final String username) {
    final AsyncCallback<String> callback = new AsyncCallback<String>() {
      public void onFailure(Throwable caught) {
        final MessageDialogBox dialog = new MessageDialogBox(BaseApplication.getMessages().getString("error", "Error"), caught.getMessage(), true, true, true);
        dialog.center();
      }

      public void onSuccess(String hint) {
        if (hint == null) {
          MessageDialogBox dialog = new MessageDialogBox(BaseApplication.getMessages().getString("error", "Error"), "Could not retrieve password hint.", true,
View Full Code Here

      super.submit();
    } catch (Throwable t) {
      progressPopup.hide();
      uploadStatusTimer.cancel();
      MessageDialogBox messageDialog = new MessageDialogBox("Error", "Upload failed, check file permissions or filename.", false, true, true);
      messageDialog.center();
    }
  }

  public String getFilename() {
    return upload.getFilename();
View Full Code Here

    final String groupName = allGroupsListBox.getItemText(index);
    final UserGroup group = groupMap.get(groupName);
    final AsyncCallback<GroupMembership> addUserCallback = new AsyncCallback<GroupMembership>() {
      public void onFailure(Throwable caught) {
        MessageDialogBox dialog = new MessageDialogBox("Error", caught.getMessage(), true, true, true);
        dialog.center();
      }

      public void onSuccess(GroupMembership membership) {
        groupsForUser.add(membership.getUserGroup());
        populateUI();
View Full Code Here

      public void onSuccess(String hint) {
        if (hint == null) {
          MessageDialogBox dialog = new MessageDialogBox(BaseApplication.getMessages().getString("error", "Error"), "Could not retrieve password hint.", true,
              true, true);
          dialog.center();
        } else {
          MessageDialogBox dialog = new MessageDialogBox(BaseApplication.getMessages().getString("passwordHint", "Password Hint"), BaseApplication
              .getMessages().getString("yourPasswordHintIs", "Your password hint is: <b>{0}</b>", hint), true, true, true);
          dialog.center();
        }
View Full Code Here

              true, true);
          dialog.center();
        } else {
          MessageDialogBox dialog = new MessageDialogBox(BaseApplication.getMessages().getString("passwordHint", "Password Hint"), BaseApplication
              .getMessages().getString("yourPasswordHintIs", "Your password hint is: <b>{0}</b>", hint), true, true, true);
          dialog.center();
        }
      };
    };
    BaseServiceCache.getService().getLoginHint(username, callback);
  }
View Full Code Here

    final String groupName = groupsForUserListBox.getItemText(index);
    final UserGroup group = groupMap.get(groupName);
    final AsyncCallback<Void> deleteUserCallback = new AsyncCallback<Void>() {
      public void onFailure(Throwable caught) {
        MessageDialogBox dialog = new MessageDialogBox("Error", caught.getMessage(), true, true, true);
        dialog.center();
      }

      public void onSuccess(Void nothing) {
        groupsForUser.remove(group);
        populateUI();
View Full Code Here

            }

            public void cancelPressed() {
            }
          });
          dialog.center();
          return;
        }
        createNewAccount(usernameTextBox.getText(), firstname.getText(), lastname.getText(), passwordTextBox.getText(), passwordHint.getText(),
            emailAddress.getText(), dateBox.getValue().getTime());
      }
View Full Code Here

            }

            public void cancelPressed() {
            }
          });
          dialog.center();
          return;
        }
        user.setUsername(usernameTextBox.getText());
        user.setFirstname(firstname.getText());
        user.setLastname(lastname.getText());
View Full Code Here

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.