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(Object control, org.springframework.validation.FieldError error)
          Process binding error.
 void reset()
          clear state of ErrorProcessor.
 

Method Detail

processError

void processError(Object control,
                  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:
control - the control that generate the error
error - the spring validation error Object

reset

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



Copyright © 2013 JDAL. All Rights Reserved.