org.springframework.richclient.form.binding
Interface BinderSelectionStrategy

All Known Implementing Classes:
AbstractBinderSelectionStrategy, SwingBinderSelectionStrategy

public interface BinderSelectionStrategy

Strategy interface that encapsulates the selection of a Binder for the provided form model, property name and optionally control type.

Author:
Oliver Hutchison

Method Summary
 Binder selectBinder(Class controlType, FormModel formModel, String propertyName)
          Returns a binder that is capable of binding the provided control type to the provided form model and property name.
 Binder selectBinder(FormModel formModel, String propertyName)
          Returns a binder for the provided form model and property name.
 

Method Detail

selectBinder

Binder selectBinder(FormModel formModel,
                    String propertyName)
Returns a binder for the provided form model and property name.

Parameters:
formModel - the form model which contains the property to be bound
propertyName - the name of the property to be bound
Returns:
the Binder (never null). This binder must be capable of generating it's own control to bind to.
Throws:
BinderNotFoundException - if there is no suitable binder

selectBinder

Binder selectBinder(Class controlType,
                    FormModel formModel,
                    String propertyName)
Returns a binder that is capable of binding the provided control type to the provided form model and property name.

Parameters:
controlType - the type of the control to be bound
formModel - the form model which contains the property to be bound
propertyName - the name of the property to be bound
Returns:
the Binder (never null). This binder must be capable of binding to a pre-created control that is of the specified controlType.
Throws:
BinderNotFoundException - if there is no suitable binder


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