Interface ObservableList<E>
-
- All Superinterfaces:
Collection<E>,Iterable<E>,List<E>
public interface ObservableList<E> extends List<E>
AListthat notifies listeners of changes.- Author:
- sky
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddObservableListListener(ObservableListListener listener)Adds a listener that is notified when the list changes.voidremoveObservableListListener(ObservableListListener listener)Removes a listener.booleansupportsElementPropertyChanged()Returnstrueif this list sends out notification when the properties of an element change.-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
-
-
-
Method Detail
-
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()
Returnstrueif 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:
trueif this list sends out notification when the properties of an element change
-
-