com.sencha.gxt.widget.core.client.form.validator
Class EmptyValidator<T>

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

public class EmptyValidator<T>
extends java.lang.Object
implements Validator<T>


Nested Class Summary
static interface EmptyValidator.EmptyMessages
           
 
Constructor Summary
EmptyValidator()
           
 
Method Summary
 EmptyValidator.EmptyMessages getMessages()
           
 void setMessages(EmptyValidator.EmptyMessages messages)
           
 java.util.List<EditorError> validate(Editor<T> editor, T value)
          Validates the value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmptyValidator

public EmptyValidator()
Method Detail

getMessages

public EmptyValidator.EmptyMessages getMessages()

setMessages

public void setMessages(EmptyValidator.EmptyMessages messages)

validate

public java.util.List<EditorError> validate(Editor<T> editor,
                                            T value)
Description copied from interface: Validator
Validates the value.

Specified by:
validate in interface Validator<T>
Parameters:
editor - the editor
value - the value
Returns:
the errors if any, otherwise, empty list or null


Copyright © 2012. All Rights Reserved.