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, MapDataModel, 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-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal