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

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

Deprecated. Use DefaultEventComboViewer 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 EventComboViewer<E>
extends DefaultEventComboViewer<E>

A view helper that displays an EventList in a Combo component.

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.DefaultEventComboViewer
source
 
Constructor Summary
EventComboViewer(EventList<E> source, org.eclipse.swt.widgets.Combo combo)
          Deprecated. Binds the contents of a Combo component to an EventList source.
EventComboViewer(EventList<E> source, org.eclipse.swt.widgets.Combo combo, ItemFormat<? super E> itemFormat)
          Deprecated. Binds the contents of a Combo component to an EventList source.
 
Method Summary
 void dispose()
          Deprecated. Releases the resources consumed by this EventComboViewer so that it may eventually be garbage collected.
 
Methods inherited from class ca.odell.glazedlists.swt.DefaultEventComboViewer
getCombo, getItemFormat, listChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventComboViewer

public EventComboViewer(EventList<E> source,
                        org.eclipse.swt.widgets.Combo combo)
Deprecated. 
Binds the contents of a Combo component to an EventList source. This allows the selection choices in a Combo to change dynamically to reflect chances to the source EventList. The String values displayed in the Combo compoment will be the result of calling toString() on the Objects found in source.


EventComboViewer

public EventComboViewer(EventList<E> source,
                        org.eclipse.swt.widgets.Combo combo,
                        ItemFormat<? super E> itemFormat)
Deprecated. 
Binds the contents of a Combo component to an EventList source. This allows the selection choices in a Combo to change dynamically to reflect chances to the source EventList. The String values displayed in the Combo compoment will be formatted using the provided ItemFormat.

See Also:
ItemFormat, GlazedListsSWT.beanItemFormat(String)
Method Detail

dispose

public void dispose()
Deprecated. 
Releases the resources consumed by this EventComboViewer so that it may eventually be garbage collected.

An EventComboViewer will be garbage collected without a call to dispose(), but not before its source EventList is garbage collected. By calling dispose(), you allow the EventComboViewer to be garbage collected before its source EventList. This is necessary for situations where an EventComboViewer is short-lived but its source EventList is long-lived.

Warning: It is an error to call any method on a EventComboViewer after it has been disposed.

Overrides:
dispose in class DefaultEventComboViewer<E>


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