|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.odell.glazedlists.swt.EventListViewer
public class EventListViewer
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.
Warning: This class is a a developer preview and subject to many bugs and API changes.
| Constructor Summary | |
|---|---|
EventListViewer(EventList source,
org.eclipse.swt.widgets.List list)
Creates a new List that displays and responds to changes in source. |
|
EventListViewer(EventList source,
org.eclipse.swt.widgets.List list,
org.eclipse.jface.viewers.ILabelProvider labelProvider)
Creates a new List that displays and responds to changes in source. |
|
| Method Summary | |
|---|---|
void |
dispose()
Releases the resources consumed by this EventListViewer so that it
may eventually be garbage collected. |
EventList |
getDeselected()
Provides access to an EventList that contains items from the
viewed Table that are not currently selected. |
org.eclipse.jface.viewers.ILabelProvider |
getLabelProvider()
Gets the List's ILabelProvider. |
org.eclipse.swt.widgets.List |
getList()
Gets the List being managed by this EventListViewer. |
EventList |
getSelected()
Provides access to an EventList that contains items from the
viewed Table that are currently selected. |
void |
invertSelection()
Inverts the current selection. |
void |
listChanged(ListEvent listChanges)
When the source list is changed, this forwards the change to the displayed List. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventListViewer(EventList source,
org.eclipse.swt.widgets.List list)
public EventListViewer(EventList source,
org.eclipse.swt.widgets.List list,
org.eclipse.jface.viewers.ILabelProvider labelProvider)
ILabelProvider.
| Method Detail |
|---|
public org.eclipse.jface.viewers.ILabelProvider getLabelProvider()
ILabelProvider.
public org.eclipse.swt.widgets.List getList()
EventListViewer.
public EventList getDeselected()
EventList that contains items from the
viewed Table that are not currently selected.
public EventList getSelected()
EventList that contains items from the
viewed Table that are currently selected.
public void listChanged(ListEvent listChanges)
listChanged in interface ListEventListenerpublic void invertSelection()
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||