Package ca.corbett.forms.validators
package ca.corbett.forms.validators
All FormFields support optional validation in the form of a FieldValidator.
Each FormField can have zero or more FieldValidator instances assigned to it.
These validators will be invoked on the field when the FormPanel is validated.
A validation success or failure label will appear next to the FormField automatically,
with helpful tooltip text as needed.
You can, of course, provide your own FieldValidator implementation, if you have specific business logic or validation rules that you need to use.
If multiple FieldValidators are assigned to a FormField, they will each be invoked, and all of them must return a successful validation in order for the field to be considered valid.
-
ClassDescriptionFieldValidator<T extends FormField>Provides an interface for performing validation on some type of FormField.A validator for use with FileField to ensure that the selected File is in a location that can be written.A FieldValidator that ensures that the chosen Directory can be read.Similar to NonBlankFieldValidator for TextFields, this FieldValidator implementation insists that a FileField cannot contain a blank value.A FieldValidator that ensures that the chosen File can be written.A FieldValidator that ensures that the chosen File or Directory exists.The opposite of FileMustExistValidator, this one ensures that the selected file or directory does not already exist (such as for a save dialog).A simple field validator for TextField that ensures that the field does not have a blank value.Used by FieldValidator to report successful or unsuccessful validation on a FormField.A FieldValidator that enforces yyyy-mm-dd format on a given TextField.