Uses of Interface
ca.corbett.forms.validators.FieldValidator
Packages that use FieldValidator
Package
Description
ca.corbett.forms.fields
All FormFields support optional validation in the form of a FieldValidator.
-
Uses of FieldValidator in ca.corbett.extras
Methods in ca.corbett.extras with parameters of type FieldValidatorModifier and TypeMethodDescriptionTextInputDialog.addValidator(FieldValidator<? extends FormField> validator) Adds a FieldValidator to the text field, allowing whatever custom validation rules you want to enforce on the input.TextInputDialog.removeValidator(FieldValidator<FormField> validator) Removes the given FieldValidator from the text field.static StringTextInputDialog.showDialog(Window owner, String title, TextInputDialog.InputType inputType, boolean allowBlank, FieldValidator<? extends FormField>... validators) Static convenience method to show a TextInputDialog and return the result in one line of code. -
Uses of FieldValidator in ca.corbett.forms.fields
Fields in ca.corbett.forms.fields with type parameters of type FieldValidatorModifier and TypeFieldDescriptionprotected final List<FieldValidator<? extends FormField>> FormField.fieldValidatorsMethods in ca.corbett.forms.fields with parameters of type FieldValidatorModifier and TypeMethodDescriptionFileField.addFieldValidator(FieldValidator<? extends FormField> validator) Overridden so that it acts only on our "user-added" validators list.FormField.addFieldValidator(FieldValidator<? extends FormField> validator) Adds a FieldValidator to this FormField.voidFileField.removeFieldValidator(FieldValidator<FormField> validator) Overridden so that it acts only on our "user-added" validators list.voidFormField.removeFieldValidator(FieldValidator<FormField> validator) Removes the given FieldValidator from this FormField. -
Uses of FieldValidator in ca.corbett.forms.validators
Classes in ca.corbett.forms.validators that implement FieldValidatorModifier and TypeClassDescriptionclassA validator for use with FileField to ensure that the selected File is in a location that can be written.classA FieldValidator that ensures that the chosen Directory can be read.classSimilar to NonBlankFieldValidator for TextFields, this FieldValidator implementation insists that a FileField cannot contain a blank value.classA FieldValidator that ensures that the chosen File can be written.classA FieldValidator that ensures that the chosen File or Directory exists.classclassThe opposite of FileMustExistValidator, this one ensures that the selected file or directory does not already exist (such as for a save dialog).classA field validator that works with both ListField and ListSubsetField to ensure that at least one item is selected.classA simple Validator that can be attached to a ListField to ensure that the list is not empty.classA simple field validator for text fields that ensures that the field does not have a blank value.classA FieldValidator that enforces yyyy-mm-dd format on a given TextField.