Class ReadOnlyMapWrapperEx<K,V> 
java.lang.Object
javafx.beans.binding.MapExpression<K,V>
 
javafx.beans.property.ReadOnlyMapProperty<K,V>
 
javafx.beans.property.MapProperty<K,V>
 
javafx.beans.property.MapPropertyBase<K,V>
 
javafx.beans.property.SimpleMapProperty<K,V>
 
javafx.beans.property.ReadOnlyMapWrapper<K,V>
 
org.eclipse.gef.common.beans.property.ReadOnlyMapWrapperEx<K,V> 
- Type Parameters:
- K- The key type of the wrapped- ObservableMap.
- V- The value type of the wrapped- ObservableMap.
- All Implemented Interfaces:
- Map<K,,- V> - javafx.beans.Observable,- javafx.beans.property.Property<javafx.collections.ObservableMap<K,,- V>> - javafx.beans.property.ReadOnlyProperty<javafx.collections.ObservableMap<K,,- V>> - javafx.beans.value.ObservableMapValue<K,,- V> - javafx.beans.value.ObservableObjectValue<javafx.collections.ObservableMap<K,,- V>> - javafx.beans.value.ObservableValue<javafx.collections.ObservableMap<K,,- V>> - javafx.beans.value.WritableMapValue<K,,- V> - javafx.beans.value.WritableObjectValue<javafx.collections.ObservableMap<K,,- V>> - javafx.beans.value.WritableValue<javafx.collections.ObservableMap<K,,- V>> - javafx.collections.ObservableMap<K,- V> 
public class ReadOnlyMapWrapperEx<K,V> 
extends javafx.beans.property.ReadOnlyMapWrapper<K,V> 
A replacement for 
ReadOnlyMapWrapper to fix the following JavaFX
 issues:
 - All listeners were removed when removing one (https://bugs.openjdk.java.net/browse/JDK-8136465): fixed by keeping track of all listeners and ensuring that remaining listeners are re-added when a listener is removed.
- Change notifications are fired even when the observed value did not change.(https://bugs.openjdk.java.net/browse/JDK-8089169)
- Bidirectional binding not working (https://bugs.openjdk.java.net/browse/JDK-8089557): fixed by not forwarding listeners to the nested read-only property but rather keeping the lists of listeners distinct.
- 
Property SummaryProperties inherited from class javafx.beans.property.MapPropertyBaseempty, size
- 
Nested Class Summary
- 
Constructor SummaryConstructorsConstructorDescriptionThe constructor ofReadOnlyMapWrapperExReadOnlyMapWrapperEx(Object bean, String name) The constructor ofReadOnlyMapWrapperExReadOnlyMapWrapperEx(Object bean, String name, javafx.collections.ObservableMap<K, V> initialValue) The constructor ofReadOnlyMapWrapperExReadOnlyMapWrapperEx(javafx.collections.ObservableMap<K, V> initialValue) The constructor ofReadOnlyMapWrapperEx
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddListener(javafx.beans.InvalidationListener listener) voidaddListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K, V>> listener) voidaddListener(javafx.collections.MapChangeListener<? super K, ? super V> listener) protected voidprotected voidfireValueChangedEvent(javafx.collections.MapChangeListener.Change<? extends K, ? extends V> change) Returns the readonly property, that is synchronized with thisReadOnlyMapWrapper.inthashCode()voidremoveListener(javafx.beans.InvalidationListener listener) voidremoveListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K, V>> listener) voidremoveListener(javafx.collections.MapChangeListener<? super K, ? super V> listener) Methods inherited from class javafx.beans.property.SimpleMapPropertygetBean, getNameMethods inherited from class javafx.beans.property.MapPropertyBasebind, emptyProperty, get, invalidated, isBound, set, sizeProperty, toString, unbindMethods inherited from class javafx.beans.property.MapPropertybindBidirectional, setValue, unbindBidirectionalMethods inherited from class javafx.beans.property.ReadOnlyMapPropertybindContent, bindContentBidirectional, equals, unbindContent, unbindContentBidirectionalMethods inherited from class javafx.beans.binding.MapExpressionasString, clear, containsKey, containsValue, entrySet, get, getSize, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, keySet, mapExpression, put, putAll, remove, size, valueAt, valueAt, valuesMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Mapclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from interface javafx.beans.value.ObservableValuegetValueMethods inherited from interface javafx.beans.value.WritableValuegetValue
- 
Constructor Details- 
ReadOnlyMapWrapperExpublic ReadOnlyMapWrapperEx()The constructor ofReadOnlyMapWrapperEx
- 
ReadOnlyMapWrapperExThe constructor ofReadOnlyMapWrapperEx- Parameters:
- bean- the bean of this- ReadOnlyMapWrapperEx
- name- the name of this- ReadOnlyMapWrapperEx
 
- 
ReadOnlyMapWrapperExpublic ReadOnlyMapWrapperEx(Object bean, String name, javafx.collections.ObservableMap<K, V> initialValue) The constructor ofReadOnlyMapWrapperEx- Parameters:
- bean- the bean of this- ReadOnlyMapWrapperEx
- name- the name of this- ReadOnlyMapWrapperEx
- initialValue- the initial value of the wrapped value
 
- 
ReadOnlyMapWrapperExThe constructor ofReadOnlyMapWrapperEx- Parameters:
- initialValue- the initial value of the wrapped value
 
 
- 
- 
Method Details- 
addListener
- 
addListenerpublic void addListener(javafx.beans.InvalidationListener listener) 
- 
addListener
- 
fireValueChangedEventprotected void fireValueChangedEvent()
- 
fireValueChangedEvent
- 
getReadOnlyPropertyReturns the readonly property, that is synchronized with thisReadOnlyMapWrapper.
- 
hashCodepublic int hashCode()
- 
removeListener
- 
removeListenerpublic void removeListener(javafx.beans.InvalidationListener listener) 
- 
removeListener
 
-