|
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 java.util.Map |
doGetMap(java.lang.Object source)
Returns a Map with the current contents of the source's map property |
protected void |
doSetMap(java.lang.Object source,
java.util.Map map)
Updates the property on the source with the specified change. |
protected void |
doUpdateMap(java.lang.Object source,
MapDiff diff)
Updates the property on the source with the specified change. |
java.util.Map |
getMap(java.lang.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(java.lang.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(java.lang.Object source,
java.util.Map map)
Updates the property on the source with the specified change. |
void |
updateMap(java.lang.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 java.util.Map getMap(java.lang.Object source)
IMapProperty
getMap in interface IMapPropertysource - the property source (may be null)
protected java.util.Map doGetMap(java.lang.Object source)
source - the property source
public final void setMap(java.lang.Object source,
java.util.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 IMapPropertysource - the property source (may be null)map - the new map
protected void doSetMap(java.lang.Object source,
java.util.Map map)
source - the property sourcemap - the new map
public final void updateMap(java.lang.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 IMapPropertysource - the property source (may be null)diff - a diff describing the change
protected void doUpdateMap(java.lang.Object source,
MapDiff diff)
source - the property sourcediff - a diff describing the changepublic IObservableMap observe(java.lang.Object source)
IMapProperty
observe in interface IMapPropertysource - the property source
public IObservableFactory mapFactory()
IMapProperty
mapFactory in interface IMapPropertypublic IObservableFactory mapFactory(Realm realm)
IMapProperty
mapFactory in interface IMapPropertyrealm - the realm
public IObservableMap observeDetail(IObservableValue master)
IMapPropertymaster.
observeDetail in interface IMapPropertymaster - the master observable
master.public final IMapProperty values(IValueProperty detailValues)
IMapPropertyIObservableMap.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 IMapPropertydetailValues - 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.