|
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.observable.AbstractObservable
org.eclipse.core.databinding.observable.DecoratingObservable
org.eclipse.core.databinding.observable.map.DecoratingObservableMap
org.eclipse.core.databinding.observable.map.BidiObservableMap
public class BidiObservableMap
An
This class is thread safe. All state accessing methods must be invoked from
the current realm
. Methods for adding and removing
listeners may be invoked from any thread.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
BidiObservableMap(IObservableMap wrappedMap)
Constructs a BidirectionalMap tracking the given observable map. |
Method Summary | |
---|---|
protected void |
addListener(Object listenerType,
IObservablesListener listener)
|
protected Object |
clone()
|
boolean |
containsValue(Object value)
|
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 void |
fireEvent(ObservableEvent event)
|
protected void |
firstListenerAdded()
|
Set |
getKeys(Object value)
Returns the Set of keys that currently map to the given value. |
Realm |
getRealm()
|
protected void |
handleMapChange(MapChangeEvent event)
Called whenever a MapChangeEvent is received from the decorated observable. |
protected boolean |
hasListeners()
|
protected void |
lastListenerRemoved()
|
protected void |
removeListener(Object listenerType,
IObservablesListener listener)
|
Methods inherited from class org.eclipse.core.databinding.observable.map.DecoratingObservableMap |
---|
addMapChangeListener, clear, containsKey, entrySet, equals, fireChange, fireMapChange, get, getKeyType, getValueType, hashCode, isEmpty, keySet, put, putAll, remove, removeMapChangeListener, size, toString, values |
Methods inherited from class org.eclipse.core.databinding.observable.DecoratingObservable |
---|
getDecorated, getterCalled, handleStaleEvent, isStale |
Methods inherited from class org.eclipse.core.databinding.observable.AbstractObservable |
---|
addChangeListener, addDisposeListener, addStaleListener, checkRealm, fireStale, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListener |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.core.databinding.observable.IObservable |
---|
addChangeListener, addDisposeListener, addStaleListener, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListener |
Constructor Detail |
---|
public BidiObservableMap(IObservableMap wrappedMap)
wrappedMap
- the observable map to trackMethod Detail |
---|
protected void firstListenerAdded()
firstListenerAdded
in class DecoratingObservableMap
protected void lastListenerRemoved()
lastListenerRemoved
in class DecoratingObservableMap
protected void handleMapChange(MapChangeEvent event)
DecoratingObservableMap
handleMapChange
in class DecoratingObservableMap
event
- the change event received from the decorated observablepublic boolean containsValue(Object value)
containsValue
in interface Map
containsValue
in interface IObservableMap
containsValue
in class DecoratingObservableMap
public Set getKeys(Object value)
value
- the value associated with the keys in the returned Set.
public void dispose()
IObservable
dispose
in interface IObservable
dispose
in class DecoratingObservableMap
protected void addListener(Object listenerType, IObservablesListener listener)
listenerType
- listener
- protected void removeListener(Object listenerType, IObservablesListener listener)
listenerType
- listener
- protected boolean hasListeners()
protected void fireEvent(ObservableEvent event)
public Realm getRealm()
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
|
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.