org.springframework.richclient.form.builder.support
Class ColorValidationInterceptorFactory

Show UML class diagram
java.lang.Object
  extended by 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

Constructor Summary
ColorValidationInterceptorFactory()
           
 
Method Summary
 FormComponentInterceptor getInterceptor(FormModel formModel)
          Returns a FormComponentInterceptors for the given FormModel.
 void setColorMap(Map<Severity,Color> colorMap)
           
 void setErrorColor(Color color)
           
 void setWarningColor(Color color)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorValidationInterceptorFactory

public ColorValidationInterceptorFactory()
Method Detail

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.