ca.odell.glazedlists.swt
Class EventTableViewer<E>

java.lang.Object
  extended by ca.odell.glazedlists.swt.DefaultEventTableViewer<E>
      extended by ca.odell.glazedlists.swt.EventTableViewer<E>
All Implemented Interfaces:
ListEventListener<E>, EventListener

Deprecated. Use 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>

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.

Author:
Jesse Wilson, Holger Brands

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

swtThreadSource

protected EventList<E> swtThreadSource
Deprecated. 
the ThreadProxyEventList to which this EventTableViewer is listening

Constructor Detail

EventTableViewer

public 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

Creates a new viewer for the given 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.

Parameters:
source - the EventList that provides the row objects
table - the Table viewing the source objects
propertyNames - 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".

EventTableViewer

public 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. The Table is formatted with the specified TableFormat.

Parameters:
source - the EventList that provides the row objects
table - the Table viewing the source objects
tableFormat - the object responsible for extracting column data from the row objects

EventTableViewer

public 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. The Table is formatted with the specified TableFormat.

Parameters:
source - the EventList that provides the row objects
table - the Table viewing the source objects
tableFormat - the object responsible for extracting column data from the row objects
tableItemConfigurer - responsible for configuring table items
Method Detail

dispose

public void dispose()
Deprecated. 
Releases the resources consumed by this 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.

Overrides:
dispose in class DefaultEventTableViewer<E>


Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by hbrands at 2015-02-16 14:02