org.springframework.richclient.form.binding
Interface Binder

Show UML class diagram
All Known Implementing Classes:
AbstractBinder, AbstractDateFieldBinder, AbstractListBinder, AbstractLookupBinder, CheckBoxBinder, ComboBoxBinder, EnumComboBoxBinder, EnumRadioButtonBinder, FileChooserBinder, FormattedTextFieldBinder, JCalendarDateFieldBinder, JXDatePickerDateFieldBinder, JXSearchFieldBinder, LabelBinder, LabeledEnumComboBoxBinder, ListBinder, ListSelectionDialogBinder, NachoCalendarDateFieldBinder, NumberBinder, ScrollPaneBinder, ShuttleListBinder, SliderBinder, SpinnerBinder, SupplierBinder, TextAreaBinder, TextComponentBinder, TimeBinder, ToggleButtonBinder

public interface Binder

A Binder is responsible for creating a binding between a form model's property and a control that may be used to visualize and/or edit that property.

Author:
Oliver Hutchison

Method Summary
 Binding bind(FormModel formModel, String formPropertyPath, Map context)
          Returns a binding between a form model's property and a control that will be created by this Binder.
 Binding bind(JComponent control, FormModel formModel, String formPropertyPath, Map context)
          Returns a binding between a form model's property and the provided control.
 

Method Detail

bind

Binding bind(FormModel formModel,
             String formPropertyPath,
             Map context)
Returns a binding between a form model's property and a control that will be created by this Binder.

Parameters:
formModel - the form model that this binding is for
formModel - the property that this binding is for
context - additional context that may be used by this binder.
Returns:
a Binding (never null).
Throws:
UnsupportedOperationException - if this binder is unable to create its own control

bind

Binding bind(JComponent control,
             FormModel formModel,
             String formPropertyPath,
             Map context)
Returns a binding between a form model's property and the provided control.

Parameters:
control - the visual control that will be bound to the form model's property.
formModel - the form model that this binding is for
formModel - the property that this binding is for
context - additional context that may be used by this binder
Returns:
a Binding (never null).
Throws:
UnsupportedOperationException - if this binder is unable to bind the provided control or if this binder is unable to bind a provided control


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