Interface ObservableList<E>
- All Superinterfaces:
Collection<E>,Iterable<E>,List<E>
A
List that notifies listeners of changes.-
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a listener that is notified when the list changes.voidRemoves a listener.booleanReturnstrueif this list sends out notification when the properties of an element change.Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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 Details
-
addObservableListListener
Adds a listener that is notified when the list changes.- Parameters:
listener- the listener to add
-
removeObservableListListener
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
-