public class BindingProxy extends GroovyObjectSupport implements BindingUpdatable
FullBinding
s 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)
Retrieves a property value.
|
void |
rebind()
Causes the current bindings to be reset.
|
void |
reverseUpdate()
If supported, Causes the values to be propigated from the target to the source,
If not supported, an exception may be thrown
|
void |
setModel(Object model) |
void |
setProperty(String property,
Object value)
Sets the given property to the new value.
|
void |
unbind()
Causes automatic updating of bound values to be turned off.
|
void |
update()
Causes the values to be propigated from the source to the target
|
getMetaClass, invokeMethod, setMetaClass
public BindingProxy(Object model)
public Object getModel()
public void setModel(Object model)
public Object getProperty(String property)
GroovyObject
getProperty
in interface GroovyObject
getProperty
in class GroovyObjectSupport
property
- the name of the property of interestpublic void setProperty(String property, Object value)
GroovyObject
setProperty
in interface GroovyObject
setProperty
in class GroovyObjectSupport
property
- the name of the property of interestvalue
- the new value for the propertypublic void bind()
BindingUpdatable
bind
in interface BindingUpdatable
public void unbind()
BindingUpdatable
unbind
in interface BindingUpdatable
public void rebind()
BindingUpdatable
rebind
in interface BindingUpdatable
public void update()
BindingUpdatable
update
in interface BindingUpdatable
public void reverseUpdate()
BindingUpdatable
reverseUpdate
in interface BindingUpdatable