Class SimpleSetPropertyEx<E>
- java.lang.Object
-
- javafx.beans.binding.SetExpression<E>
-
- javafx.beans.property.ReadOnlySetProperty<E>
-
- javafx.beans.property.SetProperty<E>
-
- javafx.beans.property.SetPropertyBase<E>
-
- javafx.beans.property.SimpleSetProperty<E>
-
- org.eclipse.gef.common.beans.property.SimpleSetPropertyEx<E>
-
- Type Parameters:
E
- The element type of theSimpleSetProperty
.
- All Implemented Interfaces:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Set<E>
,javafx.beans.Observable
,javafx.beans.property.Property<javafx.collections.ObservableSet<E>>
,javafx.beans.property.ReadOnlyProperty<javafx.collections.ObservableSet<E>>
,javafx.beans.value.ObservableObjectValue<javafx.collections.ObservableSet<E>>
,javafx.beans.value.ObservableSetValue<E>
,javafx.beans.value.ObservableValue<javafx.collections.ObservableSet<E>>
,javafx.beans.value.WritableObjectValue<javafx.collections.ObservableSet<E>>
,javafx.beans.value.WritableSetValue<E>
,javafx.beans.value.WritableValue<javafx.collections.ObservableSet<E>>
,javafx.collections.ObservableSet<E>
public class SimpleSetPropertyEx<E> extends javafx.beans.property.SimpleSetProperty<E>
A replacement forSimpleSetProperty
to fix the following JavaFX issue:- Change notifications are fired even when the observed value did not change.(https://bugs.openjdk.java.net/browse/JDK-8089169)
-
-
Constructor Summary
Constructors Constructor Description SimpleSetPropertyEx()
Creates a new unnamedSimpleSetPropertyEx
.SimpleSetPropertyEx(java.lang.Object bean, java.lang.String name)
Constructs a newSimpleSetPropertyEx
for the given bean and with the given name.SimpleSetPropertyEx(java.lang.Object bean, java.lang.String name, javafx.collections.ObservableSet<E> initialValue)
Constructs a newSimpleSetPropertyEx
for the given bean and with the given name and initial value.SimpleSetPropertyEx(javafx.collections.ObservableSet<E> initialValue)
Constructs a new unnamedSimpleSetPropertyEx
that is not related to a bean, with the given initial value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(javafx.beans.InvalidationListener listener)
void
addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableSet<E>> listener)
void
addListener(javafx.collections.SetChangeListener<? super E> listener)
protected void
fireValueChangedEvent()
protected void
fireValueChangedEvent(javafx.collections.SetChangeListener.Change<? extends E> change)
int
hashCode()
void
removeListener(javafx.beans.InvalidationListener listener)
void
removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableSet<E>> listener)
void
removeListener(javafx.collections.SetChangeListener<? super E> listener)
-
Methods inherited from class javafx.beans.property.SetPropertyBase
bind, emptyProperty, get, invalidated, isBound, set, sizeProperty, toString, unbind
-
Methods inherited from class javafx.beans.property.SetProperty
bindBidirectional, setValue, unbindBidirectional
-
Methods inherited from class javafx.beans.property.ReadOnlySetProperty
bindContent, bindContentBidirectional, equals, unbindContent, unbindContentBidirectional
-
Methods inherited from class javafx.beans.binding.SetExpression
add, addAll, asString, clear, contains, containsAll, getSize, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, remove, removeAll, retainAll, setExpression, size, toArray, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Constructor Detail
-
SimpleSetPropertyEx
public SimpleSetPropertyEx()
Creates a new unnamedSimpleSetPropertyEx
.
-
SimpleSetPropertyEx
public SimpleSetPropertyEx(java.lang.Object bean, java.lang.String name)
Constructs a newSimpleSetPropertyEx
for the given bean and with the given name.- Parameters:
bean
- The bean this property is related to.name
- The name of the property.
-
SimpleSetPropertyEx
public SimpleSetPropertyEx(java.lang.Object bean, java.lang.String name, javafx.collections.ObservableSet<E> initialValue)
Constructs a newSimpleSetPropertyEx
for the given bean and with the given name and initial value.- Parameters:
bean
- The bean this property is related to.name
- The name of the property.initialValue
- The initial value of the property
-
SimpleSetPropertyEx
public SimpleSetPropertyEx(javafx.collections.ObservableSet<E> initialValue)
Constructs a new unnamedSimpleSetPropertyEx
that is not related to a bean, with the given initial value.- Parameters:
initialValue
- The initial value of the property
-
-
Method Detail
-
addListener
public void addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableSet<E>> listener)
-
addListener
public void addListener(javafx.beans.InvalidationListener listener)
- Specified by:
addListener
in interfacejavafx.beans.Observable
- Overrides:
addListener
in classjavafx.beans.property.SetPropertyBase<E>
-
addListener
public void addListener(javafx.collections.SetChangeListener<? super E> listener)
-
fireValueChangedEvent
protected void fireValueChangedEvent()
- Overrides:
fireValueChangedEvent
in classjavafx.beans.property.SetPropertyBase<E>
-
fireValueChangedEvent
protected void fireValueChangedEvent(javafx.collections.SetChangeListener.Change<? extends E> change)
- Overrides:
fireValueChangedEvent
in classjavafx.beans.property.SetPropertyBase<E>
-
hashCode
public int hashCode()
-
removeListener
public void removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableSet<E>> listener)
-
removeListener
public void removeListener(javafx.beans.InvalidationListener listener)
- Specified by:
removeListener
in interfacejavafx.beans.Observable
- Overrides:
removeListener
in classjavafx.beans.property.SetPropertyBase<E>
-
-