Interface ValueTwoWaySteps.ValueTwoWayConvertToStep<F,THIS extends ValueTwoWaySteps.ValueTwoWayConvertToStep<F,THIS>>
- Type Parameters:
F
- type of the from-end observableTHIS
- self type for this step
- All Superinterfaces:
CommonSteps.ConvertToStep<F>
,CommonSteps.ReadConfigStep<F,
,F, THIS> CommonSteps.WriteConfigStep<F,
,F, THIS> Step
,ValueCommonSteps.ValueReadConfigStep<F,
,F, THIS> ValueCommonSteps.ValueToStep<F,
,F> ValueCommonSteps.ValueWriteConfigStep<F,
,F, THIS> ValueTwoWaySteps.ValueTwoWayConfigStep<F,
,F, THIS> ValueTwoWaySteps.ValueTwoWayToStep<F,
F>
- Enclosing class:
- ValueTwoWaySteps
public static interface ValueTwoWaySteps.ValueTwoWayConvertToStep<F,THIS extends ValueTwoWaySteps.ValueTwoWayConvertToStep<F,THIS>>
extends ValueTwoWaySteps.ValueTwoWayToStep<F,F>, CommonSteps.ConvertToStep<F>, ValueTwoWaySteps.ValueTwoWayConfigStep<F,F,THIS>
Step for setting the from-to direction converter.
- Restriction:
-
Method Summary
Modifier and TypeMethodDescriptionconvertTo
(IConverter<? super F, ? extends T> converter) Sets the from-to direction converter on the resulting binding.Makes the resulting binding use default converters between the two observables.Methods inherited from interface org.eclipse.core.databinding.bind.steps.CommonSteps.WriteConfigStep
updateOnlyOnRequest
Methods inherited from interface org.eclipse.core.databinding.bind.steps.ValueCommonSteps.ValueReadConfigStep
validateAfterGet
Methods inherited from interface org.eclipse.core.databinding.bind.steps.ValueCommonSteps.ValueWriteConfigStep
convertOnly, validateAfterConvert, validateBeforeSet
Methods inherited from interface org.eclipse.core.databinding.bind.steps.ValueTwoWaySteps.ValueTwoWayConfigStep
validateTwoWay
Methods inherited from interface org.eclipse.core.databinding.bind.steps.ValueTwoWaySteps.ValueTwoWayToStep
to
-
Method Details
-
convertTo
<T> ValueTwoWaySteps.ValueTwoWayConvertFromStep<F,T> convertTo(IConverter<? super F, ? extends T> converter) Description copied from interface:CommonSteps.ConvertToStep
Sets the from-to direction converter on the resulting binding. The defines the type of the to-end observable.- Specified by:
convertTo
in interfaceCommonSteps.ConvertToStep<F>
- Type Parameters:
T
- type of the to-end observable- Parameters:
converter
- the converter to set- Returns:
- next step
- See Also:
-
defaultConvert
ValueTwoWaySteps.ValueTwoWayUntypedToStep<F> defaultConvert()Description copied from interface:CommonSteps.ConvertToStep
Makes the resulting binding use default converters between the two observables. Because of this an observable of any type may be used.For example, converters to and from strings and numeric types are available.
However, the
IObservableValue.getValueType()
orIObservableCollection.getElementType()
of both the observables must be non-null.See
DataBindingContext
for information about types that have default converters and how they work.- Specified by:
defaultConvert
in interfaceCommonSteps.ConvertToStep<F>
- Returns:
- next step
- See Also:
-