K
- The key type of the wrapped ObservableMap
.V
- The value type of the wrapped ObservableMap
.public class SimpleMapPropertyEx<K,V>
extends javafx.beans.property.SimpleMapProperty<K,V>
SimpleMapProperty
to fix the following JavaFX
issues:
bindBidirectional(Property)
and
unbindBidirectional(Property)
, which relied on the wrong
implementation.Constructor and Description |
---|
SimpleMapPropertyEx()
Creates a new unnamed
SimpleMapPropertyEx . |
SimpleMapPropertyEx(java.lang.Object bean,
java.lang.String name)
Constructs a new
SimpleMapPropertyEx for the given bean and with
the given name. |
SimpleMapPropertyEx(java.lang.Object bean,
java.lang.String name,
javafx.collections.ObservableMap<K,V> initialValue)
Constructs a new
SimpleMapPropertyEx for the given bean and with
the given name and initial value. |
SimpleMapPropertyEx(javafx.collections.ObservableMap<K,V> initialValue)
Constructs a new unnamed
SimpleMapPropertyEx that is not related
to a bean, with the given initial value. |
Modifier and Type | Method and Description |
---|---|
void |
addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K,V>> listener) |
void |
addListener(javafx.beans.InvalidationListener listener) |
void |
addListener(javafx.collections.MapChangeListener<? super K,? super V> listener) |
void |
bindBidirectional(javafx.beans.property.Property<javafx.collections.ObservableMap<K,V>> other) |
boolean |
equals(java.lang.Object other) |
protected void |
fireValueChangedEvent() |
protected void |
fireValueChangedEvent(javafx.collections.MapChangeListener.Change<? extends K,? extends V> change) |
int |
hashCode() |
void |
removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K,V>> listener) |
void |
removeListener(javafx.beans.InvalidationListener listener) |
void |
removeListener(javafx.collections.MapChangeListener<? super K,? super V> listener) |
void |
unbindBidirectional(javafx.beans.property.Property<javafx.collections.ObservableMap<K,V>> other) |
bind, emptyProperty, get, invalidated, isBound, set, sizeProperty, toString, unbind
bindContent, bindContentBidirectional, unbindContent, unbindContentBidirectional
asString, clear, containsKey, containsValue, entrySet, get, getSize, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, keySet, mapExpression, put, putAll, remove, size, valueAt, valueAt, values
public SimpleMapPropertyEx()
SimpleMapPropertyEx
.public SimpleMapPropertyEx(java.lang.Object bean, java.lang.String name)
SimpleMapPropertyEx
for the given bean and with
the given name.bean
- The bean this property is related to.name
- The name of the property.public SimpleMapPropertyEx(java.lang.Object bean, java.lang.String name, javafx.collections.ObservableMap<K,V> initialValue)
SimpleMapPropertyEx
for the given bean and with
the given name and initial value.bean
- The bean this property is related to.name
- The name of the property.initialValue
- The initial value of the propertypublic SimpleMapPropertyEx(javafx.collections.ObservableMap<K,V> initialValue)
SimpleMapPropertyEx
that is not related
to a bean, with the given initial value.initialValue
- The initial value of the propertypublic void addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K,V>> listener)
public void addListener(javafx.beans.InvalidationListener listener)
public void addListener(javafx.collections.MapChangeListener<? super K,? super V> listener)
public void bindBidirectional(javafx.beans.property.Property<javafx.collections.ObservableMap<K,V>> other)
public boolean equals(java.lang.Object other)
protected void fireValueChangedEvent()
protected void fireValueChangedEvent(javafx.collections.MapChangeListener.Change<? extends K,? extends V> change)
public int hashCode()
public void removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableMap<K,V>> listener)
public void removeListener(javafx.beans.InvalidationListener listener)
public void removeListener(javafx.collections.MapChangeListener<? super K,? super V> listener)
Copyright (c) 2014 itemis AG and others. All rights reserved.