|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.odell.glazedlists.swt.DefaultEventTableViewer<E>
ca.odell.glazedlists.swt.EventTableViewer<E>
DefaultEventTableViewer
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 EventTableViewer<E>
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.
Field Summary | |
---|---|
protected EventList<E> |
swtThreadSource
Deprecated. the ThreadProxyEventList to which this EventTableViewer is listening |
Fields inherited from class ca.odell.glazedlists.swt.DefaultEventTableViewer |
---|
source |
Constructor Summary | |
---|---|
EventTableViewer(EventList<E> source,
org.eclipse.swt.widgets.Table table,
String[] propertyNames,
String[] columnLabels)
Deprecated. use a combination of GlazedLists.tableFormat(String[], String[]) and
EventTableViewer(EventList, Table, TableFormat)
instead |
|
EventTableViewer(EventList<E> source,
org.eclipse.swt.widgets.Table table,
TableFormat<? super E> tableFormat)
Deprecated. Creates a new viewer for the given Table that updates the table
contents in response to changes on the specified EventList . |
|
EventTableViewer(EventList<E> source,
org.eclipse.swt.widgets.Table table,
TableFormat<? super E> tableFormat,
TableItemConfigurer<? super E> tableItemConfigurer)
Deprecated. 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()
Deprecated. Releases the resources consumed by this EventTableViewer so that it
may eventually be garbage collected. |
Methods inherited from class ca.odell.glazedlists.swt.DefaultEventTableViewer |
---|
getAllChecked, getCheckedOnly, getDeselected, getSelected, getSourceList, getTable, getTableFormat, getTableItemConfigurer, getTogglingDeselected, getTogglingSelected, invertSelection, listChanged, setCheckedOnly, setTableFormat, setTableItemConfigurer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected EventList<E> swtThreadSource
Constructor Detail |
---|
public EventTableViewer(EventList<E> source, org.eclipse.swt.widgets.Table table, String[] propertyNames, String[] columnLabels)
GlazedLists.tableFormat(String[], String[])
and
EventTableViewer(EventList, Table, TableFormat)
instead
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.
source
- the EventList that provides the row objectstable
- the Table viewing the source objectspropertyNames
- an array of property names in the JavaBeans format.
For example, if your list contains Objects with the methods
getFirstName(), setFirstName(String), getAge(), setAge(Integer),
then this array should contain the two strings "firstName" and
"age". This format is specified by the JavaBeans
PropertyDescriptor
.columnLabels
- the corresponding column names for the listed
property names. For example, if your columns are "firstName" and
"age", then your labels might be "First Name" and "Age".public EventTableViewer(EventList<E> source, org.eclipse.swt.widgets.Table table, TableFormat<? super E> tableFormat)
Table
that updates the table
contents in response to changes on the specified EventList
. The
Table
is formatted with the specified TableFormat
.
source
- the EventList that provides the row objectstable
- the Table viewing the source objectstableFormat
- the object responsible for extracting column data
from the row objectspublic EventTableViewer(EventList<E> source, org.eclipse.swt.widgets.Table table, TableFormat<? super E> tableFormat, TableItemConfigurer<? super E> tableItemConfigurer)
Table
that updates the table
contents in response to changes on the specified EventList
. The
Table
is formatted with the specified TableFormat
.
source
- the EventList that provides the row objectstable
- the Table viewing the source objectstableFormat
- the object responsible for extracting column data
from the row objectstableItemConfigurer
- responsible for configuring table itemsMethod Detail |
---|
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.
dispose
in class DefaultEventTableViewer<E>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |