org.springframework.richclient.form.builder.support
Class ColorValidationInterceptorFactory
java.lang.Object
org.springframework.richclient.form.builder.support.ColorValidationInterceptorFactory
- All Implemented Interfaces:
- FormComponentInterceptorFactory
public class ColorValidationInterceptorFactory
- extends Object
- implements FormComponentInterceptorFactory
Adds an "overlay" to a component that is triggered by a validation event for
JTextComponents. When an error is triggered, the background color of the
component is changed to the color set in setErrorColor(Color). (The
default color is a very light red.)
- Author:
- oliverh
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorValidationInterceptorFactory
public ColorValidationInterceptorFactory()
setColorMap
public void setColorMap(Map<Severity,Color> colorMap)
setErrorColor
public void setErrorColor(Color color)
setWarningColor
public void setWarningColor(Color color)
getInterceptor
public FormComponentInterceptor getInterceptor(FormModel formModel)
- Description copied from interface:
FormComponentInterceptorFactory
- Returns a
FormComponentInterceptors for the given
FormModel.
- Specified by:
getInterceptor in interface FormComponentInterceptorFactory
Copyright © 2004-2009 The Spring Framework. All Rights Reserved.