Class SwingSynchronizedCache

  extended by org.xnap.gui.util.SwingSynchronizedCache
All Implemented Interfaces:
java.util.EventListener, ListListener

public class SwingSynchronizedCache
extends java.lang.Object
implements ListListener

This class caches ListEvent objects and adds them in a Swing synchronized manner to a SwingListListener.

Constructor Summary
SwingSynchronizedCache(SwingListListener listener)
          Constructs a cache.
Method Summary
 void itemAdded(ListEvent event)
          Adds event to cache.
 void itemRemoved(ListEvent event)
          Adds event to cache.
 void setMaxInsertsPerRun(int newValue)
          Sets the maximum number of event objects that is handled per run.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public SwingSynchronizedCache(SwingListListener listener)
Constructs a cache.

listener - the event receiver
Method Detail


public void itemAdded(ListEvent event)
Adds event to cache.

Specified by:
itemAdded in interface ListListener


public void itemRemoved(ListEvent event)
Adds event to cache.

Specified by:
itemRemoved in interface ListListener


public void setMaxInsertsPerRun(int newValue)
Sets the maximum number of event objects that is handled per run.

Copyright © 2001-2005 XNap Team. All Rights Reserved.