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 propigated 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 propigated from the source to the target
|
public SourceBinding getSourceBinding()
getSourceBinding
in interface FullBinding
public TargetBinding getTargetBinding()
getTargetBinding
in interface FullBinding
public void setSourceBinding(SourceBinding sourceBinding)
setSourceBinding
in interface FullBinding
public void setTargetBinding(TargetBinding targetBinding)
setTargetBinding
in interface FullBinding
public void setValidator(Closure validator)
setValidator
in interface FullBinding
public Closure getValidator()
getValidator
in interface FullBinding
public void setConverter(Closure converter)
setConverter
in interface FullBinding
public Closure getConverter()
getConverter
in interface FullBinding
public void setReverseConverter(Closure reverseConverter)
setReverseConverter
in interface FullBinding
public Closure getReverseConverter()
getReverseConverter
in interface FullBinding
protected void rebuildBindings()
public void bind()
BindingUpdatable
bind
in interface BindingUpdatable
public void unbind()
BindingUpdatable
unbind
in interface BindingUpdatable
public void rebind()
BindingUpdatable
rebind
in interface BindingUpdatable
public void update()
BindingUpdatable
update
in interface BindingUpdatable
public void reverseUpdate()
BindingUpdatable
reverseUpdate
in interface BindingUpdatable