Spec-Zone.ru › OpenJavaFX 8
javafx.collections

Interface ObservableMap<K,V>

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

  • Nested Class Summary

    • Nested classes/interfaces inherited from interface java.util.Map

      Map.Entry<K,V>
  • Method Summary

    All MethodsInstance MethodsAbstract Methods
    Modifier and Type Method and Description
    void addListener(MapChangeListener<? super K,? super V> listener)
    Add a listener to this observable map.
    void removeListener(MapChangeListener<? super K,? super V> listener)
    Tries to removed a listener from this observable list.
    • Methods inherited from interface java.util.Map

      clear, 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.Observable

      addListener, removeListener
  • Method Detail

    • addListener

      void addListener(MapChangeListener<? super K,? super V> listener)
      Add a listener to this observable map.

      Parameters:

      listener - the listener for listening to the list changes

    • removeListener

      void removeListener(MapChangeListener<? super K,? super V> listener)
      Tries to removed a listener from this observable list. If the listener is not attached to this list, nothing happens.

      Parameters:

      listener - a listener to remove

© 2008, 2025, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from JavaFX API Documentation.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Java, JavaFX and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API