public class MasterDetailObservables extends Object
Constructor and Description |
---|
MasterDetailObservables() |
Modifier and Type | Method and Description |
---|---|
static <M,E> IObservableList<E> |
detailList(IObservableValue<M> master,
IObservableFactory<? super M,IObservableList<E>> detailFactory,
Object detailElementType)
Creates a detail observable list from a master observable value and a
factory.
|
static <M,K,V> IObservableMap<K,V> |
detailMap(IObservableValue<M> master,
IObservableFactory<? super M,IObservableMap<K,V>> detailFactory,
Object detailKeyType,
Object detailValueType)
Creates a detail observable map from a master observable value and a
factory.
|
static <M,K,V> IObservableMap<K,V> |
detailMap(IObservableValue<M> master,
IObservableFactory<M,IObservableMap<K,V>> detailFactory)
Creates a detail observable map from a master observable value and a
factory.
|
static <M,E> IObservableSet<E> |
detailSet(IObservableValue<M> master,
IObservableFactory<? super M,IObservableSet<E>> detailFactory,
Object detailElementType)
Creates a detail observable set from a master observable value and a
factory.
|
static <M,T> IObservableValue<T> |
detailValue(IObservableValue<M> master,
IObservableFactory<? super M,IObservableValue<T>> detailFactory,
Object detailType)
Creates a detail observable value from a master observable value and a
factory.
|
static <M,E> IObservableList<E> |
detailValues(IObservableList<M> masterList,
IObservableFactory<? super M,IObservableValue<E>> detailFactory,
Object detailType)
Returns a detail observable list where each element is the detail value
of the element in the master observable list.
|
static <K,M,E> IObservableMap<K,E> |
detailValues(IObservableMap<K,M> masterMap,
IObservableFactory<? super M,IObservableValue<E>> 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 <M,E> IObservableMap<M,E> |
detailValues(IObservableSet<M> masterSet,
IObservableFactory<? super M,IObservableValue<E>> 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 <M,T> IObservableValue<T> detailValue(IObservableValue<M> master, IObservableFactory<? super M,IObservableValue<T>> detailFactory, Object detailType)
M
- type of the master observableT
- type of the inner detail observablemaster
- 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 <M,E> IObservableList<E> detailList(IObservableValue<M> master, IObservableFactory<? super M,IObservableList<E>> detailFactory, Object detailElementType)
M
- type of the master observableE
- type of the elements in the inner observable setmaster
- 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 <M,E> IObservableSet<E> detailSet(IObservableValue<M> master, IObservableFactory<? super M,IObservableSet<E>> detailFactory, Object detailElementType)
M
- type of the master observableE
- type of the elements in the inner observable setmaster
- 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 <M,K,V> IObservableMap<K,V> detailMap(IObservableValue<M> master, IObservableFactory<M,IObservableMap<K,V>> detailFactory)
M
- type of the master observableK
- type of the keys to the inner observable mapV
- type of the values in the inner observable mapmaster
- the observable value to trackdetailFactory
- a factory for creating IObservableMap
instances given
a current value of the masterpublic static <M,K,V> IObservableMap<K,V> detailMap(IObservableValue<M> master, IObservableFactory<? super M,IObservableMap<K,V>> detailFactory, Object detailKeyType, Object detailValueType)
M
- type of the master observableK
- type of the keys to the inner observable mapV
- type of the values in the inner observable mapmaster
- the observable value to trackdetailFactory
- a factory for creating 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 <M,E> IObservableList<E> detailValues(IObservableList<M> masterList, IObservableFactory<? super M,IObservableValue<E>> 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.
M
- type of the master observables in the master listE
- type of the detail elementsmasterList
- 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 <M,E> IObservableMap<M,E> detailValues(IObservableSet<M> masterSet, IObservableFactory<? super M,IObservableValue<E>> 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.
M
- type of the master observables in the master setE
- type of the detail elementsmasterSet
- 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 <K,M,E> IObservableMap<K,E> detailValues(IObservableMap<K,M> masterMap, IObservableFactory<? super M,IObservableValue<E>> 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.
K
- type of the keys (the keys to both the given master observable
map and the keys to the returned detail map, both of which are
the same set of keys)M
- type of the master observables in the master set, being the
values of the given master observable mapE
- type of the detail elements, being the values of the returned
detail mapmasterMap
- 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, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.