|
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 |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
DecoratingObservableMap(IObservableMap decorated,
boolean disposeDecoratedOnDispose)
Constructs a DecoratingObservableMap which decorates the given observable. |
Method Summary | |
---|---|
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 o)
|
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()
|
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 IObservableMap
public void removeMapChangeListener(IMapChangeListener listener)
removeMapChangeListener
in interface IObservableMap
public Object getKeyType()
IObservableMap
keyset
of this
observable map, or null
if the keyset is untyped.
getKeyType
in interface IObservableMap
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
values
of this
observable map, or null
if the values collection is
untyped.protected void fireMapChange(MapDiff diff)
protected void fireChange()
fireChange
in class AbstractObservable
protected void firstListenerAdded()
firstListenerAdded
in class DecoratingObservable
protected void lastListenerRemoved()
lastListenerRemoved
in class DecoratingObservable
protected void handleMapChange(MapChangeEvent event)
event
- the change event received from the decorated observablepublic void clear()
clear
in interface Map
public boolean containsKey(Object key)
containsKey
in interface Map
containsKey
in interface IObservableMap
public boolean containsValue(Object value)
containsValue
in interface Map
containsValue
in interface IObservableMap
public Set entrySet()
entrySet
in interface Map
entrySet
in interface IObservableMap
public Object get(Object key)
get
in interface Map
get
in interface IObservableMap
public boolean isEmpty()
isEmpty
in interface Map
isEmpty
in interface IObservableMap
public Set keySet()
keySet
in interface Map
keySet
in interface IObservableMap
public Object put(Object key, Object value)
put
in interface Map
put
in interface IObservableMap
public void putAll(Map m)
putAll
in interface Map
public Object remove(Object key)
remove
in interface Map
remove
in interface IObservableMap
public int size()
size
in interface Map
size
in interface IObservableMap
public Collection values()
values
in interface Map
values
in interface IObservableMap
public boolean equals(Object o)
equals
in interface Map
equals
in interface IObservableMap
equals
in class DecoratingObservable
public int hashCode()
hashCode
in interface Map
hashCode
in interface IObservableMap
hashCode
in class DecoratingObservable
public String toString()
toString
in class Object
public void dispose()
IObservable
dispose
in interface IObservable
dispose
in class DecoratingObservable
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.