com.sencha.gxt.widget.core.client.form.validator
Class MinLengthValidator
java.lang.Object
com.sencha.gxt.widget.core.client.form.validator.AbstractValidator<String>
com.sencha.gxt.widget.core.client.form.validator.MinLengthValidator
- All Implemented Interfaces:
- Validator<String>
public class MinLengthValidator
- extends AbstractValidator<String>
MinLengthValidator
public MinLengthValidator(int minLength)
getMessages
public MinLengthValidator.MinLengthMessages getMessages()
setMessages
public void setMessages(MinLengthValidator.MinLengthMessages messages)
validate
public List<EditorError> validate(Editor<String> field,
String value)
- Description copied from interface:
Validator
- Validates the value.
- Parameters:
field - the editorvalue - the value
- Returns:
- the errors if any, otherwise, empty list or null
Copyright © 2012. All Rights Reserved.