|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.databinding.beans.BeansObservables
A factory for creating observable objects of Java objects that conform to the JavaBean specification for bound properties.
Field Summary | |
static boolean |
DEBUG
|
Constructor Summary | |
BeansObservables()
|
Method Summary | |
static IObservableFactory |
listFactory(Realm realm,
String propertyName,
Class elementType)
Returns a factory for creating obervable lists tracking the given property of a particular bean object |
static IObservableFactory |
mapPropertyFactory(Realm realm,
String propertyName)
Returns a factory for creating an observable map. |
static IObservableList |
observeDetailList(Realm realm,
IObservableValue master,
String propertyName,
Class propertyType)
Helper method for MasterDetailObservables.detailList(master, listFactory(realm,
propertyName, propertyType), propertyType) |
static IObservableMap |
observeDetailMap(Realm realm,
IObservableValue master,
String propertyName)
Helper method for MasterDetailObservables.detailMap(master, mapFactory(realm, propertyName)) |
static IObservableSet |
observeDetailSet(Realm realm,
IObservableValue master,
String propertyName,
Class propertyType)
Helper method for MasterDetailObservables.detailSet(master, setFactory(realm,
propertyName), propertyType) |
static IObservableValue |
observeDetailValue(Realm realm,
IObservableValue master,
Class masterType,
String propertyName,
Class propertyType)
Helper method for MasterDetailObservables.detailValue(master, valueFactory(realm,
propertyName), propertyType) .
|
static IObservableValue |
observeDetailValue(Realm realm,
IObservableValue master,
String propertyName,
Class propertyType)
Helper method for MasterDetailObservables.detailValue(master, valueFactory(realm,
propertyName), propertyType) |
static IObservableList |
observeList(Realm realm,
Object bean,
String propertyName)
Returns an observable list in the given realm tracking the collection-typed named property of the given bean object. |
static IObservableList |
observeList(Realm realm,
Object bean,
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 beanClass,
String propertyName)
Returns an observable map in the default realm tracking the current values of the named property for the beans in the given set. |
static IObservableMap |
observeMap(Realm realm,
Object bean,
String propertyName)
Returns an observable map in the given realm tracking the map-typed named property of the given bean object. |
static IObservableMap[] |
observeMaps(IObservableSet domain,
Class beanClass,
String[] propertyNames)
Returns an array of observable maps in the default realm tracking the current values of the named propertys for the beans in the given set. |
static IObservableSet |
observeSet(Realm realm,
Object bean,
String propertyName)
Returns an observable set in the given realm tracking the collection-typed named property of the given bean object |
static IObservableSet |
observeSet(Realm realm,
Object bean,
String propertyName,
Class elementType)
|
static IObservableValue |
observeValue(Object bean,
String propertyName)
Returns an observable value in the default realm tracking the current value of the named property of the given bean. |
static IObservableValue |
observeValue(Realm realm,
Object bean,
String propertyName)
Returns an observable value in the given realm tracking the current value of the named property of the given bean. |
static IObservableFactory |
setFactory(Realm realm,
String propertyName)
Returns a factory for creating obervable sets tracking the given property of a particular bean object |
static IObservableFactory |
setFactory(Realm realm,
String propertyName,
Class elementType)
|
static IObservableFactory |
setToMapFactory(Class beanClass,
String propertyName)
Returns a factory for creating an observable map. |
static IObservableFactory |
valueFactory(Realm realm,
String propertyName)
Returns a factory for creating obervable values tracking the given property of a particular bean object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean DEBUG
Constructor Detail |
public BeansObservables()
Method Detail |
public static IObservableValue observeValue(Object bean, String propertyName)
bean
- the objectpropertyName
- the name of the property
public static IObservableValue observeValue(Realm realm, Object bean, String propertyName)
realm
- the realmbean
- the objectpropertyName
- the name of the property
public static IObservableMap observeMap(IObservableSet domain, Class beanClass, String propertyName)
domain
- the set of bean objectsbeanClass
- the common base type of bean objects that may be in the setpropertyName
- the name of the property
public static IObservableMap observeMap(Realm realm, Object bean, String propertyName)
realm
- the realmbean
- the bean objectpropertyName
- the name of the property
public static IObservableMap[] observeMaps(IObservableSet domain, Class beanClass, String[] propertyNames)
domain
- the set of objectsbeanClass
- the common base type of objects that may be in the setpropertyNames
- the array of property names
public static IObservableList observeList(Realm realm, Object bean, String propertyName)
realm
- the realmbean
- the objectpropertyName
- the name of the collection-typed property
observeList(Realm, Object, String, Class)
public static IObservableList observeList(Realm realm, Object bean, 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 realmbean
- 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 bean, String propertyName)
realm
- the realmbean
- the bean objectpropertyName
- the name of the property
public static IObservableFactory valueFactory(Realm realm, String propertyName)
realm
- the realm to usepropertyName
- the name of the property
public static IObservableFactory listFactory(Realm realm, String propertyName, Class elementType)
realm
- the realm to usepropertyName
- 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 IObservableValue observeDetailValue(Realm realm, IObservableValue master, String propertyName, Class propertyType)
MasterDetailObservables.detailValue(master, valueFactory(realm,
propertyName), propertyType)
realm
- master
- propertyName
- propertyType
- can be null
MasterDetailObservables
public static IObservableValue observeDetailValue(Realm realm, IObservableValue master, Class masterType, String propertyName, Class propertyType)
MasterDetailObservables.detailValue(master, valueFactory(realm,
propertyName), propertyType)
.
This method returns an IBeanObservable
with a
PropertyDescriptor
based on the given master type and property
name.
realm
- the realmmaster
- the master observable value, for example tracking the
selection in a listmasterType
- the type of the master observable valuepropertyName
- the property namepropertyType
- can be null
MasterDetailObservables
public static IObservableList observeDetailList(Realm realm, IObservableValue master, String propertyName, Class propertyType)
MasterDetailObservables.detailList(master, listFactory(realm,
propertyName, propertyType), propertyType)
realm
- master
- propertyName
- propertyType
- can be null
MasterDetailObservables
public static IObservableSet observeDetailSet(Realm realm, IObservableValue master, String propertyName, Class propertyType)
MasterDetailObservables.detailSet(master, setFactory(realm,
propertyName), propertyType)
realm
- master
- propertyName
- propertyType
- can be null
MasterDetailObservables
public static IObservableMap observeDetailMap(Realm realm, IObservableValue master, String propertyName)
MasterDetailObservables.detailMap(master, mapFactory(realm, propertyName))
realm
- the realmmaster
- propertyName
-
public static IObservableSet observeSet(Realm realm, Object bean, String propertyName, Class elementType)
realm
- bean
- propertyName
- elementType
- can be null
public static IObservableFactory setFactory(Realm realm, String propertyName, Class elementType)
realm
- propertyName
- elementType
- can be null
public static IObservableFactory setToMapFactory(Class beanClass, String propertyName)
IObservableSet
, will create an
IObservableMap
in the same realm as the underlying set that
tracks the current values of the named property for the beans in the
given set.
beanClass
- the common base type of bean objects that may be in the setpropertyName
- the name of the property
IObservableMap
objectspublic static IObservableFactory mapPropertyFactory(Realm realm, String propertyName)
IObservableMap
in the
given realm that tracks the map-typed named property for the specified
bean.
realm
- the realm assigned to observables created by the returned
factory.propertyName
- the name of the property
IObservableMap
objects.
|
Eclipse Platform Release 3.4 |
||||||||||
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, 2008. All rights reserved.