org.springframework.richclient.form.binding.support
Class AbstractBindingFactory

java.lang.Object
  extended by org.springframework.richclient.form.binding.support.AbstractBindingFactory
All Implemented Interfaces:
BindingFactory
Direct Known Subclasses:
SwingBindingFactory

public abstract class AbstractBindingFactory
extends Object
implements BindingFactory

Abstract base implementation of BindingFactory.

Author:
Oliver Hutchison

Constructor Summary
protected AbstractBindingFactory(FormModel formModel)
           
 
Method Summary
 Binding bindControl(JComponent control, String formPropertyPath)
          Returns a binding between the provided control and the provided formPropertyPath
 Binding bindControl(JComponent control, String formPropertyPath, Map context)
          Returns a binding between the provided control and the provided formPropertyPath
 Binding createBinding(Class controlType, String formPropertyPath)
          Returns a binding to a control of type controlType for the provided formPropertyPath
 Binding createBinding(Class controlType, String formPropertyPath, Map context)
          Returns a binding to a control of type controlType for the provided formPropertyPath
 Binding createBinding(String formPropertyPath)
          Returns a binding for the provided formPropertyPath.
 Binding createBinding(String formPropertyPath, Map context)
          Returns a binding for the provided formPropertyPath.
protected  Map createContext(String key, Object value)
           
protected  BinderSelectionStrategy getBinderSelectionStrategy()
           
 FormModel getFormModel()
          Returns the form model that contains the properties being bound.
 void interceptBinding(Binding binding)
           
 void setBinderSelectionStrategy(BinderSelectionStrategy binderSelectionStrategy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractBindingFactory

protected AbstractBindingFactory(FormModel formModel)
Method Detail

createBinding

public Binding createBinding(String formPropertyPath)
Description copied from interface: BindingFactory
Returns a binding for the provided formPropertyPath.

Specified by:
createBinding in interface BindingFactory

createBinding

public Binding createBinding(Class controlType,
                             String formPropertyPath)
Description copied from interface: BindingFactory
Returns a binding to a control of type controlType for the provided formPropertyPath

Specified by:
createBinding in interface BindingFactory

bindControl

public Binding bindControl(JComponent control,
                           String formPropertyPath)
Description copied from interface: BindingFactory
Returns a binding between the provided control and the provided formPropertyPath

Specified by:
bindControl in interface BindingFactory

createBinding

public Binding createBinding(String formPropertyPath,
                             Map context)
Description copied from interface: BindingFactory
Returns a binding for the provided formPropertyPath.

Specified by:
createBinding in interface BindingFactory

createBinding

public Binding createBinding(Class controlType,
                             String formPropertyPath,
                             Map context)
Description copied from interface: BindingFactory
Returns a binding to a control of type controlType for the provided formPropertyPath

Specified by:
createBinding in interface BindingFactory

bindControl

public Binding bindControl(JComponent control,
                           String formPropertyPath,
                           Map context)
Description copied from interface: BindingFactory
Returns a binding between the provided control and the provided formPropertyPath

Specified by:
bindControl in interface BindingFactory

interceptBinding

public void interceptBinding(Binding binding)

getFormModel

public FormModel getFormModel()
Description copied from interface: BindingFactory
Returns the form model that contains the properties being bound.

Specified by:
getFormModel in interface BindingFactory

getBinderSelectionStrategy

protected BinderSelectionStrategy getBinderSelectionStrategy()

setBinderSelectionStrategy

public void setBinderSelectionStrategy(BinderSelectionStrategy binderSelectionStrategy)

createContext

protected Map createContext(String key,
                            Object value)


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