net.rim.device.api.collection
Interface CollectionEventSource

All Known Subinterfaces:
ChainableCollection, KeyStore
All Known Implementing Classes:
CollectionListenerManager, RIMKeyStore, CertificateStatusManager, OTASyncCapableSyncItem, AutoText

public interface CollectionEventSource

Defines functionality for collections that act as the source of collection events.

In order to receive and handle these events, a class must implement CollectionListener or one of its derived interfaces, and register as a listener with the implementor of this interface.


Method Summary
 void addCollectionListener(Object listener)
          Registers a listener to receive collection events.
 void removeCollectionListener(Object listener)
          Removes a listener object from the list of those receiving events.
 

Method Detail

addCollectionListener

public void addCollectionListener(Object listener)
Registers a listener to receive collection events.

Parameters:
listener - Object to register as a listener which must implement CollectionListener or one of its derived interfaces.

removeCollectionListener

public void removeCollectionListener(Object listener)
Removes a listener object from the list of those receiving events.

Parameters:
listener - Listener to remove.



Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.