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, values
public 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()
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<K,V> doGetMap(S source)
MapProperty
doGetMap
in class MapProperty<S,K,V>
source
- the property sourceprotected void doSetMap(S source, Map<K,V> map)
MapProperty
doSetMap
in class MapProperty<S,K,V>
source
- the property sourcemap
- the new mapprotected void doUpdateMap(S source, MapDiff<K,V> diff)
MapProperty
doUpdateMap
in class MapProperty<S,K,V>
source
- the property sourcediff
- a diff describing the changepublic IObservableMap<K,V> observe(S source)
IMapProperty
observe
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)
IMapProperty
realm
- the observable's realmsource
- the property source
Copyright (c) 2000, 2016 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.