Class JFaceProperties
java.lang.Object
org.eclipse.jface.databinding.util.JFaceProperties
Helper class for providing
IObservableValue
instances for properties
of an object that fires property changes events to an
IPropertyChangeListener
.- Since:
- 1.3
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <S,
T> IValueProperty<S, T> Returns a property for observing the property of the given model object whose getter and setter use the suffix fieldName in the same manner as a Java bean and which fires events to anIPropertyChangeListener
for the given propertyName when the value of the field changes.
-
Constructor Details
-
JFaceProperties
public JFaceProperties()
-
-
Method Details
-
value
public static <S,T> IValueProperty<S,T> value(Class<S> clazz, String fieldName, String propertyName) Returns a property for observing the property of the given model object whose getter and setter use the suffix fieldName in the same manner as a Java bean and which fires events to anIPropertyChangeListener
for the given propertyName when the value of the field changes.- Parameters:
clazz
- the class defining the getter and setterfieldName
- the field namepropertyName
- the property name- Returns:
- an observable value
-