Examples of IDialogValidatorCallback


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

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

      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

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

    }
    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

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

      }

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

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

      }

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

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

    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

Examples of org.pentaho.gwt.widgets.client.dialogs.IDialogValidatorCallback

    return form;
  }

  protected void onOk() {
    IDialogCallback callback = this.getCallback();
    IDialogValidatorCallback validatorCallback = this.getValidatorCallback();
    if ( validatorCallback == null || ( validatorCallback != null && validatorCallback.validate() ) ) {
      try {
        if ( callback != null ) {
          setFormAction();
          callback.okPressed();
        }
View Full Code Here

Examples of org.pentaho.gwt.widgets.client.dialogs.IDialogValidatorCallback

        SolutionBrowserPanel.getInstance().getContentTabPanel().showNewURLTab( textBox.getText(), textBox.getText(),
            textBox.getText(), false );
      }

    };
    IDialogValidatorCallback validatorCallback = new IDialogValidatorCallback() {
      public boolean validate() {
        boolean isValid = !"".equals( textBox.getText() ) && textBox.getText() != null; //$NON-NLS-1$
        if ( !isValid ) {
          MessageDialogBox dialogBox =
              new MessageDialogBox(
View Full Code Here

Examples of org.pentaho.gwt.widgets.client.dialogs.IDialogValidatorCallback

    validateScheduleLocationTextBox();
  }

  private void setupCallbacks() {
    setValidatorCallback( new IDialogValidatorCallback() {
      @Override
      public boolean validate() {
        String name = scheduleNameTextBox.getText();
        boolean isValid = NameUtils.isValidFileName( name );
        if ( !isValid ) {
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.