|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.databinding.beans.PojoObservables
public final class PojoObservables
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
provide property change events
on change. This
factory is identical to BeansObservables
except for this fact.
Constructor Summary | |
---|---|
PojoObservables()
|
Method Summary | |
---|---|
static IObservableFactory |
listFactory(Realm realm,
String propertyName,
Class elementType)
Returns a factory for creating observable lists in the given realm, tracking the given property of a particular pojo object |
static IObservableFactory |
listFactory(String propertyName,
Class elementType)
Returns a factory for creating observable lists in the current default realm, tracking the given property of a particular pojo object |
static IObservableFactory |
mapPropertyFactory(Realm realm,
String propertyName)
Returns a factory for creating an observable map. |
static IObservableFactory |
mapPropertyFactory(String propertyName)
Returns a factory for creating an observable map. |
static IObservableList |
observeDetailList(IObservableValue master,
String propertyName,
Class propertyType)
Helper method for MasterDetailObservables.detailList(master, listFactory(master.getRealm(), propertyName, propertyType), propertyType) |
static IObservableList |
observeDetailList(Realm realm,
IObservableValue master,
String propertyName,
Class propertyType)
Deprecated. Use observeDetailList(IObservableValue, String, Class)
instead |
static IObservableMap |
observeDetailMap(IObservableValue master,
String propertyName)
Helper method for MasterDetailObservables.detailMap(master, mapFactory(master.getRealm(), propertyName)) |
static IObservableMap |
observeDetailMap(Realm realm,
IObservableValue master,
String propertyName)
Deprecated. Use observeDetailMap(IObservableValue, String)
instead |
static IObservableSet |
observeDetailSet(IObservableValue master,
String propertyName,
Class propertyType)
Helper method for MasterDetailObservables.detailSet(master, setFactory(master.getRealm(), propertyName), propertyType) |
static IObservableSet |
observeDetailSet(Realm realm,
IObservableValue master,
String propertyName,
Class propertyType)
Deprecated. Use observeDetailSet(IObservableValue, String, Class)
instead. |
static IObservableValue |
observeDetailValue(IObservableValue master,
String propertyName,
Class propertyType)
Helper method for MasterDetailObservables.detailValue(master, valueFactory(master.getRealm, propertyName), propertyType) |
static IObservableValue |
observeDetailValue(Realm realm,
IObservableValue master,
String propertyName,
Class propertyType)
Deprecated. Use observeDetailValue(IObservableValue, String, Class)
instead |
static IObservableList |
observeList(Object pojo,
String propertyName)
Returns an observable list in the default realm tracking the collection-typed named property of the given pojo object. |
static IObservableList |
observeList(Object pojo,
String propertyName,
Class elementType)
Returns an observable list in the default realm tracking the collection-typed named property of the given bean object. |
static IObservableList |
observeList(Realm realm,
Object pojo,
String propertyName)
Returns an observable list in the given realm tracking the collection-typed named property of the given pojo object. |
static IObservableList |
observeList(Realm realm,
Object pojo,
String propertyName,
Class elementType)
Returns an observable list in the given realm tracking the collection-typed named property of the given bean object. |
static IObservableMap |
observeMap(IObservableSet domain,
Class pojoClass,
String propertyName)
Returns 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. |
static IObservableMap |
observeMap(IObservableSet domain,
String propertyName)
Returns 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. |
static IObservableMap |
observeMap(Object pojo,
String propertyName)
Returns an observable map in the default realm tracking the map-typed named property of the given pojo object. |
static IObservableMap |
observeMap(Object pojo,
String propertyName,
Class keyType,
Class valueType)
Returns an observable map in the default realm tracking the map-typed named property of the given pojo object. |
static IObservableMap |
observeMap(Realm realm,
Object pojo,
String propertyName)
Returns an observable map in the given realm tracking the map-typed named property of the given pojo object. |
static IObservableMap |
observeMap(Realm realm,
Object pojo,
String propertyName,
Class keyType,
Class valueType)
Returns an observable map in the given realm tracking the map-typed named property of the given pojo object. |
static IObservableMap[] |
observeMaps(IObservableSet domain,
Class pojoClass,
String[] propertyNames)
Returns 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. |
static IObservableMap[] |
observeMaps(IObservableSet domain,
String[] propertyNames)
Returns 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. |
static IObservableSet |
observeSet(Object pojo,
String propertyName)
Returns an observable set in the default realm tracking the collection-typed named property of the given pojo object. |
static IObservableSet |
observeSet(Object pojo,
String propertyName,
Class elementType)
Returns an observable set in the default realm, tracking the collection-typed named property of the given pojo object. |
static IObservableSet |
observeSet(Realm realm,
Object pojo,
String propertyName)
Returns an observable set in the given realm tracking the collection-typed named property of the given pojo object. |
static IObservableSet |
observeSet(Realm realm,
Object pojo,
String propertyName,
Class elementType)
Returns an observable set in the given realm tracking the collection-typed named property of the given pojo object. |
static IObservableValue |
observeValue(Object pojo,
String propertyName)
Returns an observable value in the default realm tracking the current value of the named property of the given pojo. |
static IObservableValue |
observeValue(Realm realm,
Object pojo,
String propertyName)
Returns an observable value in the given realm tracking the current value of the named property of the given pojo. |
static IObservableFactory |
setFactory(Realm realm,
String propertyName)
Returns a factory for creating observable sets in the given realm, tracking the given property of a particular pojo object |
static IObservableFactory |
setFactory(Realm realm,
String propertyName,
Class elementType)
Returns a factory for creating observable set in the given realm, tracking the given property of a particular pojo object |
static IObservableFactory |
setFactory(String propertyName)
Returns a factory for creating observable sets in the current default realm, tracking the given property of a particular pojo object |
static IObservableFactory |
setFactory(String propertyName,
Class elementType)
Returns a factory for creating observable set in the current default realm, tracking the given property of a particular pojo object |
static IObservableFactory |
valueFactory(Realm realm,
String propertyName)
Returns a factory for creating observable values in the given realm, tracking the given property of a particular pojo object |
static IObservableFactory |
valueFactory(String propertyName)
Returns a factory for creating observable values in the current default realm, tracking the given property of a particular pojo object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PojoObservables()
Method Detail |
---|
public static IObservableValue observeValue(Object pojo, String propertyName)
pojo
- the objectpropertyName
- the name of the property. May be nested e.g. "parent.name"
public static IObservableValue observeValue(Realm realm, Object pojo, String propertyName)
realm
- the realmpojo
- the objectpropertyName
- the name of the property. May be nested e.g. "parent.name"
public static IObservableMap observeMap(IObservableSet domain, String propertyName)
put
values to these elements will be ignored.
domain
- the set of bean objectspropertyName
- the name of the property. May be nested e.g. "parent.name"
public static IObservableMap observeMap(IObservableSet domain, Class pojoClass, String propertyName)
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"
public static IObservableMap[] observeMaps(IObservableSet domain, String[] propertyNames)
put
values to these elements
will be ignored.
domain
- the set of objectspropertyNames
- the array of property names. May be nested e.g. "parent.name"
public static IObservableMap[] observeMaps(IObservableSet domain, Class pojoClass, String[] propertyNames)
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"
public static IObservableMap observeMap(Realm realm, Object pojo, String propertyName)
realm
- the realmpojo
- the pojo objectpropertyName
- the name of the property
public static IObservableMap observeMap(Realm realm, Object pojo, String propertyName, Class keyType, Class valueType)
realm
- the realmpojo
- the pojo objectpropertyName
- the name of the propertykeyType
- the element type of the observable map's key set, or
null
if untypedvalueType
- the element type of the observable map's values collection, or
null
if untyped
public static IObservableMap observeMap(Object pojo, String propertyName)
pojo
- the pojo objectpropertyName
- the name of the property
public static IObservableMap observeMap(Object pojo, String propertyName, Class keyType, Class valueType)
pojo
- the pojo objectpropertyName
- the name of the propertykeyType
- the element type of the observable map's key set, or
null
if untypedvalueType
- the element type of the observable map's values collection, or
null
if untyped
public static IObservableList observeList(Realm realm, Object pojo, String propertyName)
realm
- the realmpojo
- the objectpropertyName
- the name of the collection-typed property
observeList(Realm, Object, String, Class)
public static IObservableList observeList(Object pojo, String propertyName)
pojo
- the objectpropertyName
- the name of the collection-typed property
observeList(Realm, Object, String, Class)
public static IObservableList observeList(Realm realm, Object pojo, String propertyName, Class elementType)
PropertyChangeEvents
. This is done to provide
the same behavior as is expected from arrays as specified in the bean
spec in section 7.2.
realm
- the realmpojo
- the bean objectpropertyName
- the name of the propertyelementType
- type of the elements in the list. If null
and the
property is an array the type will be inferred. If
null
and the property type cannot be inferred
element type will be null
.
public static IObservableList observeList(Object pojo, String propertyName, Class elementType)
PropertyChangeEvents
. This is done to provide
the same behavior as is expected from arrays as specified in the bean
spec in section 7.2.
pojo
- the bean objectpropertyName
- the name of the propertyelementType
- type of the elements in the list. If null
and the
property is an array the type will be inferred. If
null
and the property type cannot be inferred
element type will be null
.
public static IObservableSet observeSet(Realm realm, Object pojo, String propertyName)
realm
- the realmpojo
- the pojo objectpropertyName
- the name of the property
public static IObservableSet observeSet(Object pojo, String propertyName)
pojo
- the pojo objectpropertyName
- the name of the property
public static IObservableSet observeSet(Realm realm, Object pojo, String propertyName, Class elementType)
realm
- the realmpojo
- the pojo objectpropertyName
- the name of the propertyelementType
- type of the elements in the set. If null
and the
property is an array the type will be inferred. If
null
and the property type cannot be inferred
element type will be null
.
public static IObservableSet observeSet(Object pojo, String propertyName, Class elementType)
pojo
- the pojo objectpropertyName
- the name of the propertyelementType
- type of the elements in the set. If null
and the
property is an array the type will be inferred. If
null
and the property type cannot be inferred
element type will be null
.
public static IObservableFactory valueFactory(Realm realm, String propertyName)
realm
- the realm to usepropertyName
- the name of the property. May be nested e.g. "parent.name"
public static IObservableFactory valueFactory(String propertyName)
propertyName
- the name of the property. May be nested e.g. "parent.name"
public static IObservableFactory listFactory(Realm realm, String propertyName, Class elementType)
realm
- the realm to usepropertyName
- the name of the propertyelementType
-
public static IObservableFactory listFactory(String propertyName, Class elementType)
propertyName
- the name of the propertyelementType
-
public static IObservableFactory setFactory(Realm realm, String propertyName)
realm
- the realm to usepropertyName
- the name of the property
public static IObservableFactory setFactory(String propertyName)
propertyName
- the name of the property
public static IObservableFactory setFactory(Realm realm, String propertyName, Class elementType)
realm
- the realm to usepropertyName
- the name of the propertyelementType
- type of the elements in the set. If null
and the
property is an array the type will be inferred. If
null
and the property type cannot be inferred
element type will be null
.
public static IObservableFactory setFactory(String propertyName, Class elementType)
propertyName
- the name of the propertyelementType
- type of the elements in the set. If null
and the
property is an array the type will be inferred. If
null
and the property type cannot be inferred
element type will be null
.
public static IObservableFactory mapPropertyFactory(Realm realm, String propertyName)
IObservableMap
in the
given realm that tracks the map-typed named property for the specified
pojo.
realm
- the realm assigned to observables created by the returned
factory.propertyName
- the name of the property
IObservableMap
objects.public static IObservableFactory mapPropertyFactory(String propertyName)
IObservableMap
in the
current default realm that tracks the map-typed named property for the
specified pojo.
propertyName
- the name of the property
IObservableMap
objects.public static IObservableValue observeDetailValue(Realm realm, IObservableValue master, String propertyName, Class propertyType)
observeDetailValue(IObservableValue, String, Class)
instead
MasterDetailObservables.detailValue(master, valueFactory(realm,
propertyName), propertyType)
realm
- master
- propertyName
- the property name. May be nested e.g. "parent.name"propertyType
- can be null
MasterDetailObservables
public static IObservableValue observeDetailValue(IObservableValue master, String propertyName, Class propertyType)
MasterDetailObservables.detailValue(master, valueFactory(master.getRealm, propertyName), propertyType)
master
- propertyName
- the property name. May be nested e.g. "parent.name"propertyType
- can be null
MasterDetailObservables
public static IObservableList observeDetailList(Realm realm, IObservableValue master, String propertyName, Class propertyType)
observeDetailList(IObservableValue, String, Class)
instead
MasterDetailObservables.detailList(master, listFactory(realm,
propertyName, propertyType), propertyType)
realm
- master
- propertyName
- propertyType
- can be null
MasterDetailObservables
public static IObservableList observeDetailList(IObservableValue master, String propertyName, Class propertyType)
MasterDetailObservables.detailList(master, listFactory(master.getRealm(), propertyName, propertyType), propertyType)
master
- propertyName
- propertyType
- can be null
MasterDetailObservables
public static IObservableSet observeDetailSet(Realm realm, IObservableValue master, String propertyName, Class propertyType)
observeDetailSet(IObservableValue, String, Class)
instead.
MasterDetailObservables.detailSet(master, setFactory(realm,
propertyName), propertyType)
realm
- master
- propertyName
- propertyType
- can be null
MasterDetailObservables
public static IObservableSet observeDetailSet(IObservableValue master, String propertyName, Class propertyType)
MasterDetailObservables.detailSet(master, setFactory(master.getRealm(), propertyName), propertyType)
master
- propertyName
- propertyType
- can be null
MasterDetailObservables
public static IObservableMap observeDetailMap(Realm realm, IObservableValue master, String propertyName)
observeDetailMap(IObservableValue, String)
instead
MasterDetailObservables.detailMap(master, mapFactory(realm, propertyName))
realm
- master
- propertyName
-
public static IObservableMap observeDetailMap(IObservableValue master, String propertyName)
MasterDetailObservables.detailMap(master, mapFactory(master.getRealm(), propertyName))
master
- propertyName
-
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.