|
Eclipse Platform Release 3.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap
org.eclipse.core.databinding.observable.map.AbstractObservableMap
org.eclipse.core.databinding.observable.map.ComputedObservableMap
public abstract class ComputedObservableMap
Maps objects to one of their attributes. Tracks changes to the underlying observable set of objects (keys), as well as changes to attribute values.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
ComputedObservableMap(IObservableSet keySet)
|
|
ComputedObservableMap(IObservableSet keySet,
Object valueType)
|
|
| Method Summary | |
|---|---|
boolean |
containsKey(Object key)
|
void |
dispose()
Disposes of this observable object, removing all listeners registered with this object, and all listeners this object might have registered on other objects. |
protected abstract Object |
doGet(Object key)
|
protected abstract Object |
doPut(Object key,
Object value)
|
Set |
entrySet()
|
protected void |
fireSingleChange(Object key,
Object oldValue,
Object newValue)
|
protected void |
firstListenerAdded()
|
Object |
get(Object key)
|
Object |
getKeyType()
Returns the element type for the keyset of this
observable map, or null if the keyset is untyped. |
Object |
getValueType()
Returns the element type for the values of this
observable map, or null if the values collection is untyped. |
protected abstract void |
hookListener(Object addedKey)
|
protected void |
init()
Deprecated. Subclasses are no longer required to call this method. |
boolean |
isStale()
Returns whether the state of this observable is stale and is expected to change soon. |
Set |
keySet()
|
protected void |
lastListenerRemoved()
|
Object |
put(Object key,
Object value)
|
Object |
remove(Object key)
|
protected abstract void |
unhookListener(Object removedKey)
|
| Methods inherited from class org.eclipse.core.databinding.observable.map.AbstractObservableMap |
|---|
addChangeListener, addDisposeListener, addMapChangeListener, addStaleListener, checkRealm, fireChange, fireMapChange, fireStale, getRealm, hasListeners, isDisposed, removeChangeListener, removeDisposeListener, removeMapChangeListener, removeStaleListener, setStale |
| Methods inherited from class java.util.AbstractMap |
|---|
clear, clone, containsValue, equals, hashCode, isEmpty, putAll, size, toString, values |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.core.databinding.observable.map.IObservableMap |
|---|
containsValue, equals, hashCode, isEmpty, size, values |
| Methods inherited from interface java.util.Map |
|---|
clear, putAll |
| Constructor Detail |
|---|
public ComputedObservableMap(IObservableSet keySet)
keySet -
public ComputedObservableMap(IObservableSet keySet,
Object valueType)
keySet - valueType - | Method Detail |
|---|
protected void init()
protected void firstListenerAdded()
firstListenerAdded in class AbstractObservableMapprotected void lastListenerRemoved()
lastListenerRemoved in class AbstractObservableMap
protected final void fireSingleChange(Object key,
Object oldValue,
Object newValue)
public Object getKeyType()
IObservableMapkeyset of this
observable map, or null if the keyset is untyped.
getKeyType in interface IObservableMapgetKeyType in class AbstractObservableMapkeyset of this
observable map, or null if the keyset is untyped.public Object getValueType()
IObservableMapvalues of this
observable map, or null if the values collection is untyped.
getValueType in interface IObservableMapgetValueType in class AbstractObservableMapvalues of this
observable map, or null if the values collection is
untyped.public Object remove(Object key)
remove in interface Mapremove in interface IObservableMapremove in class AbstractMappublic boolean containsKey(Object key)
containsKey in interface MapcontainsKey in interface IObservableMapcontainsKey in class AbstractMappublic Set entrySet()
entrySet in interface MapentrySet in interface IObservableMapentrySet in class AbstractMappublic Set keySet()
keySet in interface MapkeySet in interface IObservableMapkeySet in class AbstractMappublic final Object get(Object key)
get in interface Mapget in interface IObservableMapget in class AbstractMap
public final Object put(Object key,
Object value)
put in interface Mapput in interface IObservableMapput in class AbstractMapprotected abstract void unhookListener(Object removedKey)
removedKey - protected abstract void hookListener(Object addedKey)
addedKey - protected abstract Object doGet(Object key)
key -
protected abstract Object doPut(Object key,
Object value)
key - value -
public boolean isStale()
IObservable
isStale in interface IObservableisStale in class AbstractObservableMappublic void dispose()
IObservable
dispose in interface IObservabledispose in class AbstractObservableMap
|
Eclipse Platform Release 3.7 |
|||||||||
| 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, 2011. All rights reserved.