public class CmsNonEmptyValidator extends java.lang.Object implements I_CmsValidator
构造器和说明 |
---|
CmsNonEmptyValidator(java.lang.String errorMessage)
Constructs a new validator with a given error message.
|
限定符和类型 | 方法和说明 |
---|---|
void |
validate(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.
|
public CmsNonEmptyValidator(java.lang.String errorMessage)
errorMessage
- the error message to use when the validated field is emptypublic void validate(I_CmsFormField field, I_CmsValidationController controller)
I_CmsValidator
validate
在接口中 I_CmsValidator
field
- the form field to be validatedcontroller
- the validation controllerI_CmsValidator.validate(org.opencms.gwt.client.ui.input.I_CmsFormField, org.opencms.gwt.client.validation.I_CmsValidationController)