Package groovy.swing.binding
Class AbstractSyntheticBinding
java.lang.Object
org.apache.groovy.swing.binding.AbstractFullBinding
groovy.swing.binding.AbstractSyntheticBinding
- All Implemented Interfaces:
BindingUpdatable,FullBinding
-
Field Summary
Fields inherited from class org.apache.groovy.swing.binding.AbstractFullBinding
converter, reverseConverter, sourceBinding, targetBinding, validator -
Constructor Summary
ConstructorsConstructorDescriptionAbstractSyntheticBinding(PropertyBinding source, TargetBinding target, Class klass, String propertyName) -
Method Summary
Modifier and TypeMethodDescriptionvoidbind()Causes automatic updating of bound values to be turned on.voidrebind()Causes the current bindings to be reset.voidsetSourceBinding(SourceBinding source) voidsetTargetBinding(TargetBinding target) protected abstract voidprotected abstract voidvoidunbind()Causes automatic updating of bound values to be turned off.Methods inherited from class org.apache.groovy.swing.binding.AbstractFullBinding
getConverter, getReverseConverter, getSourceBinding, getTargetBinding, getValidator, reverseUpdate, setConverter, setReverseConverter, setValidator, update
-
Constructor Details
-
AbstractSyntheticBinding
public AbstractSyntheticBinding(PropertyBinding source, TargetBinding target, Class klass, String propertyName)
-
-
Method Details
-
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. -
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. -
syntheticBind
protected abstract void syntheticBind() -
syntheticUnbind
protected abstract void syntheticUnbind() -
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. -
setSourceBinding
- Specified by:
setSourceBindingin interfaceFullBinding- Overrides:
setSourceBindingin classAbstractFullBinding
-
setTargetBinding
- Specified by:
setTargetBindingin interfaceFullBinding- Overrides:
setTargetBindingin classAbstractFullBinding
-