Interface ObservableList<E>
-
- All Superinterfaces:
java.util.Collection<E>
,java.lang.Iterable<E>
,java.util.List<E>
public interface ObservableList<E> extends java.util.List<E>
AList
that notifies listeners of changes.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addObservableListListener(ObservableListListener listener)
Adds a listener that is notified when the list changes.void
removeObservableListListener(ObservableListListener listener)
Removes a listener.boolean
supportsElementPropertyChanged()
Returnstrue
if this list sends out notification when the properties of an element change.-
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()
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
-
-