Package org.pentaho.gwt.widgets.client.dialogs

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


        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

    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

Related Classes of org.pentaho.gwt.widgets.client.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.