org.springframework.richclient.form.binding.swing
Class SwingBinderSelectionStrategy

Show UML class diagram
java.lang.Object
  extended by org.springframework.richclient.form.binding.support.AbstractBinderSelectionStrategy
      extended by org.springframework.richclient.form.binding.swing.SwingBinderSelectionStrategy
All Implemented Interfaces:
InitializingBean, ApplicationContextAware, BinderSelectionStrategy

public class SwingBinderSelectionStrategy
extends AbstractBinderSelectionStrategy

Author:
Oliver Hutchison

Constructor Summary
SwingBinderSelectionStrategy()
           
 
Method Summary
 Binder getIdBoundBinder(String id)
          Try to find a binder with a specified id.
protected  void registerDefaultBinders()
          Register the default set of binders.
 void registerIdBoundBinders(Map<String,Binder> binders)
          Register additional map of id bound binders
 Binder selectBinder(Class controlType)
          Select a binder based on a control type
 void setIdBoundBinders(Map binders)
          Set a map with predefined binders
 
Methods inherited from class org.springframework.richclient.form.binding.support.AbstractBinderSelectionStrategy
afterPropertiesSet, findBinderByControlType, findBinderByPropertyName, findBinderByPropertyType, getApplicationContext, getPropertyType, isEnumeration, registerBinderForControlType, registerBinderForPropertyName, registerBinderForPropertyType, selectBinder, selectBinder, setApplicationContext, setBinderForPropertyName, setBindersForControlTypes, setBindersForPropertyNames, setBindersForPropertyTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SwingBinderSelectionStrategy

public SwingBinderSelectionStrategy()
Method Detail

setIdBoundBinders

public void setIdBoundBinders(Map binders)
Set a map with predefined binders

Parameters:
binders -

registerIdBoundBinders

public void registerIdBoundBinders(Map<String,Binder> binders)
Register additional map of id bound binders

Parameters:
binders -

getIdBoundBinder

public Binder getIdBoundBinder(String id)
Try to find a binder with a specified id. If no binder is found, try to locate it into the application context, check whether it's a binder and add it to the id bound binder map.

Parameters:
id - Id of the binder
Returns:
Binder or null if not found.

selectBinder

public Binder selectBinder(Class controlType)
Select a binder based on a control type

Parameters:
controlType - Type of control
Returns:
The binder for that control

registerDefaultBinders

protected void registerDefaultBinders()
Description copied from class: AbstractBinderSelectionStrategy
Register the default set of binders. This method is called on construction.

Specified by:
registerDefaultBinders in class AbstractBinderSelectionStrategy
See Also:
AbstractBinderSelectionStrategy.registerBinderForPropertyName(Class, String, Binder), AbstractBinderSelectionStrategy.registerBinderForPropertyType(Class, Binder), AbstractBinderSelectionStrategy.registerBinderForControlType(Class, Binder)


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