|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.databinding.property.map.MapProperty
public abstract class MapProperty
Abstract implementation of IMapProperty
Constructor Summary | |
---|---|
MapProperty()
|
Method Summary | |
---|---|
protected Map |
doGetMap(Object source)
Returns a Map with the current contents of the source's map property |
protected void |
doSetMap(Object source,
Map map)
Updates the property on the source with the specified change. |
protected void |
doUpdateMap(Object source,
MapDiff diff)
Updates the property on the source with the specified change. |
Map |
getMap(Object source)
Returns an unmodifiable Map with the current contents of the source's map property. |
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 |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.core.databinding.property.map.IMapProperty |
---|
getKeyType, getValueType, observe |
Constructor Detail |
---|
public MapProperty()
Method Detail |
---|
public final Map getMap(Object source)
IMapProperty
getMap
in interface IMapProperty
source
- the property source (may be null)
protected Map doGetMap(Object source)
source
- the property source
public final void setMap(Object source, Map map)
IMapProperty
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.
setMap
in interface IMapProperty
source
- the property source (may be null)map
- the new mapprotected void doSetMap(Object source, Map map)
source
- the property sourcemap
- the new mappublic final void updateMap(Object source, MapDiff diff)
IMapProperty
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.
updateMap
in interface IMapProperty
source
- the property source (may be null)diff
- a diff describing the changeprotected void doUpdateMap(Object source, MapDiff diff)
source
- the property sourcediff
- a diff describing the changepublic IObservableMap observe(Object source)
IMapProperty
observe
in interface IMapProperty
source
- the property source
public IObservableFactory mapFactory()
IMapProperty
mapFactory
in interface IMapProperty
public IObservableFactory mapFactory(Realm realm)
IMapProperty
mapFactory
in interface IMapProperty
realm
- the realm
public IObservableMap observeDetail(IObservableValue master)
IMapProperty
master
.
observeDetail
in interface IMapProperty
master
- the master observable
master
.public final IMapProperty values(IValueProperty detailValues)
IMapProperty
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.
values
in interface IMapProperty
detailValues
- the detail property
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.