|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.databinding.property.map.MapProperty
org.eclipse.core.databinding.property.map.DelegatingMapProperty
public abstract class DelegatingMapProperty
Constructor Summary | |
---|---|
protected |
DelegatingMapProperty()
|
protected |
DelegatingMapProperty(Object keyType,
Object valueType)
|
Method Summary | |
---|---|
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 |
Methods inherited from class org.eclipse.core.databinding.property.map.MapProperty |
---|
getMap, mapFactory, mapFactory, observeDetail, setMap, updateMap, values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DelegatingMapProperty()
protected DelegatingMapProperty(Object keyType, Object valueType)
Method Detail |
---|
public final IMapProperty getDelegate(Object source)
source
- the property source (may be null)
protected abstract IMapProperty doGetDelegate(Object source)
source
- the property source
public 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 source
protected 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 source
public IObservableMap observe(Realm realm, Object source)
IMapProperty
realm
- the observable's realmsource
- the property source
|
Eclipse Platform Release 3.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.