T
- the generic typepublic interface HasValidators<T> extends ValidationChangedEvent.HasValidationChangedHandlers
Validator
s.Modifier and Type | Method and Description |
---|---|
void |
addValidator(Validator<T> validator)
Adds the validator.
|
boolean |
isValidateOnBlur()
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.
|
addValidationChangedHandler
void addValidator(Validator<T> validator)
validator
- the validatorboolean isValidateOnBlur()
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 © 2018. All rights reserved.