- 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>
public abstract class ReadOnlySetPropertyBase<E> extends ReadOnlySetProperty<E>
Base class for all readonly properties wrapping anObservableSet
. This class provides a default implementation to attach listener.- Since:
- JavaFX 2.1
- See Also:
ReadOnlySetProperty
-
-
Property Summary
-
Properties declared in class javafx.beans.binding.SetExpression
empty, size
-
-
Constructor Summary
Constructors Constructor Description ReadOnlySetPropertyBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fireValueChangedEvent()
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.-
Methods declared in interface java.util.Collection
parallelStream, removeIf, stream
-
Methods declared in class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods declared in interface javafx.beans.Observable
addListener, removeListener
-
Methods declared in interface javafx.beans.value.ObservableObjectValue
get
-
Methods declared in interface javafx.collections.ObservableSet
addListener, removeListener
-
Methods declared in interface javafx.beans.value.ObservableValue
addListener, getValue, removeListener
-
Methods declared in interface javafx.beans.property.ReadOnlyProperty
getBean, getName
-
Methods declared in class javafx.beans.property.ReadOnlySetProperty
bindContent, bindContentBidirectional, hashCode, toString, unbindContent, unbindContentBidirectional
-
Methods declared in interface java.util.Set
add, addAll, clear, contains, containsAll, equals, isEmpty, iterator, remove, removeAll, retainAll, size, spliterator, toArray, toArray
-
Methods declared in class javafx.beans.binding.SetExpression
asString, emptyProperty, getSize, isEqualTo, isNotEqualTo, isNotNull, isNull, setExpression, sizeProperty
-
-
-
-
Method Detail
-
fireValueChangedEvent
protected void fireValueChangedEvent()
This method needs to be called if the reference to theObservableSet
changes. It sends notifications to all attachedInvalidationListeners
,ChangeListeners
, andSetChangeListener
. This method needs to be called, if the value of this property changes.
-
fireValueChangedEvent
protected void fireValueChangedEvent(SetChangeListener.Change<? extends E> change)
This method needs to be called if the content of the referencedObservableSet
changes. Sends notifications to all attachedInvalidationListeners
,ChangeListeners
, andSetChangeListener
. This method is called when the content of the list changes.- Parameters:
change
- the change that needs to be propagated
-
-