Class SimpleListPropertyEx<E>
java.lang.Object
javafx.beans.binding.ListExpression<E>
javafx.beans.property.ReadOnlyListProperty<E>
javafx.beans.property.ListProperty<E>
javafx.beans.property.ListPropertyBase<E>
javafx.beans.property.SimpleListProperty<E>
org.eclipse.gef.common.beans.property.SimpleListPropertyEx<E>
- Type Parameters:
E- The element type of theSimpleListProperty.
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>,javafx.beans.Observable,javafx.beans.property.Property<javafx.collections.ObservableList<E>>,javafx.beans.property.ReadOnlyProperty<javafx.collections.ObservableList<E>>,javafx.beans.value.ObservableListValue<E>,javafx.beans.value.ObservableObjectValue<javafx.collections.ObservableList<E>>,javafx.beans.value.ObservableValue<javafx.collections.ObservableList<E>>,javafx.beans.value.WritableListValue<E>,javafx.beans.value.WritableObjectValue<javafx.collections.ObservableList<E>>,javafx.beans.value.WritableValue<javafx.collections.ObservableList<E>>,javafx.collections.ObservableList<E>
public class SimpleListPropertyEx<E>
extends javafx.beans.property.SimpleListProperty<E>
A replacement for
SimpleListProperty 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)
-
Property Summary
Properties inherited from class javafx.beans.property.ListPropertyBase
empty, size -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new unnamedSimpleListPropertyEx.SimpleListPropertyEx(Object bean, String name) Constructs a newSimpleListPropertyExfor the given bean and with the given name.SimpleListPropertyEx(Object bean, String name, javafx.collections.ObservableList<E> initialValue) Constructs a newSimpleListPropertyExfor the given bean and with the given name and initial value.SimpleListPropertyEx(javafx.collections.ObservableList<E> initialValue) Constructs a new unnamedSimpleListPropertyExthat is not related to a bean, with the given initial value. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(javafx.beans.InvalidationListener listener) voidaddListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableList<E>> listener) voidaddListener(javafx.collections.ListChangeListener<? super E> listener) protected voidprotected voidfireValueChangedEvent(javafx.collections.ListChangeListener.Change<? extends E> change) inthashCode()voidremoveListener(javafx.beans.InvalidationListener listener) voidremoveListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableList<E>> listener) voidremoveListener(javafx.collections.ListChangeListener<? super E> listener) Methods inherited from class javafx.beans.property.SimpleListProperty
getBean, getNameMethods inherited from class javafx.beans.property.ListPropertyBase
bind, emptyProperty, get, invalidated, isBound, set, sizeProperty, toString, unbindMethods inherited from class javafx.beans.property.ListProperty
bindBidirectional, setValue, unbindBidirectionalMethods inherited from class javafx.beans.property.ReadOnlyListProperty
bindContent, bindContentBidirectional, equals, unbindContent, unbindContentBidirectionalMethods inherited from class javafx.beans.binding.ListExpression
add, add, addAll, addAll, addAll, asString, clear, contains, containsAll, get, getSize, getValue, indexOf, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, lastIndexOf, listExpression, listIterator, listIterator, remove, remove, remove, removeAll, removeAll, retainAll, retainAll, set, setAll, setAll, size, subList, toArray, toArray, valueAt, valueAtMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArrayMethods inherited from interface javafx.collections.ObservableList
addAll, filtered, remove, removeAll, retainAll, setAll, setAll, sorted, sortedMethods inherited from interface javafx.beans.value.ObservableValue
getValueMethods inherited from interface javafx.beans.value.WritableValue
getValue
-
Constructor Details
-
SimpleListPropertyEx
public SimpleListPropertyEx()Creates a new unnamedSimpleListPropertyEx. -
SimpleListPropertyEx
Constructs a newSimpleListPropertyExfor the given bean and with the given name.- Parameters:
bean- The bean this property is related to.name- The name of the property.
-
SimpleListPropertyEx
public SimpleListPropertyEx(Object bean, String name, javafx.collections.ObservableList<E> initialValue) Constructs a newSimpleListPropertyExfor 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
-
SimpleListPropertyEx
Constructs a new unnamedSimpleListPropertyExthat is not related to a bean, with the given initial value.- Parameters:
initialValue- The initial value of the property
-
-
Method Details
-
addListener
public void addListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableList<E>> listener) -
addListener
public void addListener(javafx.beans.InvalidationListener listener) - Specified by:
addListenerin interfacejavafx.beans.Observable- Overrides:
addListenerin classjavafx.beans.property.ListPropertyBase<E>
-
addListener
-
fireValueChangedEvent
protected void fireValueChangedEvent()- Overrides:
fireValueChangedEventin classjavafx.beans.property.ListPropertyBase<E>
-
fireValueChangedEvent
protected void fireValueChangedEvent(javafx.collections.ListChangeListener.Change<? extends E> change) - Overrides:
fireValueChangedEventin classjavafx.beans.property.ListPropertyBase<E>
-
hashCode
public int hashCode() -
removeListener
public void removeListener(javafx.beans.value.ChangeListener<? super javafx.collections.ObservableList<E>> listener) -
removeListener
public void removeListener(javafx.beans.InvalidationListener listener) - Specified by:
removeListenerin interfacejavafx.beans.Observable- Overrides:
removeListenerin classjavafx.beans.property.ListPropertyBase<E>
-
removeListener
-