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
FieldsModifier and TypeFieldDescriptionprotected Set<BindingUpdatable>The member bindings managed by this aggregate.protected booleanIndicates whether the aggregate is currently bound. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBinding(BindingUpdatable binding) Adds a binding to the aggregate.voidbind()Binds every member binding in insertion order.voidrebind()Rebinds every member binding when the aggregate is currently active.voidremoveBinding(BindingUpdatable binding) Removes a binding from the aggregate.voidPushes reverse updates through every member binding.voidunbind()Unbinds every member binding in insertion order.voidupdate()Pushes source updates through every member binding.
-
Field Details
-
bound
protected boolean boundIndicates whether the aggregate is currently bound. -
bindings
The member bindings managed by this aggregate.
-
-
Constructor Details
-
AggregateBinding
public AggregateBinding()
-
-
Method Details
-
addBinding
Adds a binding to the aggregate.- Parameters:
binding- the binding to add
-
removeBinding
Removes a binding from the aggregate.- Parameters:
binding- the binding to remove
-
bind
public void bind()Binds every member binding in insertion order.- Specified by:
bindin interfaceBindingUpdatable
-
unbind
public void unbind()Unbinds every member binding in insertion order.- Specified by:
unbindin interfaceBindingUpdatable
-
rebind
public void rebind()Rebinds every member binding when the aggregate is currently active.- Specified by:
rebindin interfaceBindingUpdatable
-
update
public void update()Pushes source updates through every member binding.- Specified by:
updatein interfaceBindingUpdatable
-
reverseUpdate
public void reverseUpdate()Pushes reverse updates through every member binding.- Specified by:
reverseUpdatein interfaceBindingUpdatable
-