Package org.apache.groovy.swing.binding
Class MutualPropertyBinding
java.lang.Object
org.apache.groovy.swing.binding.MutualPropertyBinding
- All Implemented Interfaces:
- BindingUpdatable,- FullBinding
public class MutualPropertyBinding extends java.lang.Object implements FullBinding
- Since:
- Groovy 1.6
- 
Method SummaryModifier and Type Method Description voidbind()Causes automatic updating of bound values to be turned on.ClosuregetConverter()ClosuregetReverseConverter()SourceBindinggetSourceBinding()TargetBindinggetTargetBinding()ClosuregetValidator()voidrebind()Causes the current bindings to be reset.protected voidrebuildBindings()voidreverseUpdate()If supported, Causes the values to be propagated from the target to the source, If not supported, an exception may be thrownvoidsetConverter(Closure converter)voidsetReverseConverter(Closure reverseConverter)voidsetSourceBinding(SourceBinding sourceBinding)voidsetTargetBinding(TargetBinding targetBinding)voidsetValidator(Closure validator)voidunbind()Causes automatic updating of bound values to be turned off.voidupdate()Causes the values to be propagated from the source to the targetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Method Details- 
getSourceBinding- Specified by:
- getSourceBindingin interface- FullBinding
 
- 
getTargetBinding- Specified by:
- getTargetBindingin interface- FullBinding
 
- 
setSourceBinding- Specified by:
- setSourceBindingin interface- FullBinding
 
- 
setTargetBinding- Specified by:
- setTargetBindingin interface- FullBinding
 
- 
setValidator- Specified by:
- setValidatorin interface- FullBinding
 
- 
getValidator- Specified by:
- getValidatorin interface- FullBinding
 
- 
setConverter- Specified by:
- setConverterin interface- FullBinding
 
- 
getConverter- Specified by:
- getConverterin interface- FullBinding
 
- 
setReverseConverter- Specified by:
- setReverseConverterin interface- FullBinding
 
- 
getReverseConverter- Specified by:
- getReverseConverterin interface- FullBinding
 
- 
rebuildBindingsprotected void rebuildBindings()
- 
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
 
 
-