Class PojoObservables
- java.lang.Object
-
- org.eclipse.core.databinding.beans.PojoObservables
-
@Deprecated public final class PojoObservables extends Object
Deprecated.This class will be removed in a future release. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=546820 for more information. UsePojoProperties
instead.A factory for creating observable objects for POJOs (plain old java objects) that conform to idea of an object with getters and setters but does not provideproperty change events
on change. This factory is identical toBeansObservables
except for this fact.- Since:
- 1.1
- Restriction:
-
-
Constructor Summary
Constructors Constructor Description PojoObservables()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static IObservableFactory
listFactory(String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadstatic IObservableFactory
listFactory(Realm realm, String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadstatic IObservableFactory
mapPropertyFactory(String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableFactory
mapPropertyFactory(Realm realm, String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableList
observeDetailList(Realm realm, IObservableValue master, String propertyName, Class propertyType)
Deprecated.static IObservableList
observeDetailList(IObservableValue master, String propertyName, Class propertyType)
Deprecated.usePojoProperties
insteadstatic IObservableMap
observeDetailMap(Realm realm, IObservableValue master, String propertyName)
Deprecated.UseobserveDetailMap(IObservableValue, String)
insteadstatic IObservableMap
observeDetailMap(IObservableValue master, String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableSet
observeDetailSet(Realm realm, IObservableValue master, String propertyName, Class propertyType)
Deprecated.UseobserveDetailSet(IObservableValue, String, Class)
instead.static IObservableSet
observeDetailSet(IObservableValue master, String propertyName, Class propertyType)
Deprecated.usePojoProperties
insteadstatic IObservableValue
observeDetailValue(Realm realm, IObservableValue master, String propertyName, Class propertyType)
Deprecated.static IObservableValue
observeDetailValue(IObservableValue master, String propertyName, Class propertyType)
Deprecated.usePojoProperties
insteadstatic IObservableList
observeList(Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableList
observeList(Object pojo, String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadstatic IObservableList
observeList(Realm realm, Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableList
observeList(Realm realm, Object pojo, String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadstatic IObservableMap
observeMap(Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableMap
observeMap(Object pojo, String propertyName, Class keyType, Class valueType)
Deprecated.usePojoProperties
insteadstatic IObservableMap
observeMap(Realm realm, Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableMap
observeMap(Realm realm, Object pojo, String propertyName, Class keyType, Class valueType)
Deprecated.usePojoProperties
insteadstatic IObservableMap
observeMap(IObservableSet domain, Class pojoClass, String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableMap
observeMap(IObservableSet domain, String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableMap[]
observeMaps(IObservableSet domain, Class pojoClass, String[] propertyNames)
Deprecated.usePojoProperties
insteadstatic IObservableMap[]
observeMaps(IObservableSet domain, String[] propertyNames)
Deprecated.usePojoProperties
insteadstatic IObservableSet
observeSet(Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableSet
observeSet(Object pojo, String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadstatic IObservableSet
observeSet(Realm realm, Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableSet
observeSet(Realm realm, Object pojo, String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadstatic IObservableValue
observeValue(Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableValue
observeValue(Realm realm, Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableFactory
setFactory(String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableFactory
setFactory(String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadstatic IObservableFactory
setFactory(Realm realm, String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableFactory
setFactory(Realm realm, String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadstatic IObservableFactory
valueFactory(String propertyName)
Deprecated.usePojoProperties
insteadstatic IObservableFactory
valueFactory(Realm realm, String propertyName)
Deprecated.usePojoProperties
instead
-
-
-
Method Detail
-
observeValue
@Deprecated public static IObservableValue observeValue(Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadReturns an observable value in the default realm tracking the current value of the named property of the given pojo.- Parameters:
pojo
- the objectpropertyName
- the name of the property. May be nested e.g. "parent.name"- Returns:
- an observable value tracking the current value of the named property of the given pojo
-
observeValue
@Deprecated public static IObservableValue observeValue(Realm realm, Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadReturns an observable value in the given realm tracking the current value of the named property of the given pojo.- Parameters:
realm
- the realmpojo
- the objectpropertyName
- the name of the property. May be nested e.g. "parent.name"- Returns:
- an observable value tracking the current value of the named property of the given pojo
-
observeMap
@Deprecated public static IObservableMap observeMap(IObservableSet domain, String propertyName)
Deprecated.usePojoProperties
insteadReturns an observable map in the given observable set's realm tracking the current values of the named property for the beans in the given set. Elements in the set which do not have the named property will have null values, and attempts toput
values to these elements will be ignored.- Parameters:
domain
- the set of bean objectspropertyName
- the name of the property. May be nested e.g. "parent.name"- Returns:
- an observable map tracking the current values of the named property for the beans in the given domain set
- Since:
- 1.2
-
observeMap
@Deprecated public static IObservableMap observeMap(IObservableSet domain, Class pojoClass, String propertyName)
Deprecated.usePojoProperties
insteadReturns an observable map in the given observable set's realm tracking the current values of the named property for the pojos in the given set.- Parameters:
domain
- the set of pojo objectspojoClass
- the common base type of pojo objects that may be in the setpropertyName
- the name of the property. May be nested e.g. "parent.name"- Returns:
- an observable map tracking the current values of the named property for the pojos in the given domain set
-
observeMaps
@Deprecated public static IObservableMap[] observeMaps(IObservableSet domain, String[] propertyNames)
Deprecated.usePojoProperties
insteadReturns an array of observable maps in the given observable set's realm tracking the current values of the named properties for the beans in the given set. Elements in the set which do not have the named property will have null values, and attempts toput
values to these elements will be ignored.- Parameters:
domain
- the set of objectspropertyNames
- the array of property names. May be nested e.g. "parent.name"- Returns:
- an array of observable maps tracking the current values of the named propertys for the beans in the given domain set
- Since:
- 1.2
-
observeMaps
@Deprecated public static IObservableMap[] observeMaps(IObservableSet domain, Class pojoClass, String[] propertyNames)
Deprecated.usePojoProperties
insteadReturns an array of observable maps in the given observable set's realm tracking the current values of the named propertys for the pojos in the given set.- Parameters:
domain
- the set of objectspojoClass
- the common base type of objects that may be in the setpropertyNames
- the array of property names. May be nested e.g. "parent.name"- Returns:
- an array of observable maps tracking the current values of the named propertys for the pojos in the given domain set
-
observeMap
@Deprecated public static IObservableMap observeMap(Realm realm, Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadReturns an observable map in the given realm tracking the map-typed named property of the given pojo object.- Parameters:
realm
- the realmpojo
- the pojo objectpropertyName
- the name of the property- Returns:
- an observable map tracking the map-typed named property of the given pojo object
-
observeMap
@Deprecated public static IObservableMap observeMap(Realm realm, Object pojo, String propertyName, Class keyType, Class valueType)
Deprecated.usePojoProperties
insteadReturns an observable map in the given realm tracking the map-typed named property of the given pojo object.- Parameters:
realm
- the realmpojo
- the pojo objectpropertyName
- the name of the propertykeyType
- the element type of the observable map's key set, ornull
if untypedvalueType
- the element type of the observable map's values collection, ornull
if untyped- Returns:
- an observable map tracking the map-typed named property of the given pojo object
- Since:
- 1.2
-
observeMap
@Deprecated public static IObservableMap observeMap(Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadReturns an observable map in the default realm tracking the map-typed named property of the given pojo object.- Parameters:
pojo
- the pojo objectpropertyName
- the name of the property- Returns:
- an observable map tracking the map-typed named property of the given pojo object
- Since:
- 1.2
-
observeMap
@Deprecated public static IObservableMap observeMap(Object pojo, String propertyName, Class keyType, Class valueType)
Deprecated.usePojoProperties
insteadReturns an observable map in the default realm tracking the map-typed named property of the given pojo object.- Parameters:
pojo
- the pojo objectpropertyName
- the name of the propertykeyType
- the element type of the observable map's key set, ornull
if untypedvalueType
- the element type of the observable map's values collection, ornull
if untyped- Returns:
- an observable map tracking the map-typed named property of the given pojo object
- Since:
- 1.2
-
observeList
@Deprecated public static IObservableList observeList(Realm realm, Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadReturns an observable list in the given realm tracking the collection-typed named property of the given pojo object. The returned list is mutable.- Parameters:
realm
- the realmpojo
- the objectpropertyName
- the name of the collection-typed property- Returns:
- an observable list tracking the collection-typed named property of the given pojo object
- See Also:
observeList(Realm, Object, String, Class)
-
observeList
@Deprecated public static IObservableList observeList(Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadReturns an observable list in the default realm tracking the collection-typed named property of the given pojo object. The returned list is mutable.- Parameters:
pojo
- the objectpropertyName
- the name of the collection-typed property- Returns:
- an observable list tracking the collection-typed named property of the given pojo object
- Since:
- 1.2
- See Also:
observeList(Realm, Object, String, Class)
-
observeList
@Deprecated public static IObservableList observeList(Realm realm, Object pojo, String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadReturns an observable list in the given realm tracking the collection-typed named property of the given bean object. The returned list is mutable. When an item is added or removed the setter is invoked for the list on the parent bean to provide notification to other listeners viaPropertyChangeEvents
. This is done to provide the same behavior as is expected from arrays as specified in the bean spec in section 7.2.- Parameters:
realm
- the realmpojo
- the bean objectpropertyName
- the name of the propertyelementType
- type of the elements in the list. Ifnull
and the property is an array the type will be inferred. Ifnull
and the property type cannot be inferred element type will benull
.- Returns:
- an observable list tracking the collection-typed named property of the given bean object
-
observeList
@Deprecated public static IObservableList observeList(Object pojo, String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadReturns an observable list in the default realm tracking the collection-typed named property of the given bean object. The returned list is mutable. When an item is added or removed the setter is invoked for the list on the parent bean to provide notification to other listeners viaPropertyChangeEvents
. This is done to provide the same behavior as is expected from arrays as specified in the bean spec in section 7.2.- Parameters:
pojo
- the bean objectpropertyName
- the name of the propertyelementType
- type of the elements in the list. Ifnull
and the property is an array the type will be inferred. Ifnull
and the property type cannot be inferred element type will benull
.- Returns:
- an observable list tracking the collection-typed named property of the given bean object
- Since:
- 1.2
-
observeSet
@Deprecated public static IObservableSet observeSet(Realm realm, Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadReturns an observable set in the given realm tracking the collection-typed named property of the given pojo object.- Parameters:
realm
- the realmpojo
- the pojo objectpropertyName
- the name of the property- Returns:
- an observable set tracking the collection-typed named property of the given pojo object
-
observeSet
@Deprecated public static IObservableSet observeSet(Object pojo, String propertyName)
Deprecated.usePojoProperties
insteadReturns an observable set in the default realm tracking the collection-typed named property of the given pojo object.- Parameters:
pojo
- the pojo objectpropertyName
- the name of the property- Returns:
- an observable set tracking the collection-typed named property of the given pojo object
- Since:
- 1.2
-
observeSet
@Deprecated public static IObservableSet observeSet(Realm realm, Object pojo, String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadReturns an observable set in the given realm tracking the collection-typed named property of the given pojo object.- Parameters:
realm
- the realmpojo
- the pojo objectpropertyName
- the name of the propertyelementType
- type of the elements in the set. Ifnull
and the property is an array the type will be inferred. Ifnull
and the property type cannot be inferred element type will benull
.- Returns:
- an observable set that tracks the current value of the named property for given pojo object
-
observeSet
@Deprecated public static IObservableSet observeSet(Object pojo, String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadReturns an observable set in the default realm, tracking the collection-typed named property of the given pojo object.- Parameters:
pojo
- the pojo objectpropertyName
- the name of the propertyelementType
- type of the elements in the set. Ifnull
and the property is an array the type will be inferred. Ifnull
and the property type cannot be inferred element type will benull
.- Returns:
- an observable set that tracks the current value of the named property for given pojo object
- Since:
- 1.2
-
valueFactory
@Deprecated public static IObservableFactory valueFactory(Realm realm, String propertyName)
Deprecated.usePojoProperties
insteadReturns a factory for creating observable values in the given realm, tracking the given property of a particular pojo object- Parameters:
realm
- the realm to usepropertyName
- the name of the property. May be nested e.g. "parent.name"- Returns:
- an observable value factory
-
valueFactory
@Deprecated public static IObservableFactory valueFactory(String propertyName)
Deprecated.usePojoProperties
insteadReturns a factory for creating observable values in the current default realm, tracking the given property of a particular pojo object- Parameters:
propertyName
- the name of the property. May be nested e.g. "parent.name"- Returns:
- an observable value factory
- Since:
- 1.2
-
listFactory
@Deprecated public static IObservableFactory listFactory(Realm realm, String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadReturns a factory for creating observable lists in the given realm, tracking the given property of a particular pojo object- Parameters:
realm
- the realm to usepropertyName
- the name of the propertyelementType
- the element type of the returned list property- Returns:
- an observable list factory
-
listFactory
@Deprecated public static IObservableFactory listFactory(String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadReturns a factory for creating observable lists in the current default realm, tracking the given property of a particular pojo object- Parameters:
propertyName
- the name of the propertyelementType
- the element type of the returned list property- Returns:
- an observable list factory
- Since:
- 1.2
-
setFactory
@Deprecated public static IObservableFactory setFactory(Realm realm, String propertyName)
Deprecated.usePojoProperties
insteadReturns a factory for creating observable sets in the given realm, tracking the given property of a particular pojo object- Parameters:
realm
- the realm to usepropertyName
- the name of the property- Returns:
- an observable set factory
-
setFactory
@Deprecated public static IObservableFactory setFactory(String propertyName)
Deprecated.usePojoProperties
insteadReturns a factory for creating observable sets in the current default realm, tracking the given property of a particular pojo object- Parameters:
propertyName
- the name of the property- Returns:
- an observable set factory
- Since:
- 1.2
-
setFactory
@Deprecated public static IObservableFactory setFactory(Realm realm, String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadReturns a factory for creating observable set in the given realm, tracking the given property of a particular pojo object- Parameters:
realm
- the realm to usepropertyName
- the name of the propertyelementType
- type of the elements in the set. Ifnull
and the property is an array the type will be inferred. Ifnull
and the property type cannot be inferred element type will benull
.- Returns:
- an observable set factory for creating observable sets
-
setFactory
@Deprecated public static IObservableFactory setFactory(String propertyName, Class elementType)
Deprecated.usePojoProperties
insteadReturns a factory for creating observable set in the current default realm, tracking the given property of a particular pojo object- Parameters:
propertyName
- the name of the propertyelementType
- type of the elements in the set. Ifnull
and the property is an array the type will be inferred. Ifnull
and the property type cannot be inferred element type will benull
.- Returns:
- an observable set factory for creating observable sets
- Since:
- 1.2
-
mapPropertyFactory
@Deprecated public static IObservableFactory mapPropertyFactory(Realm realm, String propertyName)
Deprecated.usePojoProperties
insteadReturns a factory for creating an observable map. The factory, when provided with a pojo object, will create anIObservableMap
in the given realm that tracks the map-typed named property for the specified pojo.- Parameters:
realm
- the realm assigned to observables created by the returned factory.propertyName
- the name of the property- Returns:
- a factory for creating
IObservableMap
objects.
-
mapPropertyFactory
@Deprecated public static IObservableFactory mapPropertyFactory(String propertyName)
Deprecated.usePojoProperties
insteadReturns a factory for creating an observable map. The factory, when provided with a pojo object, will create anIObservableMap
in the current default realm that tracks the map-typed named property for the specified pojo.- Parameters:
propertyName
- the name of the property- Returns:
- a factory for creating
IObservableMap
objects. - Since:
- 1.2
-
observeDetailValue
@Deprecated public static IObservableValue observeDetailValue(Realm realm, IObservableValue master, String propertyName, Class propertyType)
Deprecated.Helper method forMasterDetailObservables.detailValue(master, valueFactory(realm, propertyName), propertyType)
- Parameters:
realm
- the realmmaster
- the master observable valuepropertyName
- the property name. May be nested e.g. "parent.name"propertyType
- can benull
- Returns:
- an observable value that tracks the current value of the named property for the current value of the master observable value
- See Also:
MasterDetailObservables
-
observeDetailValue
@Deprecated public static IObservableValue observeDetailValue(IObservableValue master, String propertyName, Class propertyType)
Deprecated.usePojoProperties
insteadHelper method forMasterDetailObservables.detailValue(master, valueFactory(master.getRealm, propertyName), propertyType)
- Parameters:
master
- the master observable valuepropertyName
- the property name. May be nested e.g. "parent.name"propertyType
- can benull
- Returns:
- an observable value that tracks the current value of the named property for the current value of the master observable value
- Since:
- 1.2
- See Also:
MasterDetailObservables
-
observeDetailList
@Deprecated public static IObservableList observeDetailList(Realm realm, IObservableValue master, String propertyName, Class propertyType)
Deprecated.Helper method forMasterDetailObservables.detailList(master, listFactory(realm, propertyName, propertyType), propertyType)
- Parameters:
realm
- the realmmaster
- the observable valuepropertyName
- name of the propertypropertyType
- can benull
- Returns:
- an observable list that tracks the named property for the current value of the master observable value
- See Also:
MasterDetailObservables
-
observeDetailList
@Deprecated public static IObservableList observeDetailList(IObservableValue master, String propertyName, Class propertyType)
Deprecated.usePojoProperties
insteadHelper method forMasterDetailObservables.detailList(master, listFactory(master.getRealm(), propertyName, propertyType), propertyType)
- Parameters:
master
- the master observable valuepropertyName
- name of the propertypropertyType
- can benull
- Returns:
- an observable list that tracks the named property for the current value of the master observable value
- Since:
- 1.2
- See Also:
MasterDetailObservables
-
observeDetailSet
@Deprecated public static IObservableSet observeDetailSet(Realm realm, IObservableValue master, String propertyName, Class propertyType)
Deprecated.UseobserveDetailSet(IObservableValue, String, Class)
instead.Helper method forMasterDetailObservables.detailSet(master, setFactory(realm, propertyName), propertyType)
- Parameters:
realm
- the realmmaster
- the master observable valuepropertyName
- the property namepropertyType
- can benull
- Returns:
- an observable set that tracks the named property for the current value of the master observable value
- See Also:
MasterDetailObservables
-
observeDetailSet
@Deprecated public static IObservableSet observeDetailSet(IObservableValue master, String propertyName, Class propertyType)
Deprecated.usePojoProperties
insteadHelper method forMasterDetailObservables.detailSet(master, setFactory(master.getRealm(), propertyName), propertyType)
- Parameters:
master
- the observable valuepropertyName
- the property namepropertyType
- can benull
- Returns:
- an observable set that tracks the named property for the current value of the master observable value
- Since:
- 1.2
- See Also:
MasterDetailObservables
-
observeDetailMap
@Deprecated public static IObservableMap observeDetailMap(Realm realm, IObservableValue master, String propertyName)
Deprecated.UseobserveDetailMap(IObservableValue, String)
insteadHelper method forMasterDetailObservables.detailMap(master, mapFactory(realm, propertyName))
- Parameters:
realm
- the realmmaster
- the observable valuepropertyName
- name of the property- Returns:
- an observable map that tracks the map-type named property for the current value of the master observable value.
-
observeDetailMap
@Deprecated public static IObservableMap observeDetailMap(IObservableValue master, String propertyName)
Deprecated.usePojoProperties
insteadHelper method forMasterDetailObservables.detailMap(master, mapFactory(master.getRealm(), propertyName))
- Parameters:
master
- the master observable valuepropertyName
- name of the property- Returns:
- an observable map that tracks the map-type named property for the current value of the master observable value.
- Since:
- 1.2
-
-