org.springframework.richclient.form
Interface FormUIProvider

All Superinterfaces:
ControlFactory
All Known Implementing Classes:
AbstractFormUIProvider, DefaultFormUIProvider

public interface FormUIProvider
extends ControlFactory

Allows pre-generated form UIs to easily integrate with Spring Rich's form and binding framework. Typically, these pre-generated form UIs are from 3rd party form designers (Matisse, JFormDesigner, etc).

Author:
Andy DePue, Peter De Bruycker, Christophe GADAIX

Method Summary
 void bind(BindingFactory factory, Form form)
          Binds the fields and other components in this pre-generated form to a Spring form by using the specified BindingFactory.
 JComponent getComponent(String componentId)
          Provides access to individual components of this pre-generated form.
 JComponent getControl()
          Produces the pre-generated form as a single Swing component.
 

Method Detail

getControl

JComponent getControl()
Produces the pre-generated form as a single Swing component.

Specified by:
getControl in interface ControlFactory
Returns:
The control, never null.

bind

void bind(BindingFactory factory,
          Form form)
Binds the fields and other components in this pre-generated form to a Spring form by using the specified BindingFactory.

Parameters:
factory - the BindingFactory this form provider should use to bind the provided form.
form - the Form being bound.

getComponent

JComponent getComponent(String componentId)
Provides access to individual components of this pre-generated form. Components are referenced by id. The "id" of a component can be any arbitrary String agreed upon between the designer and the developer, but typically these IDs will be the same as the property names of the object backing the form.

Parameters:
componentId - component id to lookup
Returns:
component with the specified id, or null if no component exists in this pre-generated form with the given id.


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