Class ReadOnlySetPropertyBaseEx<E>
java.lang.Object
javafx.beans.binding.SetExpression<E>
javafx.beans.property.ReadOnlySetProperty<E>
javafx.beans.property.ReadOnlySetPropertyBase<E>
org.eclipse.gef.common.beans.property.ReadOnlySetPropertyBaseEx<E>
- Type Parameters:
E
- The element type of the wrappedObservableSet
.
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Set<E>
,Observable
,ReadOnlyProperty<ObservableSet<E>>
,ObservableObjectValue<ObservableSet<E>>
,ObservableSetValue<E>
,ObservableValue<ObservableSet<E>>
,ObservableSet<E>
A replacement for
ReadOnlySetWrapper
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.SetExpression
empty, size
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(InvalidationListener listener) void
addListener
(ChangeListener<? super ObservableSet<E>> listener) void
addListener
(SetChangeListener<? super E> listener) protected void
protected void
fireValueChangedEvent
(SetChangeListener.Change<? extends E> change) int
hashCode()
void
removeListener
(InvalidationListener listener) void
removeListener
(ChangeListener<? super ObservableSet<E>> listener) void
removeListener
(SetChangeListener<? super E> listener) Methods inherited from class javafx.beans.property.ReadOnlySetProperty
bindContent, bindContentBidirectional, equals, toString, unbindContent, unbindContentBidirectional
Methods inherited from class javafx.beans.binding.SetExpression
add, addAll, asString, clear, contains, containsAll, emptyProperty, getSize, getValue, isEmpty, isEqualTo, isNotEqualTo, isNotNull, isNull, iterator, remove, removeAll, retainAll, setExpression, size, sizeProperty, toArray, toArray
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 javafx.beans.value.ObservableObjectValue
get
Methods inherited from interface javafx.beans.value.ObservableValue
getValue
Methods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getName
Methods inherited from interface java.util.Set
spliterator
-
Constructor Details
-
ReadOnlySetPropertyBaseEx
public ReadOnlySetPropertyBaseEx()
-
-
Method Details
-
addListener
- Specified by:
addListener
in interfaceObservableValue<E>
- Overrides:
addListener
in classReadOnlySetPropertyBase<E>
-
addListener
- Specified by:
addListener
in interfaceObservable
- Overrides:
addListener
in classReadOnlySetPropertyBase<E>
-
addListener
- Specified by:
addListener
in interfaceObservableSet<E>
- Overrides:
addListener
in classReadOnlySetPropertyBase<E>
-
fireValueChangedEvent
protected void fireValueChangedEvent()- Overrides:
fireValueChangedEvent
in classReadOnlySetPropertyBase<E>
-
fireValueChangedEvent
- Overrides:
fireValueChangedEvent
in classReadOnlySetPropertyBase<E>
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceCollection<E>
- Specified by:
hashCode
in interfaceSet<E>
- Overrides:
hashCode
in classReadOnlySetProperty<E>
-
removeListener
- Specified by:
removeListener
in interfaceObservableValue<E>
- Overrides:
removeListener
in classReadOnlySetPropertyBase<E>
-
removeListener
- Specified by:
removeListener
in interfaceObservable
- Overrides:
removeListener
in classReadOnlySetPropertyBase<E>
-
removeListener
- Specified by:
removeListener
in interfaceObservableSet<E>
- Overrides:
removeListener
in classReadOnlySetPropertyBase<E>
-