public abstract class AbstractFullBinding
extends Object
implements FullBinding
Base implementation for FullBinding that handles validation and value conversion.
| Modifiers | Name | Description |
|---|---|---|
protected Closure |
converter |
Optional converter applied before writing to the target. |
protected Closure |
reverseConverter |
Optional converter applied before writing back to the source. |
protected SourceBinding |
sourceBinding |
The source side of the binding. |
protected TargetBinding |
targetBinding |
The target side of the binding. |
protected Closure |
validator |
Optional validator invoked before forward propagation. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Closure |
getConverter()Returns the forward converter. |
|
public Closure |
getReverseConverter()Returns the reverse converter. |
|
public SourceBinding |
getSourceBinding()Returns the current source binding. |
|
public TargetBinding |
getTargetBinding()Returns the current target binding. |
|
public Closure |
getValidator()Returns the validator invoked before forward propagation. |
|
public void |
reverseUpdate()Propagates the current target value back to the source. |
|
public void |
setConverter(Closure converter)Sets the forward converter. |
|
public void |
setReverseConverter(Closure reverseConverter)Sets the reverse converter. |
|
public void |
setSourceBinding(SourceBinding sourceBinding)Replaces the current source binding. |
|
public void |
setTargetBinding(TargetBinding targetBinding)Replaces the current target binding. |
|
public void |
setValidator(Closure validator)Sets the validator invoked before forward propagation. |
|
public void |
update()Propagates the current source value to the target. |
Optional converter applied before writing to the target.
Optional converter applied before writing back to the source.
The source side of the binding.
The target side of the binding.
Optional validator invoked before forward propagation.
Returns the forward converter.
nullReturns the reverse converter.
nullReturns the current source binding.
Returns the current target binding.
Returns the validator invoked before forward propagation.
nullPropagates the current target value back to the source.
Sets the forward converter.
converter - the converter closure, or nullSets the reverse converter.
reverseConverter - the reverse converter, or nullReplaces the current source binding.
sourceBinding - the new source bindingReplaces the current target binding.
targetBinding - the new target bindingSets the validator invoked before forward propagation.
validator - the validator closure, or nullPropagates the current source value to the target.