BeanProperties
insteadpublic final class BeansObservables extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUG
Deprecated.
|
Constructor and Description |
---|
BeansObservables()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static IObservableFactory |
listFactory(Realm realm,
String propertyName,
Class elementType)
Deprecated.
use
BeanProperties instead |
static IObservableFactory |
listFactory(String propertyName,
Class elementType)
Deprecated.
use
BeanProperties instead |
static IObservableFactory |
mapPropertyFactory(Realm realm,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableFactory |
mapPropertyFactory(String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableList |
observeDetailList(IObservableValue master,
String propertyName,
Class propertyType)
Deprecated.
use
BeanProperties instead |
static IObservableList |
observeDetailList(Realm realm,
IObservableValue master,
String propertyName,
Class propertyType)
Deprecated.
|
static IObservableMap |
observeDetailMap(IObservableValue master,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableMap |
observeDetailMap(Realm realm,
IObservableValue master,
String propertyName)
Deprecated.
Use
observeDetailMap(IObservableValue, String)
instead |
static IObservableSet |
observeDetailSet(IObservableValue master,
String propertyName,
Class propertyType)
Deprecated.
use
BeanProperties instead |
static IObservableSet |
observeDetailSet(Realm realm,
IObservableValue master,
String propertyName,
Class propertyType)
Deprecated.
Use
observeDetailSet(IObservableValue, String, Class)
instead. |
static IObservableValue |
observeDetailValue(IObservableValue master,
Class masterType,
String propertyName,
Class propertyType)
Deprecated.
use
BeanProperties instead |
static IObservableValue |
observeDetailValue(IObservableValue master,
String propertyName,
Class propertyType)
Deprecated.
use
BeanProperties instead |
static IObservableValue |
observeDetailValue(Realm realm,
IObservableValue master,
Class masterType,
String propertyName,
Class propertyType)
Deprecated.
|
static IObservableValue |
observeDetailValue(Realm realm,
IObservableValue master,
String propertyName,
Class propertyType)
Deprecated.
|
static IObservableList |
observeList(Object bean,
String propertyName)
Deprecated.
Returns an observable list in the default realm tracking the
collection-typed named property of the given bean object.
|
static IObservableList |
observeList(Object bean,
String propertyName,
Class elementType)
Deprecated.
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 bean,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableList |
observeList(Realm realm,
Object bean,
String propertyName,
Class elementType)
Deprecated.
use
BeanProperties instead |
static IObservableMap |
observeMap(IObservableSet domain,
Class beanClass,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableMap |
observeMap(IObservableSet domain,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableMap |
observeMap(Object bean,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableMap |
observeMap(Object bean,
String propertyName,
Class keyType,
Class valueType)
Deprecated.
use
BeanProperties instead |
static IObservableMap |
observeMap(Realm realm,
Object bean,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableMap |
observeMap(Realm realm,
Object bean,
String propertyName,
Class keyType,
Class valueType)
Deprecated.
use
BeanProperties instead |
static IObservableMap[] |
observeMaps(IObservableSet domain,
Class beanClass,
String[] propertyNames)
Deprecated.
use
BeanProperties instead |
static IObservableMap[] |
observeMaps(IObservableSet domain,
String[] propertyNames)
Deprecated.
use
BeanProperties instead |
static IObservableSet |
observeSet(Object bean,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableSet |
observeSet(Object bean,
String propertyName,
Class elementType)
Deprecated.
use
BeanProperties instead |
static IObservableSet |
observeSet(Realm realm,
Object bean,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableSet |
observeSet(Realm realm,
Object bean,
String propertyName,
Class elementType)
Deprecated.
use
BeanProperties instead |
static IObservableValue |
observeValue(Object bean,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableValue |
observeValue(Realm realm,
Object bean,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableFactory |
setFactory(Realm realm,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableFactory |
setFactory(Realm realm,
String propertyName,
Class elementType)
Deprecated.
use
BeanProperties instead |
static IObservableFactory |
setFactory(String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableFactory |
setFactory(String propertyName,
Class elementType)
Deprecated.
Returns a factory for creating observable sets in the current default
realm, tracking the given property of a particular bean object
|
static IObservableFactory |
setToMapFactory(Class beanClass,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableFactory |
valueFactory(Realm realm,
String propertyName)
Deprecated.
use
BeanProperties instead |
static IObservableFactory |
valueFactory(String propertyName)
Deprecated.
use
BeanProperties instead |
public static final boolean DEBUG
public static IObservableValue observeValue(Object bean, String propertyName)
BeanProperties
insteadbean
- the objectpropertyName
- the name of the property. May be nested e.g. "parent.name"public static IObservableValue observeValue(Realm realm, Object bean, String propertyName)
BeanProperties
insteadrealm
- the realmbean
- the objectpropertyName
- the name of the property. May be nested e.g. "parent.name"public static IObservableMap observeMap(IObservableSet domain, String propertyName)
BeanProperties
insteadput
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 beanClass, String propertyName)
BeanProperties
insteaddomain
- the set of bean objectsbeanClass
- the common base type of bean objects that may be in the setpropertyName
- the name of the property. May be nested e.g. "parent.name"public static IObservableMap observeMap(Realm realm, Object bean, String propertyName)
BeanProperties
insteadrealm
- the realmbean
- the bean objectpropertyName
- the name of the property. May be nested e.g. "parent.name"public static IObservableMap observeMap(Realm realm, Object bean, String propertyName, Class keyType, Class valueType)
BeanProperties
insteadrealm
- the realmbean
- the bean objectpropertyName
- the name of the property. May be nested e.g. "parent.name"keyType
- 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 untypedpublic static IObservableMap observeMap(Object bean, String propertyName)
BeanProperties
insteadbean
- the bean objectpropertyName
- the name of the property. May be nested e.g. "parent.name"public static IObservableMap observeMap(Object bean, String propertyName, Class keyType, Class valueType)
BeanProperties
insteadbean
- the bean 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 untypedpublic static IObservableMap[] observeMaps(IObservableSet domain, String[] propertyNames)
BeanProperties
insteadput
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 beanClass, String[] propertyNames)
BeanProperties
insteaddomain
- the set of objectsbeanClass
- 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 IObservableList observeList(Realm realm, Object bean, String propertyName)
BeanProperties
insteadrealm
- the realmbean
- the objectpropertyName
- the name of the collection-typed propertyobserveList(Realm, Object, String, Class)
public static IObservableList observeList(Object bean, String propertyName)
bean
- the objectpropertyName
- the name of the collection-typed propertyobserveList(Realm, Object, String, Class)
public static IObservableList observeList(Realm realm, Object bean, String propertyName, Class elementType)
BeanProperties
insteadPropertyChangeEvents
. 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 IObservableList observeList(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.bean
- 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)
BeanProperties
insteadrealm
- the realmbean
- the bean objectpropertyName
- the name of the propertypublic static IObservableSet observeSet(Object bean, String propertyName)
BeanProperties
insteadbean
- the bean objectpropertyName
- the name of the propertypublic static IObservableFactory valueFactory(Realm realm, String propertyName)
BeanProperties
insteadrealm
- the realm to usepropertyName
- the name of the property. May be nested e.g. "parent.name"public static IObservableFactory valueFactory(String propertyName)
BeanProperties
insteadpropertyName
- the name of the property. May be nested e.g. "parent.name"public static IObservableFactory listFactory(Realm realm, String propertyName, Class elementType)
BeanProperties
insteadrealm
- the realm to usepropertyName
- the name of the propertyelementType
- public static IObservableFactory listFactory(String propertyName, Class elementType)
BeanProperties
insteadpropertyName
- the name of the propertyelementType
- public static IObservableFactory setFactory(Realm realm, String propertyName)
BeanProperties
insteadrealm
- the realm to usepropertyName
- the name of the propertypublic static IObservableFactory setFactory(String propertyName)
BeanProperties
insteadpropertyName
- the name of the property@Deprecated public static IObservableValue observeDetailValue(Realm realm, IObservableValue master, String propertyName, Class propertyType)
observeDetailValue(IObservableValue, String, Class)
insteadMasterDetailObservables.detailValue(master, valueFactory(realm,
propertyName), propertyType)
realm
- master
- propertyName
- the name of the property. May be nested e.g. "parent.name"propertyType
- can be null
MasterDetailObservables
public static IObservableValue observeDetailValue(IObservableValue master, String propertyName, Class propertyType)
BeanProperties
insteadMasterDetailObservables.detailValue(master, valueFactory(master.getRealm(), propertyName), propertyType)
master
- propertyName
- the name of the property. May be nested e.g. "parent.name"propertyType
- can be null
MasterDetailObservables
@Deprecated public static IObservableValue observeDetailValue(Realm realm, IObservableValue master, Class masterType, String propertyName, Class propertyType)
observeDetailValue(IObservableValue, Class, String, Class)
instead.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 name. May be nested e.g. "parent.name"propertyType
- can be null
MasterDetailObservables
public static IObservableValue observeDetailValue(IObservableValue master, Class masterType, String propertyName, Class propertyType)
BeanProperties
insteadMasterDetailObservables.detailValue(master, valueFactory(master.getRealm(), propertyName), propertyType)
. This method returns an IBeanObservable
with a
PropertyDescriptor
based on the given master type and property
name.master
- the master observable value, for example tracking the
selection in a listmasterType
- the type of the master observable valuepropertyName
- the property name. May be nested e.g. "parent.name"propertyType
- can be null
MasterDetailObservables
@Deprecated public static IObservableList observeDetailList(Realm realm, IObservableValue master, String propertyName, Class propertyType)
observeDetailList(IObservableValue, String, Class)
insteadMasterDetailObservables.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)
BeanProperties
insteadMasterDetailObservables.detailList(master, listFactory(master.getRealm(), propertyName, propertyType), propertyType)
master
- propertyName
- propertyType
- can be null
MasterDetailObservables
@Deprecated 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)
BeanProperties
insteadMasterDetailObservables.detailSet(master, setFactory(master.getRealm(), propertyName), propertyType)
master
- propertyName
- propertyType
- can be null
MasterDetailObservables
@Deprecated public static IObservableMap observeDetailMap(Realm realm, IObservableValue master, String propertyName)
observeDetailMap(IObservableValue, String)
insteadMasterDetailObservables.detailMap(master, mapFactory(realm, propertyName))
realm
- the realmmaster
- propertyName
- public static IObservableMap observeDetailMap(IObservableValue master, String propertyName)
BeanProperties
insteadMasterDetailObservables.detailMap(master, mapFactory(master.getRealm(), propertyName))
master
- propertyName
- public static IObservableSet observeSet(Realm realm, Object bean, String propertyName, Class elementType)
BeanProperties
insteadPropertyChangeEvents
. 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 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 bean, String propertyName, Class elementType)
BeanProperties
insteadPropertyChangeEvents
. This is done to provide the same
behavior as is expected from arrays as specified in the bean spec in
section 7.2.bean
- the bean 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 setFactory(Realm realm, String propertyName, Class elementType)
BeanProperties
insteadrealm
- 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 setToMapFactory(Class beanClass, String propertyName)
BeanProperties
insteadIObservableSet
, 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. May be nested e.g. "parent.name"IObservableMap
objectspublic static IObservableFactory mapPropertyFactory(Realm realm, String propertyName)
BeanProperties
insteadIObservableMap
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 propertyIObservableMap
objects.public static IObservableFactory mapPropertyFactory(String propertyName)
BeanProperties
insteadIObservableMap
in the
current default realm that tracks the map-typed named property for the
specified bean.propertyName
- the name of the propertyIObservableMap
objects.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.