ca.odell.glazedlists.swing
Class EventListModel<E>
java.lang.Object
ca.odell.glazedlists.swing.DefaultEventListModel<E>
ca.odell.glazedlists.swing.EventListModel<E>
- All Implemented Interfaces:
- ListEventListener<E>, EventListener, ListModel
- Direct Known Subclasses:
- EventComboBoxModel
Deprecated. Use 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>
An EventListModel adapts an EventList to the ListModel interface making it
appropriate for use with a 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).
- Author:
- Jesse Wilson, Holger Brands
- See Also:
- Bug 14,
Bug 146,
Bug 177,
Bug 228,
SwingUtilities.invokeAndWait(Runnable)
|
Constructor Summary |
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. |
|
Method Summary |
void |
dispose()
Deprecated. Releases the resources consumed by this EventListModel so that it
may eventually be garbage collected. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventListModel
public 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.
dispose
public void dispose()
- Deprecated.
- Releases the resources consumed by this
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.
- Overrides:
dispose in class DefaultEventListModel<E>
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by hbrands at 2013-02-12 20:58