com.levigo.util.swing.glazedlists
Class GlazedListsSwing

java.lang.Object
  extended by com.levigo.util.swing.glazedlists.GlazedListsSwing

public final class GlazedListsSwing
extends Object

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

Author:
Jesse Wilson

Method Summary
static
<E> TransformedList<E,E>
deferredSwingThreadProxyList(EventList<E> source, long delay, TimeUnit timeUnit)
          Behaves like the EventList returned by swingThreadProxyList(EventList) but adds the option of aggregating a all change events happening within a certain time and into a single update.
static boolean isSwingThreadProxyList(EventList list)
          Returns true iff list is an EventList that fires all of its update events from the Swing event dispatch thread.
static BoundedRangeModel lowerRangeModel(ThresholdList target)
          Creates a model that manipulates the lower bound of the specified ThresholdList.
static
<E> TransformedList<E,E>
swingThreadProxyList(EventList<E> source)
          Wraps the source in an EventList that fires all of its update events from the Swing event dispatch thread.
static BoundedRangeModel upperRangeModel(ThresholdList target)
          Creates a model that manipulates the upper bound of the specified ThresholdList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

swingThreadProxyList

public static <E> TransformedList<E,E> swingThreadProxyList(EventList<E> source)
Wraps the source in an EventList that fires all of its update events from the Swing event dispatch thread.

Throws:
IllegalArgumentException - if source is null

deferredSwingThreadProxyList

public static <E> TransformedList<E,E> deferredSwingThreadProxyList(EventList<E> source,
                                                                    long delay,
                                                                    TimeUnit timeUnit)
Behaves like the EventList returned by swingThreadProxyList(EventList) but adds the option of aggregating a all change events happening within a certain time and into a single update.

Throws:
IllegalArgumentException - if source is null, delay is less than 1 or timeUnit is null.

isSwingThreadProxyList

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


lowerRangeModel

public static BoundedRangeModel lowerRangeModel(ThresholdList target)
Creates a model that manipulates the lower bound of the specified ThresholdList. The ThresholdList linked to this model type will contain a range of Objects between the results of getValue() and getMaximum() on the BoundedRangeModel.


upperRangeModel

public static BoundedRangeModel upperRangeModel(ThresholdList target)
Creates a model that manipulates the upper bound of the specified ThresholdList. The ThresholdList linked to this model type will contain a range of Objects between the results of getMinimum() and getValue() on the BoundedRangeModel.



Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.