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

java.lang.Object
  extended by org.springframework.richclient.form.builder.support.AbstractFormComponentInterceptor
All Implemented Interfaces:
FormComponentInterceptor
Direct Known Subclasses:
AbstractFormComponentStatusBarInterceptor, CheckBoxFormComponentInterceptor, ComboBoxAutoCompletionInterceptorFactory.ComboBoxAutoCompletionInterceptor, DirtyIndicatorInterceptor, TextComponentInterceptor, ValidationInterceptor

public abstract class AbstractFormComponentInterceptor
extends Object
implements FormComponentInterceptor

Abstract base for FormComponentInterceptorFactory with formModel handling.

Author:
oliverh

Constructor Summary
protected AbstractFormComponentInterceptor()
           
protected AbstractFormComponentInterceptor(FormModel formModel)
           
 
Method Summary
protected  FormModel getFormModel()
           
protected  JComponent getInnerComponent(JComponent component)
          Check for JScrollPane.
 void processComponent(String propertyName, JComponent component)
          Perform some kind of processing on the component.
 void processLabel(String propertyName, JComponent label)
          Perform some kind of processing on the label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFormComponentInterceptor

protected AbstractFormComponentInterceptor()

AbstractFormComponentInterceptor

protected AbstractFormComponentInterceptor(FormModel formModel)
Method Detail

getFormModel

protected FormModel getFormModel()

processLabel

public void processLabel(String propertyName,
                         JComponent label)
Description copied from interface: FormComponentInterceptor
Perform some kind of processing on the label.

Specified by:
processLabel in interface FormComponentInterceptor
Parameters:
propertyName - the name of the property that the label is for
label - the label to process

processComponent

public void processComponent(String propertyName,
                             JComponent component)
Description copied from interface: FormComponentInterceptor
Perform some kind of processing on the component.

Specified by:
processComponent in interface FormComponentInterceptor
Parameters:
propertyName - the name of the property that the component is for
component - the component to process

getInnerComponent

protected JComponent getInnerComponent(JComponent component)
Check for JScrollPane.

Parameters:
component -
Returns:
the component itself, or the inner component if it was a JScrollPane.


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.