Interface ValueOneWaySteps.ValueOneWayConvertStep<F,THIS extends ValueOneWaySteps.ValueOneWayConvertStep<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> Step,ValueCommonSteps.ValueReadConfigStep<F,,F, THIS> ValueCommonSteps.ValueToStep<F,,F> ValueOneWaySteps.ValueOneWayToStep<F,F>
- Enclosing class:
ValueOneWaySteps
public static interface ValueOneWaySteps.ValueOneWayConvertStep<F,THIS extends ValueOneWaySteps.ValueOneWayConvertStep<F,THIS>>
extends ValueOneWaySteps.ValueOneWayToStep<F,F>, ValueCommonSteps.ValueToStep<F,F>, CommonSteps.ConvertToStep<F>, ValueCommonSteps.ValueReadConfigStep<F,F,THIS>
Step for converting between from- and to-types.
- Restriction:
-
Method Summary
Modifier and TypeMethodDescription<T2> ValueOneWaySteps.ValueOneWayToStep<F, T2> convertTo(IConverter<? super F, ? extends T2> 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.ValueCommonSteps.ValueReadConfigStep
validateAfterGetMethods inherited from interface org.eclipse.core.databinding.bind.steps.ValueOneWaySteps.ValueOneWayToStep
to
-
Method Details
-
defaultConvert
ValueOneWaySteps.ValueOneWayUntypedTo<F> defaultConvert()Description copied from interface:CommonSteps.ConvertToStepMakes 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
DataBindingContextfor information about types that have default converters and how they work.- Specified by:
defaultConvertin interfaceCommonSteps.ConvertToStep<F>- Returns:
- next step
- See Also:
-
convertTo
<T2> ValueOneWaySteps.ValueOneWayToStep<F,T2> convertTo(IConverter<? super F, ? extends T2> converter) Description copied from interface:CommonSteps.ConvertToStepSets the from-to direction converter on the resulting binding. The defines the type of the to-end observable.- Specified by:
convertToin interfaceCommonSteps.ConvertToStep<F>- Type Parameters:
T2- type of the to-end observable- Parameters:
converter- the converter to set- Returns:
- next step
- See Also:
-