Package org.eclipse.core.databinding
Class BindingProperties
java.lang.Object
org.eclipse.core.databinding.BindingProperties
A factory for creating properties for core types in the DataBinding framework
e.g.
DataBindingContext or ValidationStatusProvider.- Since:
- 1.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IListProperty<DataBindingContext, Binding> bindings()Returns anIListPropertyfor observing the bindings of aDataBindingContext.static <S,T> IValueProperty <S, T> convertedValue(IConverter<S, T> converter) Returns anIValuePropertywhose value results from applying the givenIConverteron the source object of the value property.static IValueProperty<Binding, IObservable> model()Returns anIValuePropertyfor observing the model of aBinding.models()Returns anIListPropertyfor observing the models of aValidationStatusProvider.static IValueProperty<Binding, IObservable> target()Returns anIValuePropertyfor observing the target of aBinding.targets()Returns anIListPropertyfor observing the targets of aValidationStatusProvider.Returns anIValuePropertyfor observing the validation status of aValidationStatusProvider.Returns anIListPropertyfor observing the validation status providers of aDataBindingContext.
-
Constructor Details
-
BindingProperties
public BindingProperties()
-
-
Method Details
-
bindings
Returns anIListPropertyfor observing the bindings of aDataBindingContext.- Returns:
- an
IListPropertyfor observing the bindings of aDataBindingContext.
-
model
Returns anIValuePropertyfor observing the model of aBinding.- Returns:
- an
IValuePropertyfor observing the model of aBinding.
-
models
Returns anIListPropertyfor observing the models of aValidationStatusProvider.- Returns:
- an
IListPropertyfor observing the models of aValidationStatusProvider.
-
target
Returns anIValuePropertyfor observing the target of aBinding.- Returns:
- an
IValuePropertyfor observing the target of aBinding.
-
targets
Returns anIListPropertyfor observing the targets of aValidationStatusProvider.- Returns:
- an
IListPropertyfor observing the targets of aValidationStatusProvider.
-
validationStatus
Returns anIValuePropertyfor observing the validation status of aValidationStatusProvider.- Returns:
- an
IValuePropertyfor observing the validation status of aValidationStatusProvider.
-
validationStatusProviders
public static IListProperty<DataBindingContext,ValidationStatusProvider> validationStatusProviders()Returns anIListPropertyfor observing the validation status providers of aDataBindingContext.- Returns:
- an
IListPropertyfor observing the validation status providers of aDataBindingContext.
-
convertedValue
Returns anIValuePropertywhose value results from applying the givenIConverteron the source object of the value property. Consequently, thevalue typeof the returned property is the same as thetarget typeof the converter. Setting a value on the property is not supported.- Parameters:
converter- The converter to apply to the source object of the value property.- Returns:
- A new instance of a value property whose value is the result of applying the given converter to the source object passed to the value property.
- Since:
- 1.4
- See Also:
-