public class MasterDetailObservables extends Object
Constructor and Description |
---|
MasterDetailObservables() |
Modifier and Type | Method and Description |
---|---|
static IObservableList |
detailList(IObservableValue master,
IObservableFactory detailFactory,
Object detailElementType)
Creates a detail observable list from a master observable value and a
factory.
|
static IObservableMap |
detailMap(IObservableValue master,
IObservableFactory detailFactory)
Creates a detail observable map from a master observable value and a
factory.
|
static IObservableMap |
detailMap(IObservableValue master,
IObservableFactory detailFactory,
Object detailKeyType,
Object detailValueType)
Creates a detail observable map from a master observable value and a
factory.
|
static IObservableSet |
detailSet(IObservableValue master,
IObservableFactory detailFactory,
Object detailElementType)
Creates a detail observable set from a master observable value and a
factory.
|
static IObservableValue |
detailValue(IObservableValue master,
IObservableFactory detailFactory,
Object detailType)
Creates a detail observable value from a master observable value and a
factory.
|
static IObservableList |
detailValues(IObservableList masterList,
IObservableFactory detailFactory,
Object detailType)
Returns a detail observable list where each element is the detail value
of the element in the master observable list.
|
static IObservableMap |
detailValues(IObservableMap masterMap,
IObservableFactory detailFactory,
Object detailType)
Returns a detail observable map where the map's key set is the same as
the one of the given master observable map, and where each value is the
detail value of the corresponding value in the master observable map.
|
static IObservableMap |
detailValues(IObservableSet masterSet,
IObservableFactory detailFactory,
Object detailType)
Returns a detail observable map where the map's key set is the same as
the given observable set, and where each value is the detail value of the
element in the master observable set.
|
public static IObservableValue detailValue(IObservableValue master, IObservableFactory detailFactory, Object detailType)
master
- the observable value to trackdetailFactory
- a factory for creating IObservableValue
instances
given a current value of the masterdetailType
- the value type of the detail observable value, typically of
type java.lang.Class and can be null
public static IObservableList detailList(IObservableValue master, IObservableFactory detailFactory, Object detailElementType)
master
- the observable value to trackdetailFactory
- a factory for creating IObservableList
instances given
a current value of the masterdetailElementType
- the element type of the detail observable list, typically of
type java.lang.Class and can be null
public static IObservableSet detailSet(IObservableValue master, IObservableFactory detailFactory, Object detailElementType)
master
- the observable value to trackdetailFactory
- a factory for creating IObservableSet
instances given
a current value of the masterdetailElementType
- the element type of the detail observable set, typically of
type java.lang.Class and can be null
public static IObservableMap detailMap(IObservableValue master, IObservableFactory detailFactory)
master
- the observable value to trackdetailFactory
- a factory for createing IObservableMap
instances given
a current value of the masterpublic static IObservableMap detailMap(IObservableValue master, IObservableFactory detailFactory, Object detailKeyType, Object detailValueType)
master
- the observable value to trackdetailFactory
- a factory for createing IObservableMap
instances given
a current value of the masterdetailKeyType
- the element type of the detail observable map's key set,
typically of type java.lang.Class and can be null
detailValueType
- the element type of the detail observable map's values
collection, typically of type java.lang.Class and can be
null
public static IObservableList detailValues(IObservableList masterList, IObservableFactory detailFactory, Object detailType)
Note that since the values of the returned list are detail values of the
elements of the master list, the only modifications supported are through
the IObservableList.set(int, Object)
method. Modifications made
through the returned list are made through the detail observables created
by the specified observable factory.
masterList
- The master observable list.detailFactory
- The factory for creating IObservableValue
instances
for the elements of the master list which then define the
elements of the new detail list.detailType
- The value type of the detail values, typically of type
java.lang.Class
. May be null
.public static IObservableMap detailValues(IObservableSet masterSet, IObservableFactory detailFactory, Object detailType)
Note that since the values of the returned map are detail values of the
elements of the master set, the only modifications supported are through
the IObservableMap.put(Object, Object)
and
Map.putAll(java.util.Map)
methods. Therefore, the
returned map does not add entries for elements not already contained in
the master set. Modifications made through the returned detail map are
made through the detail observables created by the specified observable
factory.
masterSet
- The master observable set.detailFactory
- The factory for creating IObservableValue
instances
for the elements of the master set which then define the
values of the new detail map.detailType
- The value type of the detail values, typically of type
java.lang.Class
. May be null
.public static IObservableMap detailValues(IObservableMap masterMap, IObservableFactory detailFactory, Object detailType)
Note that since the values of the returned map are detail values of the
values of the master map, the only modifications supported are through
the IObservableMap.put(Object, Object)
and
Map.putAll(java.util.Map)
methods. Therefore, the
returned map does not add entries for keys not already contained in the
master map's key set. Modifications made through the returned detail map
are made through the detail observables created by the specified
observable factory.
masterMap
- The master observable map.detailFactory
- The factory for creating IObservableValue
instances
for the values of the master map which then define the values
of the new detail map.detailType
- The value type of the detail values, typically of type
java.lang.Class
. May be null
.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.