|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the generic typepublic interface HasValidators<T>
Should use when implementing classes with Validators.
| Method Summary | |
|---|---|
void |
addValidator(Validator<T> validator)
Adds the validator. |
boolean |
getValidateOnBlur()
Gets the validate on blur. |
void |
reset()
Reset the form element to blank and clear error messages. |
void |
setValidateOnBlur(boolean validateOnBlur)
Sets the validate on blur. |
void |
setValidators(Validator<T>... validators)
The validators used to validate this object. |
boolean |
validate()
Validate the field's value using the supplied validators. |
boolean |
validate(boolean show)
Validate the field's value using the supplied validators. |
| Method Detail |
|---|
void addValidator(Validator<T> validator)
validator - the validatorboolean getValidateOnBlur()
void reset()
void setValidateOnBlur(boolean validateOnBlur)
validateOnBlur - the new validate on blurvoid setValidators(Validator<T>... validators)
validators - the new validatorsboolean validate()
boolean validate(boolean show)
show - the error to the user.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||