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
-
Method Summary
Modifier and TypeMethodDescriptionstatic IListProperty<DataBindingContext,
Binding> bindings()
Returns anIListProperty
for observing the bindings of aDataBindingContext
.static <S,
T> IValueProperty<S, T> convertedValue
(IConverter<S, T> converter) Returns anIValueProperty
whose value results from applying the givenIConverter
on the source object of the value property.static IValueProperty<Binding,
IObservable> model()
Returns anIValueProperty
for observing the model of aBinding
.models()
Returns anIListProperty
for observing the models of aValidationStatusProvider
.static IValueProperty<Binding,
IObservable> target()
Returns anIValueProperty
for observing the target of aBinding
.targets()
Returns anIListProperty
for observing the targets of aValidationStatusProvider
.Returns anIValueProperty
for observing the validation status of aValidationStatusProvider
.Returns anIListProperty
for observing the validation status providers of aDataBindingContext
.
-
Constructor Details
-
BindingProperties
public BindingProperties()
-
-
Method Details
-
bindings
Returns anIListProperty
for observing the bindings of aDataBindingContext
.- Returns:
- an
IListProperty
for observing the bindings of aDataBindingContext
.
-
model
Returns anIValueProperty
for observing the model of aBinding
.- Returns:
- an
IValueProperty
for observing the model of aBinding
.
-
models
Returns anIListProperty
for observing the models of aValidationStatusProvider
.- Returns:
- an
IListProperty
for observing the models of aValidationStatusProvider
.
-
target
Returns anIValueProperty
for observing the target of aBinding
.- Returns:
- an
IValueProperty
for observing the target of aBinding
.
-
targets
Returns anIListProperty
for observing the targets of aValidationStatusProvider
.- Returns:
- an
IListProperty
for observing the targets of aValidationStatusProvider
.
-
validationStatus
Returns anIValueProperty
for observing the validation status of aValidationStatusProvider
.- Returns:
- an
IValueProperty
for observing the validation status of aValidationStatusProvider
.
-
validationStatusProviders
public static IListProperty<DataBindingContext,ValidationStatusProvider> validationStatusProviders()Returns anIListProperty
for observing the validation status providers of aDataBindingContext
.- Returns:
- an
IListProperty
for observing the validation status providers of aDataBindingContext
.
-
convertedValue
Returns anIValueProperty
whose value results from applying the givenIConverter
on the source object of the value property. Consequently, thevalue type
of the returned property is the same as thetarget type
of 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:
-