Interface ObservableList<E>
- All Superinterfaces:
Collection<E>
,Iterable<E>
,List<E>
,SequencedCollection<E>
A
List
that notifies listeners of changes.-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a listener that is notified when the list changes.void
Removes a listener.boolean
Returnstrue
if 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, addFirst, addLast, clear, contains, containsAll, equals, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeLast, replaceAll, retainAll, reversed, 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()Returnstrue
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
-