public class MutualPropertyBinding extends java.lang.Object implements FullBinding
| Modifier and Type | Method and Description |
|---|---|
void |
bind()
Causes automatic updating of bound values to be turned on.
|
Closure |
getConverter() |
Closure |
getReverseConverter() |
SourceBinding |
getSourceBinding() |
TargetBinding |
getTargetBinding() |
Closure |
getValidator() |
void |
rebind()
Causes the current bindings to be reset.
|
protected void |
rebuildBindings() |
void |
reverseUpdate()
If supported, Causes the values to be propagated from the target to the source,
If not supported, an exception may be thrown
|
void |
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
|
public SourceBinding getSourceBinding()
getSourceBinding in interface FullBindingpublic TargetBinding getTargetBinding()
getTargetBinding in interface FullBindingpublic void setSourceBinding(SourceBinding sourceBinding)
setSourceBinding in interface FullBindingpublic void setTargetBinding(TargetBinding targetBinding)
setTargetBinding in interface FullBindingpublic void setValidator(Closure validator)
setValidator in interface FullBindingpublic Closure getValidator()
getValidator in interface FullBindingpublic void setConverter(Closure converter)
setConverter in interface FullBindingpublic Closure getConverter()
getConverter in interface FullBindingpublic void setReverseConverter(Closure reverseConverter)
setReverseConverter in interface FullBindingpublic Closure getReverseConverter()
getReverseConverter in interface FullBindingprotected void rebuildBindings()
public void bind()
BindingUpdatablebind in interface BindingUpdatablepublic void unbind()
BindingUpdatableunbind in interface BindingUpdatablepublic void rebind()
BindingUpdatablerebind in interface BindingUpdatablepublic void update()
BindingUpdatableupdate in interface BindingUpdatablepublic void reverseUpdate()
BindingUpdatablereverseUpdate in interface BindingUpdatable