Package ca.odell.glazedlists.event
Interface ListEventListener<E>
-
- All Superinterfaces:
java.util.EventListener
- All Known Implementing Classes:
CachingList
,CollectionList
,CompositeList
,DefaultEventComboBoxModel
,DefaultEventListModel
,DefaultEventTableModel
,EventComboBoxModel
,EventListModel
,EventTableColumnModel
,EventTableModel
,FileList
,FilterList
,FreezableList
,FunctionList
,GroupingList
,ListSelection
,NetworkList
,ObservableElementList
,PluggableList
,PopularityList
,RangeList
,SeparatorList
,SequenceList
,SortedList
,ThresholdList
,TransactionList
,TransformedList
,UniqueList
public interface ListEventListener<E> extends java.util.EventListener
Listens and responds to changes in a dynamic list of objects. This could be implemented by a GUI widget such as a table or combo box to repaint, add, or remove elements when the underlying data changes.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.
- Author:
- Jesse Wilson
- See Also:
- Glazed Lists Tutorial,
ListEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
listChanged(ListEvent<E> listChanges)
When the underlying list changes, this notification allows the object to repaint itself or update itself as necessary.
-
-
-
Method Detail
-
listChanged
void listChanged(ListEvent<E> listChanges)
When the underlying list changes, this notification allows the object to repaint itself or update itself as necessary.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.
- Parameters:
listChanges
- aListEvent
describing the changes to the list
-
-