|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.richclient.form.builder.AbstractFormBuilder
public abstract class AbstractFormBuilder
Base class for form builders.
| Constructor Summary | |
|---|---|
protected |
AbstractFormBuilder(BindingFactory bindingFactory)
Default constructor providing the BindingFactory. |
| Method Summary | |
|---|---|
protected Binding |
createBinding(String fieldName,
JComponent component)
Create a binding that uses the given component instead of its default component. |
protected Binding |
createBinding(String fieldName,
JComponent component,
Map context)
Create a binding that uses the given component instead of its default component. |
protected Binding |
createDefaultBinding(String fieldName)
Create a binding by looking up the appropriate registered binding. |
protected JLabel |
createLabelFor(String fieldName,
JComponent component)
Create a label for the property. |
protected JPasswordField |
createPasswordField(String fieldName)
Create a password field for the given property. |
protected JComponent |
createScrollPane(String fieldName,
JComponent component)
Creates a component which is used as a scrollpane for a component |
protected JComponent |
createSelector(String fieldName,
Constraint filter)
Creates a component which is used as a selector in the form. |
protected JComponent |
createTextArea(String fieldName)
Create a textarea for the given property. |
protected BindingFactory |
getBindingFactory()
Returns the BindingFactory. |
protected ComponentFactory |
getComponentFactory()
Returns the ComponentFactory that delivers all the visual
components. |
protected FormComponentInterceptor |
getFormComponentInterceptor()
Returns the FormComponentInterceptor that will be used when
creating a component with this builder. |
protected FormModel |
getFormModel()
Convenience method to return the formModel that is used in the BindingFactory and that should be used in the builder. |
void |
setComponentFactory(ComponentFactory componentFactory)
Set the ComponentFactory. |
void |
setFormComponentInterceptorFactory(FormComponentInterceptorFactory interceptorFactory)
Set the factory that delivers the FormComponentInterceptor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractFormBuilder(BindingFactory bindingFactory)
BindingFactory.
bindingFactory - the factory creating the Bindings.| Method Detail |
|---|
protected FormComponentInterceptor getFormComponentInterceptor()
FormComponentInterceptor that will be used when
creating a component with this builder.
public void setFormComponentInterceptorFactory(FormComponentInterceptorFactory interceptorFactory)
FormComponentInterceptor.
protected ComponentFactory getComponentFactory()
ComponentFactory that delivers all the visual
components.
public void setComponentFactory(ComponentFactory componentFactory)
ComponentFactory.
protected BindingFactory getBindingFactory()
BindingFactory.
protected FormModel getFormModel()
BindingFactory and that should be used in the builder.
protected Binding createDefaultBinding(String fieldName)
fieldName - the name of the property to bind.
Binding for the property which provides a component
that is bound to the valueModel of the property.
protected Binding createBinding(String fieldName,
JComponent component)
fieldName - the name of the property to bind.component - the component to bind to the property.
Binding that binds the component to the valuemodel of
the property.
protected Binding createBinding(String fieldName,
JComponent component,
Map context)
fieldName - the name of the property to bind.component - the component to bind to the property.context - a map of with additional settings providing a specific
context.
Binding that binds the component to the valuemodel of
the property.
protected JComponent createSelector(String fieldName,
Constraint filter)
JComboBox
fieldName - the name of the field for the selectorfilter - an optional filter constraint
protected JComponent createScrollPane(String fieldName,
JComponent component)
fieldName - the fieldname for the scrollpanecomponent - the component to place into the scrollpane
protected JPasswordField createPasswordField(String fieldName)
fieldName - the name of the property.
protected JComponent createTextArea(String fieldName)
fieldName - the name of the property.
protected JLabel createLabelFor(String fieldName,
JComponent component)
fieldName - the name of the property.component - the component of the property which is related to the
label.
JLabel for the property.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||