public class BidiObservableMap extends DecoratingObservableMap
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.
| Constructor and Description |
|---|
BidiObservableMap(IObservableMap wrappedMap)
Constructs a BidirectionalMap tracking the given observable map.
|
| Modifier and Type | Method and Description |
|---|---|
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) |
addMapChangeListener, clear, containsKey, entrySet, equals, fireChange, fireMapChange, get, getKeyType, getValueType, hashCode, isEmpty, keySet, put, putAll, remove, removeMapChangeListener, size, toString, valuesgetDecorated, getterCalled, handleStaleEvent, isStaleaddChangeListener, addDisposeListener, addStaleListener, checkRealm, fireStale, isDisposed, removeChangeListener, removeDisposeListener, removeStaleListenerfinalize, getClass, notify, notifyAll, wait, wait, waitaddChangeListener, addDisposeListener, addStaleListener, getRealm, isDisposed, isStale, removeChangeListener, removeDisposeListener, removeStaleListenerpublic BidiObservableMap(IObservableMap wrappedMap)
wrappedMap - the observable map to trackprotected void firstListenerAdded()
firstListenerAdded in class DecoratingObservableMapprotected void lastListenerRemoved()
lastListenerRemoved in class DecoratingObservableMapprotected void handleMapChange(MapChangeEvent event)
DecoratingObservableMaphandleMapChange in class DecoratingObservableMapevent - the change event received from the decorated observablepublic boolean containsValue(Object value)
containsValue in interface MapcontainsValue in interface IObservableMapcontainsValue in class DecoratingObservableMappublic Set getKeys(Object value)
value - the value associated with the keys in the returned Set.public void dispose()
IObservabledispose in interface IObservabledispose in class DecoratingObservableMapprotected 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 ObjectCloneNotSupportedException
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.