- 
- All Superinterfaces:
- Map<K,V>,- Observable
 - All Known Subinterfaces:
- ObservableMapValue<K,V>,- WritableMapValue<K,V>
 - All Known Implementing Classes:
- MapBinding,- MapExpression,- MapProperty,- MapPropertyBase,- ReadOnlyMapProperty,- ReadOnlyMapPropertyBase,- ReadOnlyMapWrapper,- SimpleMapProperty
 
 public interface ObservableMap<K,V> extends Map<K,V>, Observable A map that allows observers to track changes when they occur.- Since:
- JavaFX 2.0
- See Also:
- MapChangeListener,- MapChangeListener.Change
 
- 
- 
Method SummaryModifier and Type Method Description voidaddListener(MapChangeListener<? super K,? super V> listener)Add a listener to this observable map.voidremoveListener(MapChangeListener<? super K,? super V> listener)Tries to removed a listener from this observable map.- 
Methods inherited from interface java.util.Mapclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
 - 
Methods inherited from interface javafx.beans.ObservableaddListener, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
addListenervoid addListener(MapChangeListener<? super K,? super V> listener) Add a listener to this observable map.- Parameters:
- listener- the listener for listening to the list changes
 
 - 
removeListenervoid 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- a listener to remove
 
 
- 
 
-