|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.form.builder.support.AbstractFormComponentInterceptor
org.springframework.richclient.text.TextComponentInterceptor
public abstract class TextComponentInterceptor
Abstract base class for FormComponentInterceptors that work on
JTextComponents.
| Constructor Summary | |
|---|---|
TextComponentInterceptor()
|
|
| Method Summary | |
|---|---|
protected JTextComponent |
getTextComponent(JComponent component)
Converts the given component to a JTextComponent. |
void |
processComponent(String propertyName,
JComponent component)
Perform some kind of processing on the component. |
protected abstract void |
processComponent(String propertyName,
JTextComponent textComponent)
Process the text component. |
| Methods inherited from class org.springframework.richclient.form.builder.support.AbstractFormComponentInterceptor |
|---|
getFormModel, getInnerComponent, processLabel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextComponentInterceptor()
| Method Detail |
|---|
public final void processComponent(String propertyName,
JComponent component)
FormComponentInterceptor
processComponent in interface FormComponentInterceptorprocessComponent in class AbstractFormComponentInterceptorpropertyName - the name of the property that the component is forcomponent - the component to process
protected abstract void processComponent(String propertyName,
JTextComponent textComponent)
propertyName - the name of the propertytextComponent - the text componentprotected JTextComponent getTextComponent(JComponent component)
JTextComponent. This can be a
simple cast if the component is already a text component, or an embedded component
(for example a JSpinner).
This method is protected, and can be overridden when necessary.
component - the component
JTextComponent, or null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||