Package org.apache.groovy.swing.binding
Interface FullBinding
- All Superinterfaces:
BindingUpdatable
- All Known Implementing Classes:
AbstractFullBinding,AbstractSyntheticBinding,MutualPropertyBinding,PropertyPathFullBinding
Coordinates value propagation between a
SourceBinding and a TargetBinding.- Since:
- Groovy 1.1
-
Method Summary
Modifier and TypeMethodDescriptionReturns the forward converter used before writing to the target.Returns the reverse converter used during reverse updates.Returns the source side of the binding.Returns the target side of the binding.Returns the validator used before forward propagation.voidsetConverter(Closure converter) Sets the forward converter used before writing to the target.voidsetReverseConverter(Closure reverseConverter) Sets the reverse converter used before writing back to the source.voidsetSourceBinding(SourceBinding source) Replaces the source side of the binding.voidsetTargetBinding(TargetBinding target) Replaces the target side of the binding.voidsetValidator(Closure validator) Sets a validator invoked before propagating source values to the target.Methods inherited from interface org.apache.groovy.swing.binding.BindingUpdatable
bind, rebind, reverseUpdate, unbind, update
-
Method Details
-
getSourceBinding
SourceBinding getSourceBinding()Returns the source side of the binding.- Returns:
- the source binding
-
getTargetBinding
TargetBinding getTargetBinding()Returns the target side of the binding.- Returns:
- the target binding
-
setSourceBinding
Replaces the source side of the binding.- Parameters:
source- the new source binding
-
setTargetBinding
Replaces the target side of the binding.- Parameters:
target- the new target binding
-
setValidator
Sets a validator invoked before propagating source values to the target.- Parameters:
validator- the validation closure, ornull
-
getValidator
Closure getValidator()Returns the validator used before forward propagation.- Returns:
- the validator closure, or
null
-
setConverter
Sets the forward converter used before writing to the target.- Parameters:
converter- the forward converter, ornull
-
getConverter
Closure getConverter()Returns the forward converter used before writing to the target.- Returns:
- the forward converter, or
null
-
setReverseConverter
Sets the reverse converter used before writing back to the source.- Parameters:
reverseConverter- the reverse converter, ornull
-
getReverseConverter
Closure getReverseConverter()Returns the reverse converter used during reverse updates.- Returns:
- the reverse converter, or
null
-