Top Description Methods
javafx.collections

public Interface ObservableMap<K, V>

extends Map<K, V>, Observable
Known Direct Subinterfaces
javafx.beans.value.ObservableMapValue, javafx.beans.value.WritableMapValue
Known Direct Implementers
com.sun.javafx.collections.ObservableMapWrapper, com.sun.javafx.collections.UnmodifiableObservableMap, javafx.collections.FXCollections.EmptyObservableMap, javafx.collections.FXCollections.CheckedObservableMap, javafx.collections.FXCollections.SynchronizedObservableMap
Type Parameters
<K>
the map key element type
<V>
the map value element type
Imports
java.util.Map, javafx.beans.Observable

A map that allows observers to track changes when they occur. Implementations can be created using methods in FXCollections such as observableHashMap, or with a SimpleMapProperty.
Since
JavaFX 2.0
See Also
MapChangeListener, MapChangeListener.Change

Method Summary

Modifier and TypeMethod and Description
public void
addListener(MapChangeListener<? super K, ? super V>
the listener for listening to the list changes
listener
)

Add a listener to this observable map.

public void
removeListener(MapChangeListener<? super K, ? super V>
a listener to remove
listener
)

Tries to removed a listener from this observable map.

Inherited from java.util.Map:
clearcomputecomputeIfAbsentcomputeIfPresentcontainsKeycontainsValuecopyOfentryentrySetequalsforEachgetgetOrDefaulthashCodeisEmptykeySetmergeofofofofofofofofofofofofEntriesputputAllputIfAbsentremoveremovereplacereplacereplaceAllsizevalues
Inherited from javafx.beans.Observable:
addListenerremoveListenersubscribe

Method Detail

addListenerback to summary
public void addListener(MapChangeListener<? super K, ? super V> listener)

Add a listener to this observable map.

Parameters
listener:MapChangeListener<? super K, ? super V>

the listener for listening to the list changes

removeListenerback to summary
public void removeListener(MapChangeListener<? super K, ? super V> listener)

Tries to removed a listener from this observable map. If the listener is not attached to this map, nothing happens.

Parameters
listener:MapChangeListener<? super K, ? super V>

a listener to remove