com.gwtext.client.widgets.form
Interface Validator
public interface Validator
Interface that must be implemented for custom Field validation logic.
- See Also:
TextField.setValidator(Validator)
Method Summary |
boolean |
validate(java.lang.String value)
Return true if Field value is valid and false if invalid. |
validate
boolean validate(java.lang.String value)
throws ValidationException
- Return true if Field value is valid and false if invalid. The value set in
Field.setInvalidText(String)
will be used as the error message. For a custom error message throw a ValidationException with the
error message. The error message of the ValidationException will be dispalyed.
- Parameters:
value
- the field value to test
- Returns:
- true if valid, false if invalid.
- Throws:
ValidationException
- when validate fails