org.xnap.gui.util
Class SwingSynchronizedCache

java.lang.Object
  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

SwingSynchronizedCache

public SwingSynchronizedCache(SwingListListener listener)
Constructs a cache.

Parameters:
listener - the event receiver
Method Detail

itemAdded

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

Specified by:
itemAdded in interface ListListener

itemRemoved

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

Specified by:
itemRemoved in interface ListListener

setMaxInsertsPerRun

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.