org.jdesktop.observablecollections
public interface ObservableList<E> extends java.util.List<E>
List
that notifies listeners of changes.Modifier and Type | Method and Description |
---|---|
void |
addObservableListListener(ObservableListListener listener)
Adds a listener that is notified when the list changes.
|
void |
removeObservableListListener(ObservableListListener listener)
Removes a listener.
|
boolean |
supportsElementPropertyChanged()
Returns
true if this list sends out notification when
the properties of an element change. |
void addObservableListListener(ObservableListListener listener)
listener
- the listener to addvoid removeObservableListListener(ObservableListListener listener)
listener
- the listener to removeboolean supportsElementPropertyChanged()
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.true
if this list sends out notification when
the properties of an element change