Module javafx.base

Class ListProperty<E>

Type Parameters:
E - the type of the List elements
All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>, Observable, Property<ObservableList<E>>, ReadOnlyProperty<ObservableList<E>>, ObservableListValue<E>, ObservableObjectValue<ObservableList<E>>, ObservableValue<ObservableList<E>>, WritableListValue<E>, WritableObjectValue<ObservableList<E>>, WritableValue<ObservableList<E>>, ObservableList<E>
Direct Known Subclasses:

public abstract class ListProperty<E>
extends ReadOnlyListProperty<E>
implements Property<ObservableList<E>>, WritableListValue<E>
This class provides a full implementation of a Property wrapping an ObservableList. The value of a ListProperty can be get and set with ObservableObjectValue.get(), ObservableValue.getValue(), WritableObjectValue.set(Object), and WritableValue.setValue(ObservableList). 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 ListProperty can be read with ReadOnlyProperty.getBean() and ReadOnlyProperty.getName().
JavaFX 2.1
See Also:
ObservableList, ObservableListValue, WritableListValue, ReadOnlyListProperty, Property
  • Constructor Details

    • ListProperty

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

    • toString

      public String toString()
      Returns a string representation of this ListProperty object.
      toString in class ReadOnlyListProperty<E>
      a string representation of this ListProperty object.