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> extends DefaultEventTableViewer<E>
This class is not thread safe. It must be used exclusively with the SWT event handler thread.
Modifier and Type | Field and Description |
---|---|
protected EventList<E> |
swtThreadSource
Deprecated.
the ThreadProxyEventList to which this EventTableViewer is listening
|
source
Constructor and Description |
---|
EventTableViewer(EventList<E> source,
Table table,
java.lang.String[] propertyNames,
java.lang.String[] columnLabels)
Deprecated.
use a combination of
GlazedLists.tableFormat(String[], String[]) and
EventTableViewer(EventList, Table, TableFormat)
instead |
EventTableViewer(EventList<E> source,
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,
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 . |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Deprecated.
Releases the resources consumed by this
EventTableViewer so that it
may eventually be garbage collected. |
getAllChecked, getCheckedOnly, getDeselected, getSelected, getSourceList, getTable, getTableFormat, getTableItemConfigurer, getTogglingDeselected, getTogglingSelected, invertSelection, listChanged, setCheckedOnly, setTableFormat, setTableItemConfigurer
public EventTableViewer(EventList<E> source, Table table, java.lang.String[] propertyNames, java.lang.String[] columnLabels)
GlazedLists.tableFormat(String[], String[])
and
EventTableViewer(EventList, Table, TableFormat)
insteadTable
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, 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, 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 itemspublic 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>
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by mockbuild at 2016-06-08 1:31