org.springframework.richclient.form
Class DefaultFormUIProvider

java.lang.Object
  extended by org.springframework.richclient.application.support.ApplicationServicesAccessor
      extended by org.springframework.richclient.factory.AbstractControlFactory
          extended by org.springframework.richclient.form.AbstractFormUIProvider
              extended by org.springframework.richclient.form.DefaultFormUIProvider
All Implemented Interfaces:
ControlFactory, FormUIProvider

public class DefaultFormUIProvider
extends AbstractFormUIProvider

Default FormUIProvider implementation.

Author:
Peter De Bruycker

Field Summary
 
Fields inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor
logger
 
Constructor Summary
DefaultFormUIProvider()
           
DefaultFormUIProvider(JComponent component)
           
 
Method Summary
protected  JComponent createControl()
          Subclasses must override this method to create a new instance of the control that this factory produces.
 JComponent getComponent(String propertyPath)
          Provides access to individual components of this pre-generated form.
 void setControl(JComponent control)
           
 
Methods inherited from class org.springframework.richclient.form.AbstractFormUIProvider
bind, getContext, getProperties, setContext, setProperties
 
Methods inherited from class org.springframework.richclient.factory.AbstractControlFactory
createControlIfNecessary, getControl, isControlCreated, isSingleton, setSingleton
 
Methods inherited from class org.springframework.richclient.application.support.ApplicationServicesAccessor
getActiveWindow, getApplication, getApplicationContext, getApplicationName, getApplicationServices, getCommandConfigurer, getComponentFactory, getConversionService, getIconSource, getImageSource, getMessage, getMessage, getMessage, getMessage, getMessages, getMessageSource, getObjectConfigurer, getService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.richclient.form.FormUIProvider
getControl
 

Constructor Detail

DefaultFormUIProvider

public DefaultFormUIProvider()

DefaultFormUIProvider

public DefaultFormUIProvider(JComponent component)
Method Detail

getComponent

public JComponent getComponent(String propertyPath)
Description copied from interface: FormUIProvider
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:
propertyPath - 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.

setControl

public void setControl(JComponent control)

createControl

protected JComponent createControl()
Description copied from class: AbstractControlFactory
Subclasses must override this method to create a new instance of the control that this factory produces.

Specified by:
createControl in class AbstractControlFactory
Returns:
The newly created control, never null.


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