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(java.lang.Object model) |
Modifier and Type | Method and Description |
---|---|
void |
bind()
Causes automatic updating of bound values to be turned on.
|
java.lang.Object |
getModel() |
java.lang.Object |
getProperty(java.lang.String property)
Retrieves a property value.
|
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(java.lang.Object model) |
void |
setProperty(java.lang.String property,
java.lang.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 propagated from the source to the target
|
getMetaClass, invokeMethod, setMetaClass
public java.lang.Object getModel()
public void setModel(java.lang.Object model)
public java.lang.Object getProperty(java.lang.String property)
GroovyObject
getProperty
in interface GroovyObject
getProperty
in class GroovyObjectSupport
property
- the name of the property of interestpublic void setProperty(java.lang.String property, java.lang.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