|
Eclipse Platform Release 3.6 |
|||||||||
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 AbstractObservableMap
protected void lastListenerRemoved()
lastListenerRemoved
in class AbstractObservableMap
protected final void fireSingleChange(Object key, Object oldValue, Object newValue)
public Object getKeyType()
IObservableMap
keyset
of this
observable map, or null
if the keyset is untyped.
getKeyType
in interface IObservableMap
getKeyType
in class AbstractObservableMap
keyset
of this
observable map, or null
if the keyset is untyped.public Object getValueType()
IObservableMap
values
of this
observable map, or null
if the values collection is untyped.
getValueType
in interface IObservableMap
getValueType
in class AbstractObservableMap
values
of this
observable map, or null
if the values collection is
untyped.public Object remove(Object key)
remove
in interface Map
remove
in interface IObservableMap
remove
in class AbstractMap
public boolean containsKey(Object key)
containsKey
in interface Map
containsKey
in interface IObservableMap
containsKey
in class AbstractMap
public Set entrySet()
entrySet
in interface Map
entrySet
in interface IObservableMap
entrySet
in class AbstractMap
public Set keySet()
keySet
in interface Map
keySet
in interface IObservableMap
keySet
in class AbstractMap
public final Object get(Object key)
get
in interface Map
get
in interface IObservableMap
get
in class AbstractMap
public final Object put(Object key, Object value)
put
in interface Map
put
in interface IObservableMap
put
in class AbstractMap
protected 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 IObservable
isStale
in class AbstractObservableMap
public void dispose()
IObservable
dispose
in interface IObservable
dispose
in class AbstractObservableMap
|
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.