Package org.codehaus.groovy.binding
Class AggregateBinding
- java.lang.Object
- 
- org.codehaus.groovy.binding.AggregateBinding
 
- 
- All Implemented Interfaces:
- BindingUpdatable
 
 public class AggregateBinding extends java.lang.Object implements BindingUpdatable An aggregation of multiple bindings- Since:
- Groovy 1.6
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.util.Set<BindingUpdatable>bindingsprotected booleanbound
 - 
Constructor SummaryConstructors Constructor Description AggregateBinding()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBinding(BindingUpdatable binding)voidbind()Causes automatic updating of bound values to be turned on.voidrebind()Causes the current bindings to be reset.voidremoveBinding(BindingUpdatable binding)voidreverseUpdate()If supported, Causes the values to be propagated from the target to the source, If not supported, an exception may be thrownvoidunbind()Causes automatic updating of bound values to be turned off.voidupdate()Causes the values to be propagated from the source to the target
 
- 
- 
- 
Field Detail- 
boundprotected boolean bound 
 - 
bindingsprotected java.util.Set<BindingUpdatable> bindings 
 
- 
 - 
Method Detail- 
addBindingpublic void addBinding(BindingUpdatable binding) 
 - 
removeBindingpublic void removeBinding(BindingUpdatable binding) 
 - 
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
 
 
- 
 
-