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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(InvalidationListener listener) voidaddListener(ChangeListener<? super ObservableSet<E>> listener) voidaddListener(SetChangeListener<? super E> listener) protected voidprotected voidfireValueChangedEvent(SetChangeListener.Change<? extends E> change) inthashCode()voidremoveListener(InvalidationListener listener) voidremoveListener(ChangeListener<? super ObservableSet<E>> listener) voidremoveListener(SetChangeListener<? super E> listener) Methods inherited from class javafx.beans.property.ReadOnlySetProperty
bindContent, bindContentBidirectional, equals, toString, unbindContent, unbindContentBidirectionalMethods 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, toArrayMethods 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 javafx.beans.value.ObservableObjectValue
getMethods inherited from interface javafx.beans.value.ObservableValue
getValueMethods inherited from interface javafx.beans.property.ReadOnlyProperty
getBean, getNameMethods inherited from interface java.util.Set
spliterator
-
Constructor Details
-
ReadOnlySetPropertyBaseEx
public ReadOnlySetPropertyBaseEx()
-
-
Method Details
-
addListener
- Specified by:
addListenerin interfaceObservableValue<E>- Overrides:
addListenerin classReadOnlySetPropertyBase<E>
-
addListener
- Specified by:
addListenerin interfaceObservable- Overrides:
addListenerin classReadOnlySetPropertyBase<E>
-
addListener
- Specified by:
addListenerin interfaceObservableSet<E>- Overrides:
addListenerin classReadOnlySetPropertyBase<E>
-
fireValueChangedEvent
protected void fireValueChangedEvent()- Overrides:
fireValueChangedEventin classReadOnlySetPropertyBase<E>
-
fireValueChangedEvent
- Overrides:
fireValueChangedEventin classReadOnlySetPropertyBase<E>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<E>- Specified by:
hashCodein interfaceSet<E>- Overrides:
hashCodein classReadOnlySetProperty<E>
-
removeListener
- Specified by:
removeListenerin interfaceObservableValue<E>- Overrides:
removeListenerin classReadOnlySetPropertyBase<E>
-
removeListener
- Specified by:
removeListenerin interfaceObservable- Overrides:
removeListenerin classReadOnlySetPropertyBase<E>
-
removeListener
- Specified by:
removeListenerin interfaceObservableSet<E>- Overrides:
removeListenerin classReadOnlySetPropertyBase<E>
-