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

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

Deprecated. Use DefaultEventListViewer 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 EventListViewer<E>
extends DefaultEventListViewer<E>

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.

Author:
Kevin Maltby, Holger Brands

Field Summary
 
Fields inherited from class ca.odell.glazedlists.swt.DefaultEventListViewer
source
 
Constructor Summary
EventListViewer(EventList<E> source, org.eclipse.swt.widgets.List list)
          Deprecated. Creates a new List that displays and responds to changes in the source list.
EventListViewer(EventList<E> source, org.eclipse.swt.widgets.List list, ItemFormat<? super E> itemFormat)
          Deprecated. Creates a new List that displays and responds to changes in the source list.
 
Method Summary
 void dispose()
          Deprecated. Releases the resources consumed by this EventListViewer so that it may eventually be garbage collected.
 
Methods inherited from class ca.odell.glazedlists.swt.DefaultEventListViewer
getDeselected, getItemFormat, getList, getSelected, getTogglingDeselected, getTogglingSelected, invertSelection, listChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventListViewer

public EventListViewer(EventList<E> source,
                       org.eclipse.swt.widgets.List list)
Deprecated. 
Creates a new List that displays and responds to changes in the source list. List elements will simply be displayed as the result of calling toString() on the contents of the source list.

Parameters:
source - the EventList that provides the elements
list - the list

EventListViewer

public EventListViewer(EventList<E> source,
                       org.eclipse.swt.widgets.List list,
                       ItemFormat<? super E> itemFormat)
Deprecated. 
Creates a new List that displays and responds to changes in the source list. List elements are formatted using the provided ItemFormat.

Parameters:
source - the EventList that provides the elements
list - the list
itemFormat - an ItemFormat for formatting the displayed values
See Also:
ItemFormat, GlazedListsSWT.beanItemFormat(String)
Method Detail

dispose

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

Overrides:
dispose in class DefaultEventListViewer<E>


Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by hbrands at 2013-02-12 20:58