public class BindingProxy extends groovy.lang.GroovyObjectSupport implements BindingUpdatable
FullBindings on the source half to the model
object for every property reference (and I do mean every, valid or not, queried before or not). These returned
half bindings are stored strongly in a list when generated.
Changing the model will keep all existing bindings but change the source on all of the bininfs
Formerly Known as Model Binding.| Constructor and Description |
|---|
BindingProxy(Object model) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind()
Causes automatic updating of bound values to be turned on.
|
Object |
getModel() |
Object |
getProperty(String property) |
void |
rebind()
Causes the current bindings to be reset.
|
void |
reverseUpdate()
If supported, Causes the values to be propagated from the target to the source,
If not supported, an exception may be thrown
|
void |
setModel(Object model) |
void |
setProperty(String property,
Object value) |
void |
unbind()
Causes automatic updating of bound values to be turned off.
|
void |
update()
Causes the values to be propagated from the source to the target
|
public BindingProxy(Object model)
public Object getModel()
public void setModel(Object model)
public Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class groovy.lang.GroovyObjectSupportpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class groovy.lang.GroovyObjectSupportpublic void bind()
BindingUpdatablebind in interface BindingUpdatablepublic void unbind()
BindingUpdatableunbind in interface BindingUpdatablepublic void rebind()
BindingUpdatablerebind in interface BindingUpdatablepublic void update()
BindingUpdatableupdate in interface BindingUpdatablepublic void reverseUpdate()
BindingUpdatablereverseUpdate in interface BindingUpdatable