net.rim.device.api.collection
Interface CollectionEventSource

All Known Subinterfaces:
ChainableCollection, FilteredList, KeyStore
All Known Implementing Classes:
BasicFilteredList, BigSortedReadableList, BigUnsortedReadableList, CollectionListenerManager, IntSortedReadableList, LongSortedReadableList, ReadableListCombiner, SortedReadableList, UnsortedReadableList, CertificateStatusManager, CombinedKeyStore, DeviceKeyStore, PersistableRIMKeyStore, RIMKeyStore, SyncableRIMKeyStore, TrustedKeyStore, 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

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

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

Parameters:
listener - Listener to remove.





Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.