public class CmsRegexValidator extends java.lang.Object implements I_CmsValidator
| 构造器和说明 |
|---|
CmsRegexValidator(java.lang.String regex,
java.lang.String message,
boolean alwaysAllowEmpty)
Creates a new regex-based validator.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 CmsRegexValidator(java.lang.String regex,
java.lang.String message,
boolean alwaysAllowEmpty)
regex - a regular expressionmessage - an error messagealwaysAllowEmpty - if true, the validation will always allow the empty stringpublic void validate(I_CmsFormField field, I_CmsValidationController controller)
I_CmsValidatorvalidate 在接口中 I_CmsValidatorfield - 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)