public abstract class DelegatingMapProperty extends MapProperty
| Modifier | Constructor and Description |
|---|---|
protected |
DelegatingMapProperty() |
protected |
DelegatingMapProperty(Object keyType,
Object valueType) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract IMapProperty |
doGetDelegate(Object source)
Returns the property to delegate to for the specified source object.
|
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.
|
IMapProperty |
getDelegate(Object source)
Returns the property to delegate to for the specified source object.
|
Object |
getKeyType()
Returns the element type of the map's key set or
null if the
key set is untyped. |
Object |
getValueType()
Returns the element type of the map's values collection or
null if the collection is untyped. |
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
|
getMap, mapFactory, mapFactory, observeDetail, setMap, updateMap, valuespublic final IMapProperty getDelegate(Object source)
source - the property source (may be null)protected abstract IMapProperty doGetDelegate(Object source)
source - the property sourcepublic Object getKeyType()
IMapPropertynull if the
key set is untyped.null if the
key set is untyped.public Object getValueType()
IMapPropertynull if the collection is untyped.null if the collection is untyped.protected Map doGetMap(Object source)
MapPropertydoGetMap in class MapPropertysource - the property sourceprotected 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 IObservableMap observe(Object source)
IMapPropertyobserve in interface IMapPropertyobserve in class MapPropertysource - the property sourcepublic IObservableMap observe(Realm realm, Object source)
IMapPropertyrealm - the observable's realmsource - the property source
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.