public abstract class SimpleMapProperty extends MapProperty
Subclasses must implement these methods:
IMapProperty.getKeyType()
IMapProperty.getValueType()
doGetMap(Object)
doSetMap(Object, Map, MapDiff)
adaptListener(ISimplePropertyListener)
In addition, we recommended overriding Object.toString() to return a
description suitable for debugging purposes.
| Constructor and Description |
|---|
SimpleMapProperty() |
| Modifier and Type | Method and Description |
|---|---|
abstract INativePropertyListener |
adaptListener(ISimplePropertyListener listener)
Returns a listener capable of adding or removing itself as a listener on
a source object using the the source's "native" listener API.
|
protected abstract 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 abstract void |
doSetMap(Object source,
Map map,
MapDiff diff)
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.
|
IObservableMap |
observe(Realm realm,
Object source)
Returns an observable map observing this map property on the given
property source
|
void |
setMap(Object source,
Map map,
MapDiff diff)
Updates the property on the source with the specified change.
|
getMap, mapFactory, mapFactory, observe, observeDetail, setMap, updateMap, valuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeyType, getValueTypepublic IObservableMap observe(Realm realm, Object source)
IMapPropertyrealm - the observable's realmsource - the property sourceprotected abstract Map doGetMap(Object source)
MapPropertydoGetMap in class MapPropertysource - the property sourcepublic final void setMap(Object source, Map map, MapDiff diff)
source - the property sourcemap - the new mapdiff - a diff describing the changeprotected abstract void doSetMap(Object source, Map map, MapDiff diff)
source - the property sourcemap - the new mapdiff - a diff describing the changeprotected void doSetMap(Object source, Map map)
MapPropertydoSetMap in class MapPropertysource - the property sourcemap - the new mapprotected void doUpdateMap(Object source, MapDiff diff)
MapPropertydoUpdateMap in class MapPropertysource - the property sourcediff - a diff describing the changepublic abstract INativePropertyListener adaptListener(ISimplePropertyListener listener)
This method returns null if the source object has no listener APIs for this property.
listener - the property listener to receive events
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.