Package org.eclipse.core.databinding
Class BindingProperties
- java.lang.Object
-
- org.eclipse.core.databinding.BindingProperties
-
public class BindingProperties extends Object
A factory for creating properties for core types in the DataBinding framework e.g.DataBindingContext
or ValidationStatusProvider.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description BindingProperties()
-
Method Summary
-
-
-
Method Detail
-
bindings
public static IListProperty<DataBindingContext,Binding> bindings()
Returns anIListProperty
for observing the bindings of aDataBindingContext
.- Returns:
- an
IListProperty
for observing the bindings of aDataBindingContext
.
-
model
public static IValueProperty<Binding,IObservable> model()
Returns anIValueProperty
for observing the model of aBinding
.- Returns:
- an
IValueProperty
for observing the model of aBinding
.
-
models
public static IListProperty<ValidationStatusProvider,IObservable> models()
Returns anIListProperty
for observing the models of aValidationStatusProvider
.- Returns:
- an
IListProperty
for observing the models of aValidationStatusProvider
.
-
target
public static IValueProperty<Binding,IObservable> target()
Returns anIValueProperty
for observing the target of aBinding
.- Returns:
- an
IValueProperty
for observing the target of aBinding
.
-
targets
public static IListProperty<ValidationStatusProvider,IObservable> targets()
Returns anIListProperty
for observing the targets of aValidationStatusProvider
.- Returns:
- an
IListProperty
for observing the targets of aValidationStatusProvider
.
-
validationStatus
public static IValueProperty<ValidationStatusProvider,IStatus> 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
public 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. 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:
Properties.convertedValue(Object, java.util.function.Function)
-
-