abbot.util
Class WeakAWTEventListener

java.lang.Object
  extended by abbot.util.WeakAWTEventListener
All Implemented Interfaces:
AWTEventListener, EventListener

public class WeakAWTEventListener
extends Object
implements AWTEventListener

Provides add-and-forget listening to the AWT event queue. Provides an AWTEventListener which will automatically disconnect the target listener when the target gets garbage-collected. Once the target is GC'd, this listener will remove itself from the AWT event listener list.


Constructor Summary
WeakAWTEventListener(AWTEventListener l, long mask)
           
 
Method Summary
 void dispose()
           
 void eventDispatched(AWTEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeakAWTEventListener

public WeakAWTEventListener(AWTEventListener l,
                            long mask)
Method Detail

dispose

public void dispose()

eventDispatched

public void eventDispatched(AWTEvent e)
Specified by:
eventDispatched in interface AWTEventListener


Copyright © 2002-2008 Timothy Wall. All Rights Reserved.
Abbot is hosted on

SourceForge