Uses of Class
org.eclipse.core.databinding.UpdateValueStrategy
Package
Description
Provides classes for binding observable objects, for example UI widgets and model objects.
-
Uses of UpdateValueStrategy in org.eclipse.core.databinding
Modifier and TypeMethodDescriptionstatic <S,
D> UpdateValueStrategy<S, D> UpdateValueStrategy.create
(IConverter<S, D> converter) Convenience method that creates anUpdateValueStrategy
with the given converter.protected <M,
T> UpdateValueStrategy<M, T> DataBindingContext.createModelToTargetUpdateValueStrategy
(IObservableValue<M> fromValue, IObservableValue<T> toValue) Returns an update value strategy to be used for copying values from the from value to the to value.protected <T,
M> UpdateValueStrategy<T, M> DataBindingContext.createTargetToModelUpdateValueStrategy
(IObservableValue<T> fromValue, IObservableValue<M> toValue) Returns an update value strategy to be used for copying values from the from value to the to value.static <S,
D> UpdateValueStrategy<S, D> UpdateValueStrategy.never()
Convenience method that creates an update strategy that never updates its observables, usingPOLICY_NEVER
and no defaults.UpdateValueStrategy.setAfterConvertValidator
(IValidator<? super D> validator) Sets the validator to be invoked after the source value is converted to the type of the destination observable.UpdateValueStrategy.setAfterGetValidator
(IValidator<? super S> validator) Sets the validator to be invoked after the source value is retrieved at the beginning of the synchronization process.UpdateValueStrategy.setBeforeSetValidator
(IValidator<? super D> validator) Sets the validator to be invoked before the value is to be set on the destination at the end of the synchronization process.UpdateValueStrategy.setConverter
(IConverter<? super S, ? extends D> converter) Sets the converter to be invoked when converting from the source type to the destination type.Modifier and TypeMethodDescriptionfinal <T,
M> Binding DataBindingContext.bindValue
(IObservableValue<T> targetObservableValue, IObservableValue<M> modelObservableValue, UpdateValueStrategy<? super T, ? extends M> targetToModel, UpdateValueStrategy<? super M, ? extends T> modelToTarget) Creates aBinding
to synchronize the values of twoobservable values
.