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

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


          }

          public void cancelPressed() {
          }
        });
        dialog.center();
      }

      public void onSuccess(User user) {
        AuthenticationHandler.this.user = user;
        if (user == null) {
View Full Code Here


      public void onSuccess(User user) {
        AuthenticationHandler.this.user = user;
        if (user == null) {
          MessageDialogBox dialog = new MessageDialogBox(BaseApplication.getMessages().getString("error", "Error"), BaseApplication.getMessages().getString(
              "invalidUsernameOrPassword", "Invalid Username or Password."), true, true, true);
          dialog.center();
        } else {
          loginDialog.hide();
          fireSetAuthenticatedUser(user);
        }
      };
View Full Code Here

    dialog.setContent(replyPanel);
    dialog.setValidatorCallback(new IDialogValidatorCallback() {
      public boolean validate() {
        if (textArea.getText() == null || "".equals(textArea.getText())) {
          MessageDialogBox dialog = new MessageDialogBox("Error", "Comment is blank.", false, true, true);
          dialog.center();
          return false;
        }
        return true;
      }
    });
View Full Code Here

          }

          public void cancelPressed() {
          }
        });
        dialog.center();
      }

      public void onSuccess(User user) {
        AuthenticationHandler.this.user = user;
        if (user == null) {
View Full Code Here

      }

      public void cancelPressed() {
      }
    });
    dialog.center();
  }

  private List<PermissibleObject> sortComments(List<PermissibleObject> comments) {
    List<Comment> commentSet = new ArrayList<Comment>();
View Full Code Here

      public void onSuccess(User user) {
        AuthenticationHandler.this.user = user;
        if (user == null) {
          MessageDialogBox dialog = new MessageDialogBox(BaseApplication.getMessages().getString("error", "Error"), BaseApplication.getMessages().getString(
              "couldNotCreateAccount", "Could not create new account.  Try entering a different username."), true, true, true);
          dialog.center();
        } else if (user.isValidated()) {
          accountDialog.hide();
          fireSetAuthenticatedUser(user);
        } else if (!user.isValidated()) {
          MessageDialogBox
View Full Code Here

          }

          public void cancelPressed() {
          }
        });
        dialog.center();
      }

      public void onSuccess(User user) {
        AuthenticationHandler.this.user = user;
        if (user == null) {
View Full Code Here

      public void onSuccess(User user) {
        AuthenticationHandler.this.user = user;
        if (user == null) {
          MessageDialogBox dialog = new MessageDialogBox(BaseApplication.getMessages().getString("error", "Error"), BaseApplication.getMessages().getString(
              "couldNotEditAccount", "Could not edit account."), true, true, true);
          dialog.center();
        } else {
          accountDialog.hide();
          fireSetAuthenticatedUser(user);
        }
      };
View Full Code Here

    dialogBox.setCallback(new IDialogCallback() {
      public void okPressed() {
        final AsyncCallback<Void> renameCallback = new AsyncCallback<Void>() {
          public void onFailure(Throwable caught) {
            MessageDialogBox messageDialog = new MessageDialogBox("Error", caught.getMessage(), false, true, true);
            messageDialog.center();
          }

          public void onSuccess(Void nothing) {
            repositoryCallback.objectRenamed(permissibleObject);
          }
View Full Code Here

      }

      public void onFailure(Throwable t) {
        isSubmitting = false;
        MessageDialogBox dialog = new MessageDialogBox(BaseApplication.getMessages().getString("error", "Error"), t.getMessage(), false, true, true);
        dialog.center();
      }
    };
    BaseServiceCache.getService().setUserAdvisory(permissibleObject, advisory, callback);
  }
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.