DefaultEventListModel instead. This class will be removed in the GL
2.0 release. The wrapping of the source list with an EDT safe list has been
determined to be undesirable (it is better for the user to provide their own EDT
safe list).public class EventListModel<E> extends DefaultEventListModel<E>
JList. Each element of the list
corresponds to an element in the ListModel.
The EventListModel class is not thread-safe. Unless
otherwise noted, all methods are only safe to be called from the event
dispatch thread. To do this programmatically, use
SwingUtilities.invokeAndWait(Runnable).
SwingUtilities.invokeAndWait(Runnable)listDataEvent, source| Constructor and Description |
|---|
EventListModel(EventList<E> source)
Deprecated.
Creates a new model that contains all objects located in the given
source and reacts to any changes in the given
source. |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Deprecated.
Releases the resources consumed by this
EventListModel so that it
may eventually be garbage collected. |
addListDataListener, fireListDataEvent, getElementAt, getSize, listChanged, removeListDataListenerpublic void dispose()
EventListModel so that it
may eventually be garbage collected.
An EventListModel will be garbage collected without a call to
dispose(), but not before its source EventList is garbage
collected. By calling dispose(), you allow the EventListModel
to be garbage collected before its source EventList. This is
necessary for situations where an EventListModel is short-lived but
its source EventList is long-lived.
Warning: It is an error
to call any method on an EventListModel after it has been disposed.
As such, this EventListModel should be detached from its
corresponding Component before it is disposed.
dispose in class DefaultEventListModel<E>Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by debian at 2016-11-28 3:17