T - the generic typepublic interface HasValidators<T> extends ValidationChangedEvent.HasValidationChangedHandlers
Validators.| Modifier and Type | Method and Description |
|---|---|
void |
addValidator(Validator<T> validator)
Adds the validator.
|
boolean |
getValidateOnBlur()
Gets the validate on blur.
|
boolean |
removeValidator(Validator<T> validator)
Removes the validator.
|
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.
|
addValidationChangedHandlerfireEventvoid addValidator(Validator<T> validator)
validator - the validatorboolean getValidateOnBlur()
boolean removeValidator(Validator<T> validator)
validator - the validatorvoid 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.Copyright © 2017. All rights reserved.