- java.lang.Object
-
- javafx.beans.binding.SetExpression<E>
-
- javafx.beans.property.ReadOnlySetProperty<E>
-
- javafx.beans.property.SetProperty<E>
-
- Type Parameters:
E- the type of theSetelements
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Set<E>,Observable,Property<ObservableSet<E>>,ReadOnlyProperty<ObservableSet<E>>,ObservableObjectValue<ObservableSet<E>>,ObservableSetValue<E>,ObservableValue<ObservableSet<E>>,WritableObjectValue<ObservableSet<E>>,WritableSetValue<E>,WritableValue<ObservableSet<E>>,ObservableSet<E>
- Direct Known Subclasses:
SetPropertyBase
public abstract class SetProperty<E> extends ReadOnlySetProperty<E> implements Property<ObservableSet<E>>, WritableSetValue<E>
This class provides a full implementation of aPropertywrapping anObservableSet. The value of aSetPropertycan be get and set withObservableObjectValue.get(),ObservableValue.getValue(),WritableObjectValue.set(Object), andWritableValue.setValue(ObservableSet). A property can be bound and unbound unidirectional withProperty.bind(javafx.beans.value.ObservableValue)andProperty.unbind(). Bidirectional bindings can be created and removed withProperty.bindBidirectional(Property)andProperty.unbindBidirectional(Property). The context of aSetPropertycan be read withReadOnlyProperty.getBean()andReadOnlyProperty.getName().- Since:
- JavaFX 2.1
- See Also:
ObservableSet,ObservableSetValue,WritableSetValue,ReadOnlySetProperty,Property
-
-
Property Summary
-
Properties declared in class javafx.beans.binding.SetExpression
empty, size
-
-
Constructor Summary
Constructors Constructor Description SetProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()Returns a string representation of thisSetPropertyobject.-
Methods declared in interface java.util.Collection
parallelStream, removeIf, stream
-
Methods declared in class java.lang.Object
clone, 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.Property
bind, bindBidirectional, isBound, unbind, unbindBidirectional
-
Methods declared in interface javafx.beans.property.ReadOnlyProperty
getBean, getName
-
Methods declared in class javafx.beans.property.ReadOnlySetProperty
bindContent, bindContentBidirectional, hashCode, unbindContent, unbindContentBidirectional
-
Methods declared in interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, 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
-
Methods declared in interface javafx.beans.value.WritableObjectValue
get, set
-
Methods declared in interface javafx.beans.value.WritableValue
getValue, setValue
-
-
-
-
Method Detail
-
toString
public String toString()
Returns a string representation of thisSetPropertyobject.- Overrides:
toStringin classReadOnlySetProperty<E>- Returns:
- a string representation of this
SetPropertyobject.
-
-