|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.odell.glazedlists.swt.EventTableViewer
public class EventTableViewer
A view helper that displays an EventList in an SWT table.
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 | |
|---|---|
EventTableViewer(EventList source,
Table table,
String[] propertyNames,
String[] columnLabels)
Creates a new viewer for the given Table that updates the table
contents in response to changes on the specified EventList. |
|
EventTableViewer(EventList source,
Table table,
TableFormat tableFormat)
Creates a new viewer for the given Table that updates the table
contents in response to changes on the specified EventList. |
|
| Method Summary | |
|---|---|
void |
dispose()
Releases the resources consumed by this EventTableViewer so that it
may eventually be garbage collected. |
List |
getAllChecked()
Gets all checked items. |
boolean |
getCheckedOnly()
Get whether this is showing only checked elements. |
EventList |
getDeselected()
Provides access to an EventList that contains items from the
viewed Table that are not currently selected. |
EventList |
getSelected()
Provides access to an EventList that contains items from the
viewed Table that are currently selected. |
EventList |
getSourceList()
Get the source of this EventTableViewer. |
Table |
getTable()
Gets the Table that is being managed by this
EventTableViewer. |
TableFormat |
getTableFormat()
Gets the TableFormat. |
void |
invertSelection()
Inverts the current selection. |
void |
listChanged(ListEvent listChanges)
When the source list is changed, this forwards the change to the displayed Table. |
void |
setCheckedOnly(boolean checkedOnly)
Set whether this shall show only checked elements. |
void |
setTableFormat(TableFormat tableFormat)
Sets this Table to be formatted by a different
TableFormat. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventTableViewer(EventList source,
Table table,
String[] propertyNames,
String[] columnLabels)
Table that updates the table
contents in response to changes on the specified EventList. The
Table is formatted with an automatically generated
TableFormat. It uses JavaBeans and Reflection to create a
TableFormat as specified.
public EventTableViewer(EventList source,
Table table,
TableFormat tableFormat)
Table that updates the table
contents in response to changes on the specified EventList. The
Table is formatted with the specified TableFormat.
| Method Detail |
|---|
public TableFormat getTableFormat()
TableFormat.
public Table getTable()
Table that is being managed by this
EventTableViewer.
public void setTableFormat(TableFormat tableFormat)
Table to be formatted by a different
TableFormat. This method is not yet implemented for SWT.
public void setCheckedOnly(boolean checkedOnly)
public boolean getCheckedOnly()
public List getAllChecked()
public EventList getSourceList()
EventTableViewer.
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)
Table.
listChanged in interface ListEventListenerpublic void invertSelection()
public void dispose()
EventTableViewer so that it
may eventually be garbage collected.
An EventTableViewer will be garbage collected without a call to
dispose(), but not before its source EventList is garbage
collected. By calling dispose(), you allow the EventTableViewer
to be garbage collected before its source EventList. This is
necessary for situations where an EventTableViewer is short-lived but
its source EventList is long-lived.
Warning: It is an error
to call any method on a EventTableViewer after it has been disposed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||