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

Examples of org.damour.base.client.ui.dialogs.IDialogValidatorCallback


    } else if (permissibleObject instanceof Folder) {
      parentFolder = (Folder) permissibleObject;
    }
    final FileUploadPanel fileuploader = new FileUploadPanel(fileUploadCallback, parentFolder, BaseApplication.getSettings().getString("FileUploadService", BaseApplication.FILE_UPLOAD_SERVICE_PATH));
    uploadDialog.setContent(fileuploader);
    uploadDialog.setValidatorCallback(new IDialogValidatorCallback() {
      public boolean validate() {
        fileuploader.submit();
        return false;
      }
    });
View Full Code Here


      public void onFocus(FocusEvent event) {
        passwordConfirm.selectAll();
      }
    });

    loginDialog.setValidatorCallback(new IDialogValidatorCallback() {
      public boolean validate() {
        boolean valid = true;
        String validationMessage = "";
        if (usernameTextBox == null || "".equals(usernameTextBox.getText())) {
          validationMessage += BaseApplication.getMessages().getString("mustEnterUsername", "You must enter a username.");
View Full Code Here

    }
    replyPanel.add(textArea);

    dialog.setFocusWidget(textArea);
    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;
View Full Code Here

      }

      public void cancelPressed() {
      }
    });
    dialogBox.setValidatorCallback(new IDialogValidatorCallback() {
      public boolean validate() {
        return (nameTextBox.getText() != null && !"".equals(nameTextBox.getText()));
      }
    });
    dialogBox.center();
View Full Code Here

      }

      public void cancelPressed() {
      }
    });
    dialogBox.setValidatorCallback(new IDialogValidatorCallback() {
      public boolean validate() {
        return (folderNameTextBox.getText() != null && !"".equals(folderNameTextBox.getText()));
      }
    });
    dialogBox.center();
View Full Code Here

    final EditGroupPanel editGroupPanel = new EditGroupPanel(null, callback, null, group, false, false);
    final PromptDialogBox editGroupDialogBox = new PromptDialogBox("Create New Group", "OK", null, "Cancel", false, true);
    editGroupDialogBox.setContent(editGroupPanel);
    editGroupDialogBox.setFocusWidget(editGroupPanel.getNameTextBox());
    editGroupDialogBox.setValidatorCallback(new IDialogValidatorCallback() {
      public boolean validate() {
        if (editGroupPanel.getNameTextBox().getText() == null || "".equals(editGroupPanel.getNameTextBox().getText())) {
          MessageDialogBox dialog = new MessageDialogBox("Error", "Enter a group name.", true, true, true);
          dialog.center();
          return false;
View Full Code Here

TOP

Related Classes of org.damour.base.client.ui.dialogs.IDialogValidatorCallback

Copyright © 2018 www.massapicom. 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.