Package org.apache.groovy.swing.binding
Class AggregateBinding
java.lang.Object
org.apache.groovy.swing.binding.AggregateBinding
- All Implemented Interfaces:
BindingUpdatable
An aggregation of multiple bindings
- Since:
- Groovy 1.6
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBinding
(BindingUpdatable binding) void
bind()
Causes automatic updating of bound values to be turned on.void
rebind()
Causes the current bindings to be reset.void
removeBinding
(BindingUpdatable binding) void
If supported, Causes the values to be propagated from the target to the source, If not supported, an exception may be thrownvoid
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
-
Field Details
-
bound
protected boolean bound -
bindings
-
-
Constructor Details
-
AggregateBinding
public AggregateBinding()
-
-
Method Details
-
addBinding
-
removeBinding
-
bind
public void bind()Description copied from interface:BindingUpdatable
Causes 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:
bind
in interfaceBindingUpdatable
-
unbind
public void unbind()Description copied from interface:BindingUpdatable
Causes 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:
unbind
in interfaceBindingUpdatable
-
rebind
public void rebind()Description copied from interface:BindingUpdatable
Causes 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:
rebind
in interfaceBindingUpdatable
-
update
public void update()Description copied from interface:BindingUpdatable
Causes the values to be propagated from the source to the target- Specified by:
update
in interfaceBindingUpdatable
-
reverseUpdate
public void reverseUpdate()Description copied from interface:BindingUpdatable
If supported, Causes the values to be propagated from the target to the source, If not supported, an exception may be thrown- Specified by:
reverseUpdate
in interfaceBindingUpdatable
-