Package org.codehaus.groovy.binding
Class BindingProxy
- java.lang.Object
- 
- groovy.lang.GroovyObjectSupport
- 
- org.codehaus.groovy.binding.BindingProxy
 
 
- 
- All Implemented Interfaces:
- GroovyObject,- BindingUpdatable
 
 public class BindingProxy extends GroovyObjectSupport implements BindingUpdatable This class returns half boundFullBindings 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.- Since:
- Groovy 1.5
 
- 
- 
Constructor SummaryConstructors Constructor Description BindingProxy(java.lang.Object model)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind()Causes automatic updating of bound values to be turned on.java.lang.ObjectgetModel()java.lang.ObjectgetProperty(java.lang.String property)Retrieves a property value.voidrebind()Causes the current bindings to be reset.voidreverseUpdate()If supported, Causes the values to be propagated from the target to the source, If not supported, an exception may be thrownvoidsetModel(java.lang.Object model)voidsetProperty(java.lang.String property, java.lang.Object value)Sets the given property to the new value.voidunbind()Causes automatic updating of bound values to be turned off.voidupdate()Causes the values to be propagated from the source to the target- 
Methods inherited from class groovy.lang.GroovyObjectSupportgetMetaClass, invokeMethod, setMetaClass
 
- 
 
- 
- 
- 
Method Detail- 
getModelpublic java.lang.Object getModel() 
 - 
setModelpublic void setModel(java.lang.Object model) 
 - 
getPropertypublic java.lang.Object getProperty(java.lang.String property) Description copied from interface:GroovyObjectRetrieves a property value.- Specified by:
- getPropertyin interface- GroovyObject
- Overrides:
- getPropertyin class- GroovyObjectSupport
- Parameters:
- property- the name of the property of interest
- Returns:
- the given property
 
 - 
setPropertypublic void setProperty(java.lang.String property, java.lang.Object value)Description copied from interface:GroovyObjectSets the given property to the new value.- Specified by:
- setPropertyin interface- GroovyObject
- Overrides:
- setPropertyin class- GroovyObjectSupport
- Parameters:
- property- the name of the property of interest
- value- the new value for the property
 
 - 
bindpublic void bind() Description copied from interface:BindingUpdatableCauses automatic updating of bound values to be turned on. This is idempotent between calls to unbind and rebind; i.e. multiple calls to bind will have only the effect of the first call.- Specified by:
- bindin interface- BindingUpdatable
 
 - 
unbindpublic void unbind() Description copied from interface:BindingUpdatableCauses automatic updating of bound values to be turned off. This is idempotent between calls to bind and rebind; i.e. multiple calls to unbind will have only the effect of the first call.- Specified by:
- unbindin interface- BindingUpdatable
 
 - 
rebindpublic void rebind() Description copied from interface:BindingUpdatableCauses the current bindings to be reset. If the binding is not bound, it is a no-op. If the binding is bound, it will be turned off, then turned on against current values.- Specified by:
- rebindin interface- BindingUpdatable
 
 - 
updatepublic void update() Description copied from interface:BindingUpdatableCauses the values to be propagated from the source to the target- Specified by:
- updatein interface- BindingUpdatable
 
 - 
reverseUpdatepublic void reverseUpdate() Description copied from interface:BindingUpdatableIf supported, Causes the values to be propagated from the target to the source, If not supported, an exception may be thrown- Specified by:
- reverseUpdatein interface- BindingUpdatable
 
 
- 
 
-