Package eu.maydu.gwt.validation.client.validators.strings

Examples of eu.maydu.gwt.validation.client.validators.strings.StringLengthValidator


   
    popupDesc.addDescription("anyIntegerHelp", integerTextBox3);
   
   
    validator.addValidators("stringLengthSmaller5",
      new StringLengthValidator(stringLengthSmaller5TextBox, 0, 4)
        .addActionForFailure(focusAction)
        .addActionForFailure(new StyleAction("validationFailedBorder"))
    );
   
    popupDesc.addDescription("stringLengthSmaller5Help", stringLengthSmaller5TextBox);
   
   
   
    validator.addValidators("stringLengthBetween2And5",
        new StringLengthValidator(stringLengthBetween2And5TextBox, 2, 5)
          .addActionForFailure(focusAction)
          .addActionForFailure(new StyleAction("validationFailedBorder"))
    );
   
    popupDesc.addDescription("stringLengthBetween2And5Help", stringLengthBetween2And5TextBox);
View Full Code Here


 
  private void setup(int min, int max) {
    if(text != null) {
      addValidators(
          new TrimTransformer(this.text),
          new StringLengthValidator(this.text, min, max)
          );
    }else {
      addValidators(
          new TrimTransformer(this.suggest),
          new StringLengthValidator(this.suggest, min, max)
          );
    }
  }
View Full Code Here

TOP

Related Classes of eu.maydu.gwt.validation.client.validators.strings.StringLengthValidator

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.