public class AutoBinder<T> extends Object implements Binder<T>
Binder| Constructor and Description |
|---|
AutoBinder(ModelHolder<T> view)
Create an AutoBinder for a View
|
AutoBinder(Object view,
T model)
Create a Binder for view and model
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(String viewField,
String propertyName) |
org.springframework.validation.BindingResult |
getBindingResult()
Return the Binding result
|
ControlAccessorFactory |
getControlAccessorFactory() |
Set<String> |
getIgnoredProperties() |
T |
getModel() |
void |
ignoreProperties(Collection<? extends String> c)
Add a Collection of property names to ignore on binding
|
void |
ignoreProperty(String propertyName)
Add a property name to ignore on binding.
|
void |
refresh() |
void |
setControlAccessorFactory(ControlAccessorFactory controlAccessorFactory) |
void |
setIgnoredProperties(Set<String> ignoredProperties) |
void |
setModel(T model) |
void |
update() |
public AutoBinder(ModelHolder<T> view)
view - View to bind.public void bind(String viewField, String propertyName) throws UndefinedAccessorException
UndefinedAccessorExceptionpublic T getModel()
getModel in interface ModelHolder<T>public void setModel(T model)
setModel in interface ModelHolder<T>public ControlAccessorFactory getControlAccessorFactory()
public void setControlAccessorFactory(ControlAccessorFactory controlAccessorFactory)
controlAccessorFactory - the controlAccessorFactory to setpublic void ignoreProperty(String propertyName)
propertyName - property name to ignorepublic void setIgnoredProperties(Set<String> ignoredProperties)
ignoredProperties - the ignoredProperties to setpublic void ignoreProperties(Collection<? extends String> c)
c - Collection of property names.public org.springframework.validation.BindingResult getBindingResult()
getBindingResult in interface Binder<T>Copyright © 2014 JDAL. All Rights Reserved.