|
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
public class DecoratingObservableMap
An observable map which decorates another observable map.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
DecoratingObservableMap(IObservableMap decorated,
boolean disposeDecoratedOnDispose)
Constructs a DecoratingObservableMap which decorates the given observable. |
|
| Method Summary | |
|---|---|
protected void |
addListener(java.lang.Object listenerType,
IObservablesListener listener)
|
void |
addMapChangeListener(IMapChangeListener listener)
|
void |
clear()
|
protected java.lang.Object |
clone()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.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. |
java.util.Set |
entrySet()
|
boolean |
equals(java.lang.Object o)
|
protected void |
fireChange()
|
protected void |
fireEvent(ObservableEvent event)
|
protected void |
fireMapChange(MapDiff diff)
|
protected void |
firstListenerAdded()
|
java.lang.Object |
get(java.lang.Object key)
|
java.lang.Object |
getKeyType()
Returns the element type for the keyset of this
observable map, or null if the keyset is untyped. |
Realm |
getRealm()
|
java.lang.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()
|
java.util.Set |
keySet()
|
protected void |
lastListenerRemoved()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
void |
putAll(java.util.Map m)
|
java.lang.Object |
remove(java.lang.Object key)
|
protected void |
removeListener(java.lang.Object listenerType,
IObservablesListener listener)
|
void |
removeMapChangeListener(IMapChangeListener listener)
|
int |
size()
|
java.lang.String |
toString()
|
java.util.Collection |
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 DecoratingObservableMap(IObservableMap decorated,
boolean disposeDecoratedOnDispose)
decorated - the observable map being decorateddisposeDecoratedOnDispose - | Method Detail |
|---|
public void addMapChangeListener(IMapChangeListener listener)
addMapChangeListener in interface IObservableMappublic void removeMapChangeListener(IMapChangeListener listener)
removeMapChangeListener in interface IObservableMappublic java.lang.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 java.lang.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 void clear()
clear in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.MapcontainsKey in interface IObservableMappublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.MapcontainsValue in interface IObservableMappublic java.util.Set entrySet()
entrySet in interface java.util.MapentrySet in interface IObservableMappublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mapget in interface IObservableMappublic boolean isEmpty()
isEmpty in interface java.util.MapisEmpty in interface IObservableMappublic java.util.Set keySet()
keySet in interface java.util.MapkeySet in interface IObservableMap
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in interface IObservableMappublic void putAll(java.util.Map m)
putAll in interface java.util.Mappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mapremove in interface IObservableMappublic int size()
size in interface java.util.Mapsize in interface IObservableMappublic java.util.Collection values()
values in interface java.util.Mapvalues in interface IObservableMappublic boolean equals(java.lang.Object o)
equals in interface java.util.Mapequals in interface IObservableMapequals in class DecoratingObservablepublic int hashCode()
hashCode in interface java.util.MaphashCode in interface IObservableMaphashCode in class DecoratingObservablepublic java.lang.String toString()
toString in class java.lang.Objectpublic void dispose()
IObservable
dispose in interface IObservabledispose in class DecoratingObservable
protected void addListener(java.lang.Object listenerType,
IObservablesListener listener)
listenerType - listener -
protected void removeListener(java.lang.Object listenerType,
IObservablesListener listener)
listenerType - listener - protected boolean hasListeners()
protected void fireEvent(ObservableEvent event)
public Realm getRealm()
protected java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.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.