Module javafx.base

Class SetProperty<E>

Type Parameters:
E - the type of the Set elements
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 a Property wrapping an ObservableSet. The value of a SetProperty can be get and set with ObservableObjectValue.get(), ObservableValue.getValue(), WritableObjectValue.set(Object), and WritableValue.setValue(ObservableSet). A property can be bound and unbound unidirectional with Property.bind(javafx.beans.value.ObservableValue) and Property.unbind(). Bidirectional bindings can be created and removed with Property.bindBidirectional(Property) and Property.unbindBidirectional(Property). The context of a SetProperty can be read with ReadOnlyProperty.getBean() and ReadOnlyProperty.getName().
Since:
JavaFX 2.1
See Also:
ObservableSet, ObservableSetValue, WritableSetValue, ReadOnlySetProperty, Property
  • Constructor Details

    • SetProperty

      public SetProperty()
      Creates a default SetProperty.
  • Method Details

    • toString

      public String toString()
      Returns a string representation of this SetProperty object.
      Overrides:
      toString in class ReadOnlySetProperty<E>
      Returns:
      a string representation of this SetProperty object.