S
- type of the source objectK
- type of the keys to the mapV
- type of the values in the mappublic interface IMapProperty<S,K,V> extends IProperty
MapProperty
,
SimpleMapProperty
Modifier and Type | Method and Description |
---|---|
Object |
getKeyType()
Returns the element type of the map's key set or
null if the
key set is untyped. |
Map<K,V> |
getMap(S source)
Returns an unmodifiable Map with the current contents of the source's map
property.
|
Object |
getValueType()
Returns the element type of the map's values collection or
null if the collection is untyped. |
IObservableFactory<S,IObservableMap<K,V>> |
mapFactory()
Returns a factory for creating observable maps tracking this property of
a particular property source.
|
IObservableFactory<S,IObservableMap<K,V>> |
mapFactory(Realm realm)
Returns a factory for creating observable maps in the given realm,
tracking this property of a particular property source.
|
IObservableMap<K,V> |
observe(Realm realm,
S source)
Returns an observable map observing this map property on the given
property source
|
IObservableMap<K,V> |
observe(S source)
Returns an observable map observing this map property on the given
property source
|
<U extends S> |
observeDetail(IObservableValue<U> master)
Returns an observable map on the master observable's realm which tracks
this property of the values in the entry set of
master . |
void |
setMap(S source,
Map<K,V> map)
Updates the property on the source with the specified change.
|
void |
updateMap(S source,
MapDiff<K,V> diff)
Updates the property on the source with the specified change.
|
<T> IMapProperty<S,K,T> |
values(IValueProperty<? super V,T> detailValues)
Returns the nested combination of this property and the specified detail
value property.
|
Object getKeyType()
null
if the
key set is untyped.null
if the
key set is untyped.Object getValueType()
null
if the collection is untyped.null
if the collection is untyped.Map<K,V> getMap(S source)
source
- the property source (may be null)void setMap(S source, Map<K,V> map)
Note: This method is made available to facilitate basic property
access. However if the property source lacks property change
notification, then observables on the source object may not be notified
of the change. In most cases it is preferable to modify the source
through an IObservableMap
than through the property directly.
source
- the property source (may be null)map
- the new mapvoid updateMap(S source, MapDiff<K,V> diff)
Note: This method is made available to facilitate basic property
access. However if the property source lacks property change
notification, then observables on the source object may not be notified
of the change. In most cases it is preferable to modify the source
through an IObservableMap
than through the property directly.
source
- the property source (may be null)diff
- a diff describing the changeIObservableMap<K,V> observe(S source)
source
- the property sourceIObservableMap<K,V> observe(Realm realm, S source)
realm
- the observable's realmsource
- the property sourceIObservableFactory<S,IObservableMap<K,V>> mapFactory()
IObservableFactory<S,IObservableMap<K,V>> mapFactory(Realm realm)
realm
- the realm<U extends S> IObservableMap<K,V> observeDetail(IObservableValue<U> master)
master
.master
- the master observablemaster
.<T> IMapProperty<S,K,T> values(IValueProperty<? super V,T> detailValues)
IObservableMap.put(Object, Object)
and
Map.putAll(java.util.Map)
methods. In the latter case,
this property does not entries for keys not already contained in the
master map's key set. Modifications made through the returned property
are delegated to the detail property, using the corresponding entry value
from the master property as the source.detailValues
- the detail property
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.