info.joseluismartin.gui.validation
Class BackgroundErrorProcessor
java.lang.Object
info.joseluismartin.gui.validation.BackgroundErrorProcessor
- All Implemented Interfaces:
- ErrorProcessor
public class BackgroundErrorProcessor
- extends Object
- implements ErrorProcessor
ErrorProcessor that change background color of JComponent and add a tooltip with error message
on binding errors.
- Since:
- 1.1
- Author:
- Jose Luis Martin - (jlm@joseluismartin.info)
- See Also:
ErrorProcessor,
AbstracView
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BackgroundErrorProcessor
public BackgroundErrorProcessor()
processError
public 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.
- Specified by:
processError in interface ErrorProcessor
- Parameters:
binder - the binder that gerenate the errorerror - the spring validation error Object
reset
public void reset()
- clear state of ErrorProcessor. Usefull for undo control changes made in processError.
- Specified by:
reset in interface ErrorProcessor
getErrorColor
public Color getErrorColor()
- Returns:
- the errorColor
setErrorColor
public void setErrorColor(Color errorColor)
- Parameters:
errorColor - the errorColor to set
getMessageSource
public org.springframework.context.MessageSource getMessageSource()
- Returns:
- the messageSource
setMessageSource
public void setMessageSource(org.springframework.context.MessageSource messageSource)
- Parameters:
messageSource - the messageSource to set
Copyright © 2012 JDAL. All Rights Reserved.