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.DataBindingContextor ValidationStatusProvider.- Since:
- 1.2
-
-
Constructor Summary
Constructors Constructor Description BindingProperties()
-
Method Summary
-
-
-
Method Detail
-
bindings
public static IListProperty<DataBindingContext,Binding> bindings()
Returns anIListPropertyfor observing the bindings of aDataBindingContext.- Returns:
- an
IListPropertyfor observing the bindings of aDataBindingContext.
-
model
public static IValueProperty<Binding,IObservable> model()
Returns anIValuePropertyfor observing the model of aBinding.- Returns:
- an
IValuePropertyfor observing the model of aBinding.
-
models
public static IListProperty<ValidationStatusProvider,IObservable> models()
Returns anIListPropertyfor observing the models of aValidationStatusProvider.- Returns:
- an
IListPropertyfor observing the models of aValidationStatusProvider.
-
target
public static IValueProperty<Binding,IObservable> target()
Returns anIValuePropertyfor observing the target of aBinding.- Returns:
- an
IValuePropertyfor observing the target of aBinding.
-
targets
public static IListProperty<ValidationStatusProvider,IObservable> targets()
Returns anIListPropertyfor observing the targets of aValidationStatusProvider.- Returns:
- an
IListPropertyfor observing the targets of aValidationStatusProvider.
-
validationStatus
public static IValueProperty<ValidationStatusProvider,IStatus> 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
public 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. 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
-
-