public class DecoratingObservableMap extends DecoratingObservable implements IObservableMap
| Constructor and Description |
|---|
DecoratingObservableMap(IObservableMap decorated,
boolean disposeDecoratedOnDispose)
Constructs a DecoratingObservableMap which decorates the given
observable.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addListener(Object listenerType,
IObservablesListener listener) |
void |
addMapChangeListener(IMapChangeListener listener) |
void |
clear() |
protected Object |
clone() |
boolean |
containsKey(Object key) |
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.
|
Set |
entrySet() |
boolean |
equals(Object obj) |
protected void |
fireChange() |
protected void |
fireEvent(ObservableEvent event) |
protected void |
fireMapChange(MapDiff diff) |
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. |
Realm |
getRealm() |
Object |
getValueType()
Returns the element type for the
values of this
observable map, or null if the values collection is untyped. |
protected void |
handleMapChange(MapChangeEvent event)
Called whenever a MapChangeEvent is received from the decorated
observable.
|
int |
hashCode() |
protected boolean |
hasListeners() |
boolean |
isEmpty() |
Set |
keySet() |
protected void |
lastListenerRemoved() |
Object |
put(Object key,
Object value) |
void |
putAll(Map m) |
Object |
remove(Object key) |
protected void |
removeListener(Object listenerType,
IObservablesListener listener) |
void |
removeMapChangeListener(IMapChangeListener listener) |
int |
size() |
String |
toString() |
Collection |
values() |
getDecorated, 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 DecoratingObservableMap(IObservableMap decorated, boolean disposeDecoratedOnDispose)
decorated - the observable map being decorateddisposeDecoratedOnDispose - public void addMapChangeListener(IMapChangeListener listener)
addMapChangeListener in interface IObservableMappublic void removeMapChangeListener(IMapChangeListener listener)
removeMapChangeListener in interface IObservableMappublic Object getKeyType()
IObservableMapkeyset of this
observable map, or null if the keyset is untyped.getKeyType in interface IObservableMapkeyset 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 IObservableMapvalues of this
observable map, or null if the values collection is
untyped.protected void fireMapChange(MapDiff diff)
protected void fireChange()
fireChange in class AbstractObservableprotected void firstListenerAdded()
firstListenerAdded in class DecoratingObservableprotected void lastListenerRemoved()
lastListenerRemoved in class DecoratingObservableprotected void handleMapChange(MapChangeEvent event)
event - the change event received from the decorated observablepublic boolean containsKey(Object key)
containsKey in interface MapcontainsKey in interface IObservableMappublic boolean containsValue(Object value)
containsValue in interface MapcontainsValue in interface IObservableMappublic Set entrySet()
entrySet in interface MapentrySet in interface IObservableMappublic Object get(Object key)
get in interface Mapget in interface IObservableMappublic boolean isEmpty()
isEmpty in interface MapisEmpty in interface IObservableMappublic Set keySet()
keySet in interface MapkeySet in interface IObservableMappublic Object put(Object key, Object value)
put in interface Mapput in interface IObservableMappublic Object remove(Object key)
remove in interface Mapremove in interface IObservableMappublic int size()
size in interface Mapsize in interface IObservableMappublic Collection values()
values in interface Mapvalues in interface IObservableMappublic boolean equals(Object obj)
equals in interface Mapequals in interface IObservableMapequals in class DecoratingObservablepublic int hashCode()
hashCode in interface MaphashCode in interface IObservableMaphashCode in class DecoratingObservablepublic void dispose()
IObservabledispose in interface IObservabledispose in class DecoratingObservableprotected 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.