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

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

public class MaxLengthValidator
extends AbstractValidator<java.lang.String>


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

Constructor Detail

MaxLengthValidator

public MaxLengthValidator(int maxLength)
Method Detail

getMessages

public MaxLengthValidator.MaxLengthMessages getMessages()

setMessages

public void setMessages(MaxLengthValidator.MaxLengthMessages messages)

validate

public java.util.List<EditorError> validate(Editor<java.lang.String> field,
                                            java.lang.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.