com.sencha.gxt.widget.core.client.form.validator
Class MinLengthValidator

java.lang.Object
  extended by com.sencha.gxt.widget.core.client.form.validator.AbstractValidator<String>
      extended by com.sencha.gxt.widget.core.client.form.validator.MinLengthValidator
All Implemented Interfaces:
Validator<String>

public class MinLengthValidator
extends AbstractValidator<String>


Nested Class Summary
static interface MinLengthValidator.MinLengthMessages
           
 
Constructor Summary
MinLengthValidator(int minLength)
           
 
Method Summary
 MinLengthValidator.MinLengthMessages getMessages()
           
 void setMessages(MinLengthValidator.MinLengthMessages messages)
           
 List<EditorError> validate(Editor<String> field, String value)
          Validates the value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinLengthValidator

public MinLengthValidator(int minLength)
Method Detail

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 editor
value - the value
Returns:
the errors if any, otherwise, empty list or null


Copyright © 2012. All Rights Reserved.