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 Object implements FullBinding
- Since:
- Groovy 1.6
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind()Causes automatic updating of bound values to be turned on.groovy.lang.ClosuregetConverter()groovy.lang.ClosuregetReverseConverter()SourceBindinggetSourceBinding()TargetBindinggetTargetBinding()groovy.lang.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(groovy.lang.Closure converter)voidsetReverseConverter(groovy.lang.Closure reverseConverter)voidsetSourceBinding(SourceBinding sourceBinding)voidsetTargetBinding(TargetBinding targetBinding)voidsetValidator(groovy.lang.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 target
-
-
-
Method Detail
-
getSourceBinding
public SourceBinding getSourceBinding()
- Specified by:
getSourceBindingin interfaceFullBinding
-
getTargetBinding
public TargetBinding getTargetBinding()
- Specified by:
getTargetBindingin interfaceFullBinding
-
setSourceBinding
public void setSourceBinding(SourceBinding sourceBinding)
- Specified by:
setSourceBindingin interfaceFullBinding
-
setTargetBinding
public void setTargetBinding(TargetBinding targetBinding)
- Specified by:
setTargetBindingin interfaceFullBinding
-
setValidator
public void setValidator(groovy.lang.Closure validator)
- Specified by:
setValidatorin interfaceFullBinding
-
getValidator
public groovy.lang.Closure getValidator()
- Specified by:
getValidatorin interfaceFullBinding
-
setConverter
public void setConverter(groovy.lang.Closure converter)
- Specified by:
setConverterin interfaceFullBinding
-
getConverter
public groovy.lang.Closure getConverter()
- Specified by:
getConverterin interfaceFullBinding
-
setReverseConverter
public void setReverseConverter(groovy.lang.Closure reverseConverter)
- Specified by:
setReverseConverterin interfaceFullBinding
-
getReverseConverter
public groovy.lang.Closure getReverseConverter()
- Specified by:
getReverseConverterin interfaceFullBinding
-
rebuildBindings
protected void rebuildBindings()
-
bind
public 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 interfaceBindingUpdatable
-
unbind
public 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 interfaceBindingUpdatable
-
rebind
public 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 interfaceBindingUpdatable
-
update
public void update()
Description copied from interface:BindingUpdatableCauses the values to be propagated from the source to the target- Specified by:
updatein interfaceBindingUpdatable
-
reverseUpdate
public 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 interfaceBindingUpdatable
-
-