|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.joseluismartin.gui.bind.CompositeBinder<T>
T
- modelpublic class CompositeBinder<T>
Composite Binder methods to a collection of PropertyBinders that bind on the same model
Constructor Summary | |
---|---|
CompositeBinder()
Create new CompositeBinder |
|
CompositeBinder(T model)
|
Method Summary | |
---|---|
void |
addBinder(Binder<?> binder,
String name)
|
void |
addBinder(String propertyName,
PropertyBinder binder)
|
void |
autobind(Object view)
|
void |
bind(Object component,
String propertyName)
|
void |
bind(Object component,
String propertyName,
boolean readOnly)
|
void |
bind(Object component,
String propertyName,
T model,
boolean readOnly)
|
PropertyBinder |
getBinder(String propertyName)
Lookup for a binder by property name |
BinderFactory |
getBinderFactory()
|
org.springframework.validation.BindingResult |
getBindingResult()
Get binding result |
List<String> |
getIgnoredProperties()
|
T |
getModel()
Gets model |
Collection<Binder<T>> |
getPropertyBinders()
|
Set<String> |
getPropertyNames()
|
void |
ignoreProperty(String propertyName)
Add a property name to ignore on binding. |
void |
refresh()
Update Component from model |
void |
setBinderFactory(BinderFactory binderFactory)
|
void |
setIgnoredProperties(List<String> ignoredProperties)
|
void |
setModel(T model)
Sets model |
void |
update()
Update Model from Component |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CompositeBinder()
public CompositeBinder(T model)
model
- model to bind onMethod Detail |
---|
public void bind(Object component, String propertyName)
public void bind(Object component, String propertyName, boolean readOnly)
public void bind(Object component, String propertyName, T model, boolean readOnly)
public void addBinder(String propertyName, PropertyBinder binder)
public void refresh()
Binder
refresh
in interface Binder<T>
public void addBinder(Binder<?> binder, String name)
public void update()
Binder
update
in interface Binder<T>
public PropertyBinder getBinder(String propertyName)
BinderHolder
getBinder
in interface BinderHolder
propertyName
- property name
public Set<String> getPropertyNames()
public Collection<Binder<T>> getPropertyBinders()
public BinderFactory getBinderFactory()
public void setBinderFactory(BinderFactory binderFactory)
binderFactory
- the binderFactory to setpublic T getModel()
ModelHolder
getModel
in interface ModelHolder<T>
public void setModel(T model)
ModelHolder
setModel
in interface ModelHolder<T>
public org.springframework.validation.BindingResult getBindingResult()
getBindingResult
in interface Binder<T>
public void autobind(Object view)
public List<String> getIgnoredProperties()
public void setIgnoredProperties(List<String> ignoredProperties)
ignoredProperties
- the ignoredProperties to setpublic void ignoreProperty(String propertyName)
propertyName
- property name to ignore
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |