Package com.smartgwt.client.widgets.form.validator


package com.smartgwt.client.widgets.form.validator
  • Class
    Description
    Determine whether a string value contains some substring specified via substring.
     
    Tests whether the value for a date field is within the range specified by validator.min and validator.max, which should be dates.
    Determine whether a string value does not contain some substring specified via validator.substring.
    Determine whether a value matches a value specified via value.
    Tests whether the value for this field is a floating point number with the appropriate number of decimal places - specified in validator.precision If the value is of higher precision, if validator.roundToPrecision is specified, the value will be rounded to the specified number of decimal places and validation will pass, otherwise validation will fail.
    Tests whether the value for this field is a floating point number within the range specified by validator.min and validator.max.
    Tests whether the value for this field matches any value from an arbitrary list of acceptable values.
    Tests whether the value for this field is a whole number within the range specified by validator.min and validator.max.
    Validation will fail if this field is non-empty and has a non-boolean value.
    Tests whether the value for this field is a valid floating point number.
    Tests whether the value for this field is a whole number.
    Tests whether the value for this field matches any value from an arbitrary list of acceptable values.
    Validation will fail if the value is not a string value.
    This validator type applies to string values only.
    Validate against a regular expression mask, specified as validator.mask.
    Tests whether the value for this field matches the value of some other field.
    Determine whether a value does not match a value specified via value.
    Tests whether the value for this field matches any value from an arbitrary list of acceptable values.
    Regexp type validators will determine whether the value specified matches a given regular expression.
     

    RequiredIf type validators should be specified with a RequiredIfFunction, which has to be passed to setExpression(), and takes two parameters: item - the DynamicForm item on which the error occurred (may be null) value - the value of the field in question
    Determine whether a string value contains some substring multiple times.
    A validator describes a check that should be performed on a value the user is trying to save.