net.sf.doolin.gui.validation
Interface GUIValidator<B>

Type Parameters:
B - Type of the bean to validate
All Known Implementing Classes:
AbstractValidator, ChainedValidator, ConfirmPasswordValidator, SimpleValidator

public interface GUIValidator<B>

Validator interface for the Doolin GUI framework

Author:
Damien Coraboeuf

Method Summary
 void subscribe(SubscriberValidator validator, B model, Runnable runnable)
          Subscribes the validator to the model changes.
 GUIValidation validate(B model)
          Validates the model
 

Method Detail

validate

GUIValidation validate(B model)
Validates the model

Parameters:
model - Model to validate
Returns:
Result of the validation

subscribe

void subscribe(SubscriberValidator validator,
               B model,
               Runnable runnable)
Subscribes the validator to the model changes.

Parameters:
validator - Subscription validator
model - Model to subscribe to
runnable - Task to subscribe


Copyright © 2011. All Rights Reserved.