java.lang.Object
javafx.beans.binding.SetExpression<E>
javafx.beans.property.ReadOnlySetProperty<E>
javafx.beans.property.ReadOnlySetPropertyBase<E>
- Type Parameters:
E- the type of theSetelements
- 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 an
ObservableSet.
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()Creates a defaultReadOnlySetPropertyBase. -
Method Summary
Modifier and Type Method Description protected voidfireValueChangedEvent()This method needs to be called if the reference to theObservableSetchanges.protected voidfireValueChangedEvent(SetChangeListener.Change<? extends E> change)This method needs to be called if the content of the referencedObservableSetchanges.Methods declared in class javafx.beans.property.ReadOnlySetProperty
bindContent, bindContentBidirectional, hashCode, toString, unbindContent, unbindContentBidirectionalMethods declared in class javafx.beans.binding.SetExpression
asString, emptyProperty, getSize, isEqualTo, isNotEqualTo, isNotNull, isNull, setExpression, sizePropertyMethods declared in class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods declared in interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods declared in interface javafx.beans.Observable
addListener, removeListenerMethods declared in interface javafx.beans.value.ObservableObjectValue
getMethods declared in interface javafx.collections.ObservableSet
addListener, removeListenerMethods declared in interface javafx.beans.value.ObservableValue
addListener, getValue, removeListenerMethods declared in interface javafx.beans.property.ReadOnlyProperty
getBean, getName
-
Constructor Details
-
ReadOnlySetPropertyBase
public ReadOnlySetPropertyBase()Creates a defaultReadOnlySetPropertyBase.
-
-
Method Details
-
fireValueChangedEvent
protected void fireValueChangedEvent()This method needs to be called if the reference to theObservableSetchanges. It sends notifications to all attachedInvalidationListeners,ChangeListeners, andSetChangeListener. This method needs to be called, if the value of this property changes. -
fireValueChangedEvent
This method needs to be called if the content of the referencedObservableSetchanges. 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
-