public interface ListEventListener<E>
extends java.util.EventListener
List changes are represented by a ListEvent
.
When a thread requires notification on the Swing thread for GUI display, the user should not add the implementation of this interface as a listener directly. Instead use a EventThreadProxy, which receives events on the list thread and then fires them on the Swing thread.
ListEvent
Modifier and Type | Method and Description |
---|---|
void |
listChanged(ListEvent<E> listChanges)
When the underlying list changes, this notification allows the
object to repaint itself or update itself as necessary.
|
void listChanged(ListEvent<E> listChanges)
It is mandatory that the calling thread has obtained the write lock on the source list. This is because the calling thread will have written to the source list to cause this event. This condition guarantees that no writes can occur while the listener is handling this event. It is an error to write to the source list while processing an event.
listChanges
- a ListEvent
describing the changes to the listGlazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by pbuilder at 2016-02-14 0:54