Class ReadOnlySetPropertyBase<E>
java.lang.Object
javafx.beans.binding.SetExpression<E>
javafx.beans.property.ReadOnlySetProperty<E>
javafx.beans.property.ReadOnlySetPropertyBase<E>
- Type Parameters:
E
- the type of theSet
elements
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,Set<E>
,Observable
,ReadOnlyProperty<ObservableSet<E>>
,ObservableObjectValue<ObservableSet<E>>
,ObservableSetValue<E>
,ObservableValue<ObservableSet<E>>
,ObservableSet<E>
Base class for all readonly properties wrapping an
ObservableSet
.
This class provides a default implementation to attach listener.- Since:
- JavaFX 2.1
- See Also:
-
Property Summary
Properties declared in class javafx.beans.binding.SetExpression
empty, size
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(InvalidationListener listener) Adds anInvalidationListener
which will be notified whenever theObservable
becomes invalid.void
addListener
(ChangeListener<? super ObservableSet<E>> listener) Adds aChangeListener
which will be notified whenever the value of theObservableValue
changes.void
addListener
(SetChangeListener<? super E> listener) Add a listener to this observable set.protected void
This method needs to be called if the reference to theObservableSet
changes.protected void
fireValueChangedEvent
(SetChangeListener.Change<? extends E> change) This method needs to be called if the content of the referencedObservableSet
changes.void
removeListener
(InvalidationListener listener) Removes the given listener from the list of listeners, that are notified whenever the value of theObservable
becomes invalid.void
removeListener
(ChangeListener<? super ObservableSet<E>> listener) Removes the given listener from the list of listeners that are notified whenever the value of theObservableValue
changes.void
removeListener
(SetChangeListener<? super E> listener) Tries to removed a listener from this observable set.Methods declared in class javafx.beans.property.ReadOnlySetProperty
bindContent, bindContentBidirectional, equals, hashCode, toString, unbindContent, unbindContentBidirectional
Methods declared in 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 declared in class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods declared in interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods declared in interface javafx.beans.