org.springframework.richclient.form.binding.support
Class AbstractBinder
java.lang.Object
org.springframework.richclient.application.support.ApplicationServicesAccessor
org.springframework.richclient.form.binding.support.AbstractBinder
- All Implemented Interfaces:
- Binder
- Direct Known Subclasses:
- AbstractDateFieldBinder, AbstractListBinder, EnumRadioButtonBinder, FormattedTextFieldBinder, LabelBinder, ListSelectionDialogBinder, NumberBinder, ScrollPaneBinder, ShuttleListBinder, SpinnerBinder, TextAreaBinder, TextComponentBinder, TimeBinder, ToggleButtonBinder
public abstract class AbstractBinder
- extends ApplicationServicesAccessor
- implements Binder
- Author:
- Oliver Hutchison
Field Summary |
static String |
BINDING_CLIENT_PROPERTY_KEY
The client property key that is used to save a copy of a binding in its bound
component's client property set. |
protected org.apache.commons.logging.Log |
log
|
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 |
BINDING_CLIENT_PROPERTY_KEY
public static final String BINDING_CLIENT_PROPERTY_KEY
- The client property key that is used to save a copy of a binding in its bound
component's client property set. This can be used to locate the binding
that has bound a given component.
- See Also:
JComponent.getClientProperty(java.lang.Object)
,
Constant Field Values
log
protected final org.apache.commons.logging.Log log
AbstractBinder
protected AbstractBinder(Class requiredSourceClass)
AbstractBinder
protected AbstractBinder(Class requiredSourceClass,
String[] supportedContextKeys)
validateContextKeys
protected void validateContextKeys(Map context)
getRequiredSourceClass
public Class getRequiredSourceClass()
bind
public Binding bind(FormModel formModel,
String formPropertyPath,
Map context)
- Description copied from interface:
Binder
- Returns a binding between a form model's property and a control that will be
created by this Binder.
- Specified by:
bind
in interface Binder
- Parameters:
formModel
- the form model that this binding is forcontext
- additional context that may be used by this binder.
- Returns:
- a Binding (never null).
createControl
protected abstract JComponent createControl(Map context)
bind
public Binding bind(JComponent control,
FormModel formModel,
String formPropertyPath,
Map context)
- Description copied from interface:
Binder
- Returns a binding between a form model's property and the provided control.
- Specified by:
bind
in interface Binder
- Parameters:
control
- the visual control that will be bound to the form model's property.formModel
- the form model that this binding is forcontext
- additional context that may be used by this binder
- Returns:
- a Binding (never null).
doBind
protected abstract Binding doBind(JComponent control,
FormModel formModel,
String formPropertyPath,
Map context)
getPropertyType
protected Class getPropertyType(FormModel formModel,
String formPropertyPath)
Copyright © 2004-2009 The Spring Framework. All Rights Reserved.