info.joseluismartin.gui.validation
Interface ErrorProcessor

All Known Implementing Classes:
BackgroundErrorProcessor

public interface ErrorProcessor

Process binding erros. AbstractView execute configured ErrorProcessors when there are binding errors.

Since:
1.1
Author:
Jose Luis Martin - (jlm@joseluismartin.info)

Method Summary
 void processError(Binder<?> binder, org.springframework.validation.FieldError error)
          Process binding error.
 void reset()
          clear state of ErrorProcessor.
 

Method Detail

processError

void processError(Binder<?> binder,
                  org.springframework.validation.FieldError error)
Process binding error. Usefull for do control interaction on binding erros, like set a tooltip with error, change background and so.

Parameters:
binder - the binder that gerenate the error
error - the spring validation error Object

reset

void reset()
clear state of ErrorProcessor. Usefull for undo control changes made in processError.



Copyright © 2012 JDAL. All Rights Reserved.