S - type of the source objectK - type of the keys to the mapV - type of the values in the mappublic abstract class DelegatingMapProperty<S,K,V> extends MapProperty<S,K,V>
| Modifier | Constructor and Description |
|---|---|
protected |
DelegatingMapProperty() |
protected |
DelegatingMapProperty(Object keyType,
Object valueType) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract IMapProperty<S,K,V> |
doGetDelegate(S source)
Returns the property to delegate to for the specified source object.
|
protected Map<K,V> |
doGetMap(S source)
Returns a Map with the current contents of the source's map property
|
protected void |
doSetMap(S source,
Map<K,V> map)
Updates the property on the source with the specified change.
|
protected void |
doUpdateMap(S source,
MapDiff<K,V> diff)
Updates the property on the source with the specified change.
|
IMapProperty<S,K,V> |
getDelegate(S 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<K,V> |
observe(Realm realm,
S source)
Returns an observable map observing this map property on the given
property source
|
IObservableMap<K,V> |
observe(S source)
Returns an observable map observing this map property on the given
property source
|
getMap, mapFactory, mapFactory, observeDetail, setMap, updateMap, valuespublic final IMapProperty<S,K,V> getDelegate(S source)
source - the property source (may be null)protected abstract IMapProperty<S,K,V> doGetDelegate(S 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<K,V> doGetMap(S source)
MapPropertydoGetMap in class MapProperty<S,K,V>source - the property sourceprotected void doSetMap(S source, Map<K,V> map)
MapPropertydoSetMap in class MapProperty<S,K,V>source - the property sourcemap - the new mapprotected void doUpdateMap(S source, MapDiff<K,V> diff)
MapPropertydoUpdateMap in class MapProperty<S,K,V>source - the property sourcediff - a diff describing the changepublic IObservableMap<K,V> observe(S source)
IMapPropertyobserve in interface IMapProperty<S,K,V>observe in class MapProperty<S,K,V>source - the property sourcepublic IObservableMap<K,V> observe(Realm realm, S source)
IMapPropertyrealm - the observable's realmsource - the property source
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.