Package org.apache.groovy.swing.binding
Class MutualPropertyBinding
java.lang.Object
org.apache.groovy.swing.binding.MutualPropertyBinding
- All Implemented Interfaces:
BindingUpdatable
,FullBinding
- Since:
- Groovy 1.6
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bind()
Causes automatic updating of bound values to be turned on.void
rebind()
Causes the current bindings to be reset.protected void
void
If supported, Causes the values to be propagated from the target to the source, If not supported, an exception may be thrownvoid
setConverter
(Closure converter) void
setReverseConverter
(Closure reverseConverter) void
setSourceBinding
(SourceBinding sourceBinding) void
setTargetBinding
(TargetBinding targetBinding) void
setValidator
(Closure validator) void
unbind()
Causes automatic updating of bound values to be turned off.void
update()
Causes the values to be propagated from the source to the target
-
Method Details
-
getSourceBinding
- Specified by:
getSourceBinding
in interfaceFullBinding
-
getTargetBinding
- Specified by:
getTargetBinding
in interfaceFullBinding
-
setSourceBinding
- Specified by:
setSourceBinding
in interfaceFullBinding
-
setTargetBinding
- Specified by:
setTargetBinding
in interfaceFullBinding
-
setValidator
- Specified by:
setValidator
in interfaceFullBinding
-
getValidator
- Specified by:
getValidator
in interfaceFullBinding
-
setConverter
- Specified by:
setConverter
in interfaceFullBinding
-
getConverter
- Specified by:
getConverter
in interfaceFullBinding
-
setReverseConverter
- Specified by:
setReverseConverter
in interfaceFullBinding
-
getReverseConverter
- Specified by:
getReverseConverter
in interfaceFullBinding
-
rebuildBindings
protected void rebuildBindings() -
bind
public void bind()Description copied from interface:BindingUpdatable
Causes 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:
bind
in interfaceBindingUpdatable
-
unbind
public void unbind()Description copied from interface:BindingUpdatable
Causes 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:
unbind
in interfaceBindingUpdatable
-
rebind
public void rebind()Description copied from interface:BindingUpdatable
Causes 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:
rebind
in interfaceBindingUpdatable
-
update
public void update()Description copied from interface:BindingUpdatable
Causes the values to be propagated from the source to the target- Specified by:
update
in interfaceBindingUpdatable
-
reverseUpdate
public void reverseUpdate()Description copied from interface:BindingUpdatable
If supported, Causes the values to be propagated from the target to the source, If not supported, an exception may be thrown- Specified by:
reverseUpdate
in interfaceBindingUpdatable
-