LimeWire Consolidated API

org.limewire.listener
Interface EventListener<E>

All Known Subinterfaces:
CachingEventMulticaster<E>, ConnectionManager, EventMulticaster<E>, RegisteringEventListener<E>, SourcedEventMulticaster<E,S>
All Known Implementing Classes:
AddressIQListener, AltLocManager, AsynchronousMulticaster, BlockingEventListener, BTTorrentFileDownloaderImpl, CachingEventMulticasterImpl, ConnectionManagerImpl, DownloaderGuidAlternateLocationFinder, DownloadManagerImpl, EventMulticasterImpl, EventRebroadcaster, ItunesDownloadListener, MozillaDownloaderImpl, PendingEventMulticasterImpl, PushDownloadManager, PushManager, RecentDownloadListener, SameNATAddressResolver, SourcedEventMulticasterImpl, TorrentDownloadListener, UpdateHandlerImpl, UpdateListener

public interface EventListener<E>

A listener for a given kind of event.

The annotations SwingEDTEvent and BlockingEvent can be added to implementations of handleEvent(Object) in order to allow those events to be dispatched on the EDT thread or a new thread.

If classes want to delegate implementations of EventListener, it is important that the delegate listener's handleEvent(E) method is called via EventListenerList.dispatch(EventListener, Object). This ensures that the event is dispatched appropriately, according to the annotation on the delegate listener.


Method Summary
 void handleEvent(E event)
          Notification that an event has occurred and should be handled.
 

Method Detail

handleEvent

void handleEvent(E event)
Notification that an event has occurred and should be handled.


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.