org.gwtbootstrap3.client.ui.form.validator
Class BlankValidator<T>

java.lang.Object
  extended by org.gwtbootstrap3.client.ui.form.validator.BlankValidator<T>
Type Parameters:
T - the generic type
All Implemented Interfaces:
Validator<T>

public class BlankValidator<T>
extends Object
implements Validator<T>

Validator for blank field validation.

Author:
Steven Jardine

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gwtbootstrap3.client.ui.form.validator.Validator
Validator.Priority
 
Constructor Summary
BlankValidator()
           
 
Method Summary
 int getPriority()
          Priority value for this validator.
 List<EditorError> validate(Editor<T> editor, T value)
          Validate the field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlankValidator

public BlankValidator()
Method Detail

validate

public List<EditorError> validate(Editor<T> editor,
                                  T value)
Validate the field.

Specified by:
validate in interface Validator<T>
Parameters:
editor - the Editor.
value - the value
Returns:
the list

getPriority

public int getPriority()
Priority value for this validator. Lower the number, higher the priority.

Specified by:
getPriority in interface Validator<T>
Returns:
the priority.


Copyright © 2015. All rights reserved.