Top Description Inners Fields Constructors Methods
com.sun.javafx.collections

public Class ObservableMapWrapper<K, V>

extends Object
implements ObservableMap<K, V>
Class Inheritance
All Implemented Interfaces
javafx.collections.ObservableMap, javafx.beans.Observable, java.util.Map
Imports
javafx.beans.InvalidationListener, javafx.collections.MapChangeListener, .ObservableMap, java.util.Collection, .Iterator, .Map, .Set

A Map wrapper class that implements observability.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
private class
private class
private class
private class

Field Summary

Modifier and TypeField and Description
private final Map<K, V>
private ObservableMapWrapper<K, V>.ObservableEntrySet
private ObservableMapWrapper<K, V>.ObservableKeySet
private MapListenerHelper<K, V>
private ObservableMapWrapper<K, V>.ObservableValues

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addListener(InvalidationListener listener)

Implements javafx.beans.Observable.addListener.

Adds an InvalidationListener which will be notified whenever the Observable becomes invalid.

public void
addListener(MapChangeListener<? super K, ? super V> observer)

Implements javafx.collections.ObservableMap.addListener.

Add a listener to this observable map.

protected void
public void
clear()

Implements java.util.Map.clear.

Removes all of the mappings from this map (optional operation).

public boolean
containsKey(Object key)

Implements java.util.Map.containsKey.

Returns true if this map contains a mapping for the specified key.

public boolean
containsValue(Object value)

Implements java.util.Map.containsValue.

Returns true if this map maps one or more keys to the specified value.

public Set<Map.Entry<K, V>>
entrySet()

Implements java.util.Map.entrySet.

Returns a Set view of the mappings contained in this map.

public boolean
equals(Object obj)

Overrides java.lang.Object.equals.

Implements java.util.Map.equals.

Compares the specified object with this map for equality.

public V
get(Object key)

Implements java.util.Map.get.

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

public int
hashCode()

Overrides java.lang.Object.hashCode.

Implements java.util.Map.hashCode.

Returns the hash code value for this map.

public boolean
isEmpty()

Implements java.util.Map.isEmpty.

Returns true if this map contains no key-value mappings.

public Set<K>
keySet()

Implements java.util.Map.keySet.

Returns a Set view of the keys contained in this map.

public V
put(K key, V value)

Implements java.util.Map.put.

Associates the specified value with the specified key in this map (optional operation).

public void
putAll(Map<? extends K, ? extends V> m)

Implements java.util.Map.putAll.

Copies all of the mappings from the specified map to this map (optional operation).

public V
remove(Object key)

Implements java.util.Map.remove.

Removes the mapping for a key from this map if it is present (optional operation).

public void
removeListener(InvalidationListener listener)

Implements javafx.beans.Observable.removeListener.

Removes the given listener from the list of listeners, that are notified whenever the value of the Observable becomes invalid.

public void
removeListener(MapChangeListener<? super K, ? super V> observer)

Implements javafx.collections.ObservableMap.removeListener.

Tries to removed a listener from this observable map.

public int
size()

Implements java.util.Map.size.

Returns the number of key-value mappings in this map.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

public Collection<V>
values()

Implements java.util.Map.values.

Returns a Collection view of the values contained in this map.

Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait