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 TypeMethodDescriptionvoid
addListener
(InvalidationListener listener) void
addListener
(ChangeListener<? super ObservableList<E>> listener) void
addListener
(ListChangeListener<? super E> listener) protected void
protected void
fireValueChangedEvent
(ListChangeListener.Change<? extends E> change) int
hashCode()
void
removeListener
(InvalidationListener listener) void
removeListener
(ChangeListener<? super ObservableList<E>> listener) void
removeListener
(ListChangeListener<? super E> listener) Methods inherited from class javafx.beans.property.ReadOnlyListProperty
bindContent, bindContentBidirectional, equals, toString, unbindContent, unbindContentBidirectional
Methods 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, valueAt
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
Methods inherited from interface javafx.collections.ObservableList
filtered, sorted, sorted
Methods inherited from interface javafx.beans.value.ObservableObjectValue
get
Methods inherited from interface javafx.beans.value.ObservableValue
getValue
Methods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getName
-
Constructor Details
-
ReadOnlyListPropertyBaseEx
public ReadOnlyListPropertyBaseEx()
-
-
Method Details
-
addListener
- Specified by:
addListener
in interfaceObservableValue<E>
- Overrides:
addListener
in classReadOnlyListPropertyBase<E>
-
addListener
- Specified by:
addListener
in interfaceObservable
- Overrides:
addListener
in classReadOnlyListPropertyBase<E>
-
addListener
- Specified by:
addListener
in interfaceObservableList<E>
- Overrides:
addListener
in classReadOnlyListPropertyBase<E>
-
fireValueChangedEvent
protected void fireValueChangedEvent()- Overrides:
fireValueChangedEvent
in classReadOnlyListPropertyBase<E>
-
fireValueChangedEvent
- Overrides:
fireValueChangedEvent
in classReadOnlyListPropertyBase<E>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<E>
- Specified by:
hashCode
in interfaceList<E>
- Overrides:
hashCode
in classReadOnlyListProperty<E>
-
removeListener
- Specified by:
removeListener
in interfaceObservableValue<E>
- Overrides:
removeListener
in classReadOnlyListPropertyBase<E>
-
removeListener
- Specified by:
removeListener
in interfaceObservable
- Overrides:
removeListener
in classReadOnlyListPropertyBase<E>
-
removeListener
- Specified by:
removeListener
in interfaceObservableList<E>
- Overrides:
removeListener
in classReadOnlyListPropertyBase<E>
-