ca.odell.glazedlists.swt
Class GlazedListsSWT

java.lang.Object
  extended by ca.odell.glazedlists.swt.GlazedListsSWT

public final class GlazedListsSWT
extends Object

A factory for creating all sorts of objects to be used with Glazed Lists.

Author:
Jesse Wilson

Method Summary
static ILabelProvider beanLabelProvider(String property)
          Creates an ILabelProvider that returns labels for Objects via Relection.
static boolean isSWTThreadProxyList(EventList list)
          Returns true iff list is an EventList that fires all of its update events from the SWT event dispatch thread.
static SelectionListener lowerThresholdViewer(ThresholdList thresholdList, Scale scale)
          Creates a viewer that manipulates the lower bound of the specified ThresholdList based on changes to Scale selection.
static SelectionListener lowerThresholdViewer(ThresholdList thresholdList, Slider slider)
          Creates a viewer that manipulates the lower bound of the specified ThresholdList based on changes to the Slider.
static
<E> TransformedList<E,E>
swtThreadProxyList(EventList<E> source, Display display)
          Wraps the source in an EventList that fires all of its update events from the SWT user interface thread.
static SelectionListener upperThresholdViewer(ThresholdList thresholdList, Scale scale)
          Creates a viewer that manipulates the upper bound of the specified ThresholdList based on changes to Scale selection.
static SelectionListener upperThresholdViewer(ThresholdList thresholdList, Slider slider)
          Creates a viewer that manipulates the upper bound of the specified ThresholdList based on changes to the Slider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

swtThreadProxyList

public static <E> TransformedList<E,E> swtThreadProxyList(EventList<E> source,
                                                          Display display)
Wraps the source in an EventList that fires all of its update events from the SWT user interface thread.


beanLabelProvider

public static ILabelProvider beanLabelProvider(String property)
Creates an ILabelProvider that returns labels for Objects via Relection. The label returned will be the String value of specified JavaBean property.


lowerThresholdViewer

public static SelectionListener lowerThresholdViewer(ThresholdList thresholdList,
                                                     Slider slider)
Creates a viewer that manipulates the lower bound of the specified ThresholdList based on changes to the Slider. The ThresholdList linked to this viewer type will contain a range of Objects between the results of getSelection() and getMaximum() on the Slider.


lowerThresholdViewer

public static SelectionListener lowerThresholdViewer(ThresholdList thresholdList,
                                                     Scale scale)
Creates a viewer that manipulates the lower bound of the specified ThresholdList based on changes to Scale selection. The ThresholdList linked to this viewer type will contain a range of Objects between the results of getSelection() and getMaximum() on the Scale.


upperThresholdViewer

public static SelectionListener upperThresholdViewer(ThresholdList thresholdList,
                                                     Slider slider)
Creates a viewer that manipulates the upper bound of the specified ThresholdList based on changes to the Slider. The ThresholdList linked to this model type will contain a range of Objects between the results of getMinimum() and getSelection() on the Slider.


upperThresholdViewer

public static SelectionListener upperThresholdViewer(ThresholdList thresholdList,
                                                     Scale scale)
Creates a viewer that manipulates the upper bound of the specified ThresholdList based on changes to Scale selection. The ThresholdList linked to this viewer type will contain a range of Objects between the results of getMinimum() and getSelection() on the Scale.


isSWTThreadProxyList

public static boolean isSWTThreadProxyList(EventList list)
Returns true iff list is an EventList that fires all of its update events from the SWT event dispatch thread.



Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by James Lemieux at 2009-01-25 18:40