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, values
public final IMapProperty getDelegate(Object source)
source
- the property source (may be null)protected abstract IMapProperty doGetDelegate(Object source)
source
- the property sourcepublic Object getKeyType()
IMapProperty
null
if the
key set is untyped.null
if the
key set is untyped.public Object getValueType()
IMapProperty
null
if the collection is untyped.null
if the collection is untyped.protected Map doGetMap(Object source)
MapProperty
doGetMap
in class MapProperty
source
- the property sourceprotected void doSetMap(Object source, Map map)
MapProperty
doSetMap
in class MapProperty
source
- the property sourcemap
- the new mapprotected void doUpdateMap(Object source, MapDiff diff)
MapProperty
doUpdateMap
in class MapProperty
source
- the property sourcediff
- a diff describing the changepublic IObservableMap observe(Object source)
IMapProperty
observe
in interface IMapProperty
observe
in class MapProperty
source
- the property sourcepublic IObservableMap observe(Realm realm, Object source)
IMapProperty
realm
- the observable's realmsource
- the property source
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.