K
- The key type of the wrapped ObservableMap
.V
- The value type of the wrapped ObservableMap
.public class ReadOnlyMapWrapperEx<K,V> extends ReadOnlyMapWrapper<K,V>
ReadOnlyMapWrapper
to fix the following JavaFX
issues:
empty, size
Constructor and Description |
---|
ReadOnlyMapWrapperEx()
The constructor of
ReadOnlyMapWrapperEx |
ReadOnlyMapWrapperEx(Object bean,
String name)
The constructor of
ReadOnlyMapWrapperEx |
ReadOnlyMapWrapperEx(Object bean,
String name,
ObservableMap<K,V> initialValue)
The constructor of
ReadOnlyMapWrapperEx |
ReadOnlyMapWrapperEx(ObservableMap<K,V> initialValue)
The constructor of
ReadOnlyMapWrapperEx |
Modifier and Type | Method and Description |
---|---|
void |
addListener(ChangeListener<? super ObservableMap<K,V>> listener) |
void |
addListener(InvalidationListener listener) |
void |
addListener(MapChangeListener<? super K,? super V> listener) |
protected void |
fireValueChangedEvent() |
protected void |
fireValueChangedEvent(MapChangeListener.Change<? extends K,? extends V> change) |
ReadOnlyMapProperty<K,V> |
getReadOnlyProperty()
Returns the readonly property, that is synchronized with this
ReadOnlyMapWrapper . |
int |
hashCode() |
void |
removeListener(ChangeListener<? super ObservableMap<K,V>> listener) |
void |
removeListener(InvalidationListener listener) |
void |
removeListener(MapChangeListener<? super K,? super V> listener) |
getBean, getName
bind, emptyProperty, get, invalidated, isBound, set, sizeProperty, toString, unbind
bindBidirectional, setValue, unbindBidirectional
bindContent, bindContentBidirectional, equals, unbindContent, unbindContentBidirectional
asString, clear, containsKey, containsValue, entrySet, get, getSize, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, keySet, mapExpression, put, putAll, remove, size, valueAt, valueAt, values
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getValue
getValue
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public ReadOnlyMapWrapperEx()
ReadOnlyMapWrapperEx
public ReadOnlyMapWrapperEx(Object bean, String name)
ReadOnlyMapWrapperEx
bean
- the bean of this ReadOnlyMapWrapperEx
name
- the name of this ReadOnlyMapWrapperEx
public ReadOnlyMapWrapperEx(Object bean, String name, ObservableMap<K,V> initialValue)
ReadOnlyMapWrapperEx
bean
- the bean of this ReadOnlyMapWrapperEx
name
- the name of this ReadOnlyMapWrapperEx
initialValue
- the initial value of the wrapped valuepublic ReadOnlyMapWrapperEx(ObservableMap<K,V> initialValue)
ReadOnlyMapWrapperEx
initialValue
- the initial value of the wrapped valuepublic void addListener(ChangeListener<? super ObservableMap<K,V>> listener)
addListener
in interface ObservableValue<ObservableMap<K,V>>
addListener
in class MapPropertyBase<K,V>
public void addListener(InvalidationListener listener)
addListener
in interface Observable
addListener
in class MapPropertyBase<K,V>
public void addListener(MapChangeListener<? super K,? super V> listener)
addListener
in interface ObservableMap<K,V>
addListener
in class MapPropertyBase<K,V>
protected void fireValueChangedEvent()
fireValueChangedEvent
in class ReadOnlyMapWrapper<K,V>
protected void fireValueChangedEvent(MapChangeListener.Change<? extends K,? extends V> change)
fireValueChangedEvent
in class ReadOnlyMapWrapper<K,V>
public ReadOnlyMapProperty<K,V> getReadOnlyProperty()
ReadOnlyMapWrapper
.getReadOnlyProperty
in class ReadOnlyMapWrapper<K,V>
public int hashCode()
public void removeListener(ChangeListener<? super ObservableMap<K,V>> listener)
removeListener
in interface ObservableValue<ObservableMap<K,V>>
removeListener
in class MapPropertyBase<K,V>
public void removeListener(InvalidationListener listener)
removeListener
in interface Observable
removeListener
in class MapPropertyBase<K,V>
public void removeListener(MapChangeListener<? super K,? super V> listener)
removeListener
in interface ObservableMap<K,V>
removeListener
in class MapPropertyBase<K,V>
Copyright (c) 2014 itemis AG and others. All rights reserved.