|
Eclipse Platform Release 3.4 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.core.databinding.observable.ChangeManager
org.eclipse.core.databinding.observable.AbstractObservable
org.eclipse.core.databinding.observable.map.ObservableMap
org.eclipse.core.databinding.observable.map.WritableMap
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 inherited from class java.util.Map |
Map.Entry |
Field Summary |
Fields inherited from class org.eclipse.core.databinding.observable.map.ObservableMap |
wrappedMap |
Constructor Summary | |
WritableMap()
Constructs a new WritableMap on the default realm. |
|
WritableMap(Realm realm)
Constructs a new WritableMap on the given realm. |
Method Summary | |
void |
clear()
Clears the map. |
Object |
put(Object key,
Object value)
Associates the provided value with the key . |
void |
putAll(Map map)
Adds the provided map 's contents to this map. |
Object |
remove(Object key)
Removes the value with the provide key . |
Methods inherited from class org.eclipse.core.databinding.observable.map.ObservableMap |
addMapChangeListener, containsKey, containsValue, dispose, entrySet, equals, fireMapChange, get, getterCalled, hashCode, isEmpty, isStale, keySet, removeMapChangeListener, setStale, size, values |
Methods inherited from class org.eclipse.core.databinding.observable.AbstractObservable |
addChangeListener, addListener, addStaleListener, checkRealm, fireChange, fireEvent, fireStale, firstListenerAdded, getRealm, hasListeners, lastListenerRemoved, removeChangeListener, removeListener, removeStaleListener |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.core.databinding.observable.IObservable |
addChangeListener, addStaleListener, getRealm, removeChangeListener, removeStaleListener |
Constructor Detail |
public WritableMap()
public WritableMap(Realm realm)
realm
- the realmMethod Detail |
public Object put(Object key, Object value)
value
with the key
. Must be invoked from the current realm.
put
in interface IObservableMap
put
in class ObservableMap
public Object remove(Object key)
key
. Must be invoked from the current realm.
remove
in interface IObservableMap
remove
in class ObservableMap
public void clear()
clear
in interface Map
clear
in class ObservableMap
public void putAll(Map map)
map
's contents to this map. Must be invoked from the current realm.
putAll
in interface Map
putAll
in class ObservableMap
|
Eclipse Platform Release 3.4 |
||||||||||
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, 2008. All rights reserved.