|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BinderSelectionStrategy
Strategy interface that encapsulates the selection of a Binder
for the provided form model, property name and optionally control type.
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 |
---|
Binder selectBinder(FormModel formModel, String propertyName)
formModel
- the form model which contains the property to be boundpropertyName
- the name of the property to be bound
Binder
(never null). This binder must be capable of
generating it's own control to bind to.
BinderNotFoundException
- if there is no suitable binderBinder selectBinder(Class controlType, FormModel formModel, String propertyName)
controlType
- the type of the control to be boundformModel
- the form model which contains the property to be boundpropertyName
- the name of the property to be bound
Binder
(never null). This binder must be capable of
binding to a pre-created control that is of the specified controlType
.
BinderNotFoundException
- if there is no suitable binder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |