Interface ObservableList<E>

All Superinterfaces:
Collection<E>, Iterable<E>, List<E>

public interface ObservableList<E> extends List<E>
A List that notifies listeners of changes.
  • Method Details

    • addObservableListListener

      void addObservableListListener(ObservableListListener listener)
      Adds a listener that is notified when the list changes.
      Parameters:
      listener - the listener to add
    • removeObservableListListener

      void removeObservableListListener(ObservableListListener listener)
      Removes a listener.
      Parameters:
      listener - the listener to remove
    • supportsElementPropertyChanged

      boolean supportsElementPropertyChanged()
      Returns true if this list sends out notification when the properties of an element change. This method may be used to determine if a listener needs to be installed on each of the elements of the list.
      Returns:
      true if this list sends out notification when the properties of an element change