Package org.opencms.gwt.client.ui.input
Class CmsNonEmptyValidator
java.lang.Object
org.opencms.gwt.client.ui.input.CmsNonEmptyValidator
- All Implemented Interfaces:
I_CmsValidator
A validator that checks whether a field is not empty.
- Since:
- 8.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCmsNonEmptyValidator(String errorMessage) Constructs a new validator with a given error message. -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(I_CmsFormField field, I_CmsValidationController controller) If this method is called, the object should either validate the form field and report the result to the validation controller, or request asynchronous validation of the field from the validation controller.
-
Constructor Details
-
CmsNonEmptyValidator
Constructs a new validator with a given error message.- Parameters:
errorMessage- the error message to use when the validated field is empty
-
-
Method Details
-
validate
Description copied from interface:I_CmsValidatorIf this method is called, the object should either validate the form field and report the result to the validation controller, or request asynchronous validation of the field from the validation controller.- Specified by:
validatein interfaceI_CmsValidator- Parameters:
field- the form field to be validatedcontroller- the validation controller- See Also:
-