public class ModelBinding extends GroovyObjectSupport implements BindingUpdatable
| Constructor and Description |
|---|
ModelBinding(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 propigated 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 propigated from the source to the target
|
getMetaClass, invokeMethod, setMetaClasspublic java.lang.Object getModel()
public void setModel(java.lang.Object model)
public java.lang.Object getProperty(java.lang.String property)
GroovyObjectgetProperty in interface GroovyObjectgetProperty in class GroovyObjectSupportproperty - the name of the property of interestpublic void setProperty(java.lang.String property,
java.lang.Object value)
GroovyObjectsetProperty in interface GroovyObjectsetProperty in class GroovyObjectSupportproperty - the name of the property of interestvalue - the new value for the propertypublic 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