Class ReadOnlyListPropertyBaseEx<E>
java.lang.Object
javafx.beans.binding.ListExpression<E>
javafx.beans.property.ReadOnlyListProperty<E>
javafx.beans.property.ReadOnlyListPropertyBase<E>
org.eclipse.gef.common.beans.property.ReadOnlyListPropertyBaseEx<E>
- Type Parameters:
E- The element type of the wrappedObservableList.
- All Implemented Interfaces:
Iterable<E>,Collection<E>,List<E>,Observable,ReadOnlyProperty<ObservableList<E>>,ObservableListValue<E>,ObservableObjectValue<ObservableList<E>>,ObservableValue<ObservableList<E>>,ObservableList<E>
A replacement for
ReadOnlyListWrapper to fix the following JavaFX
issues:
- 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.binding.ListExpression
empty, size -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(InvalidationListener listener) voidaddListener(ChangeListener<? super ObservableList<E>> listener) voidaddListener(ListChangeListener<? super E> listener) protected voidprotected voidfireValueChangedEvent(ListChangeListener.Change<? extends E> change) inthashCode()voidremoveListener(InvalidationListener listener) voidremoveListener(ChangeListener<? super ObservableList<E>> listener) voidremoveListener(ListChangeListener<? super E> listener) Methods inherited from class javafx.beans.property.ReadOnlyListProperty
bindContent, bindContentBidirectional, equals, toString, unbindContent, unbindContentBidirectionalMethods inherited from class javafx.beans.binding.ListExpression
add, add, addAll, addAll, addAll, asString, clear, contains, containsAll, emptyProperty, 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, sizeProperty, 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
replaceAll, sort, spliteratorMethods inherited from interface javafx.collections.ObservableList
filtered, sorted, sortedMethods inherited from interface javafx.beans.value.ObservableObjectValue
getMethods inherited from interface javafx.beans.value.ObservableValue
getValueMethods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getName
-
Constructor Details
-
ReadOnlyListPropertyBaseEx
public ReadOnlyListPropertyBaseEx()
-
-
Method Details
-
addListener
- Specified by:
addListenerin interfaceObservableValue<E>- Overrides:
addListenerin classReadOnlyListPropertyBase<E>
-
addListener
- Specified by:
addListenerin interfaceObservable- Overrides:
addListenerin classReadOnlyListPropertyBase<E>
-
addListener
- Specified by:
addListenerin interfaceObservableList<E>- Overrides:
addListenerin classReadOnlyListPropertyBase<E>
-
fireValueChangedEvent
protected void fireValueChangedEvent()- Overrides:
fireValueChangedEventin classReadOnlyListPropertyBase<E>
-
fireValueChangedEvent
- Overrides:
fireValueChangedEventin classReadOnlyListPropertyBase<E>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<E>- Specified by:
hashCodein interfaceList<E>- Overrides:
hashCodein classReadOnlyListProperty<E>
-
removeListener
- Specified by:
removeListenerin interfaceObservableValue<E>- Overrides:
removeListenerin classReadOnlyListPropertyBase<E>
-
removeListener
- Specified by:
removeListenerin interfaceObservable- Overrides:
removeListenerin classReadOnlyListPropertyBase<E>
-
removeListener
- Specified by:
removeListenerin interfaceObservableList<E>- Overrides:
removeListenerin classReadOnlyListPropertyBase<E>
-