|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.odell.glazedlists.swt.DefaultEventListViewer<E>
ca.odell.glazedlists.swt.EventListViewer<E>
DefaultEventListViewer
instead. This class will be removed in the GL
2.0 release. The wrapping of the source list with an SWT-EDT safe list has been
determined to be undesirable (it is better for the user to provide their own SWT-EDT
safe list).
public class EventListViewer<E>
A view helper that displays an EventList
in a List
.
This class is not thread safe. It must be used exclusively with the SWT event handler thread.
Field Summary |
---|
Fields inherited from class ca.odell.glazedlists.swt.DefaultEventListViewer |
---|
source |
Constructor Summary | |
---|---|
EventListViewer(EventList<E> source,
org.eclipse.swt.widgets.List list)
Deprecated. Creates a new List that displays and responds to changes in the source list. |
|
EventListViewer(EventList<E> source,
org.eclipse.swt.widgets.List list,
ItemFormat<? super E> itemFormat)
Deprecated. Creates a new List that displays and responds to changes in the source list. |
Method Summary | |
---|---|
void |
dispose()
Deprecated. Releases the resources consumed by this EventListViewer so that it
may eventually be garbage collected. |
Methods inherited from class ca.odell.glazedlists.swt.DefaultEventListViewer |
---|
getDeselected, getItemFormat, getList, getSelected, getTogglingDeselected, getTogglingSelected, invertSelection, listChanged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventListViewer(EventList<E> source, org.eclipse.swt.widgets.List list)
source
- the EventList that provides the elementslist
- the listpublic EventListViewer(EventList<E> source, org.eclipse.swt.widgets.List list, ItemFormat<? super E> itemFormat)
ItemFormat
.
source
- the EventList that provides the elementslist
- the listitemFormat
- an ItemFormat
for formatting the displayed valuesItemFormat
,
GlazedListsSWT.beanItemFormat(String)
Method Detail |
---|
public void dispose()
EventListViewer
so that it
may eventually be garbage collected.
An EventListViewer
will be garbage collected without a call to
dispose()
, but not before its source EventList
is garbage
collected. By calling dispose()
, you allow the EventListViewer
to be garbage collected before its source EventList
. This is
necessary for situations where an EventListViewer
is short-lived but
its source EventList
is long-lived.
Warning: It is an error
to call any method on a EventListViewer
after it has been disposed.
dispose
in class DefaultEventListViewer<E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |