public interface IMapProperty 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 |
getMap(Object 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 |
mapFactory()
Returns a factory for creating observable maps tracking this property of
a particular property source.
|
IObservableFactory |
mapFactory(Realm realm)
Returns a factory for creating observable maps in the given realm,
tracking this property of a particular property source.
|
IObservableMap |
observe(Object source)
Returns an observable map observing this map property on the given
property source
|
IObservableMap |
observe(Realm realm,
Object source)
Returns an observable map observing this map property on the given
property source
|
IObservableMap |
observeDetail(IObservableValue 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(Object source,
Map map)
Updates the property on the source with the specified change.
|
void |
updateMap(Object source,
MapDiff diff)
Updates the property on the source with the specified change.
|
IMapProperty |
values(IValueProperty 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 getMap(Object source)
source
- the property source (may be null)void setMap(Object source, Map 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(Object source, MapDiff 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 observe(Object source)
source
- the property sourceIObservableMap observe(Realm realm, Object source)
realm
- the observable's realmsource
- the property sourceIObservableFactory mapFactory()
IObservableFactory mapFactory(Realm realm)
realm
- the realmIObservableMap observeDetail(IObservableValue master)
master
.master
- the master observablemaster
.IMapProperty values(IValueProperty 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, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.