|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CollectionListener
Defines functionality required of collection event listeners.
In order to receive collection events from collection sources (those that
implement CollectionEventSource) an object implementing this
interface must register itself with the source collection.
| Method Summary | ||
|---|---|---|
void |
elementAdded(Collection collection,
Object element)
Monitored collection has added an element. |
|
void |
elementRemoved(Collection collection,
Object element)
Monitored collection has removed an element. |
|
void |
elementUpdated(Collection collection,
Object oldElement,
Object newElement)
Monitored collection has replaced an existing element with a new one. |
|
void |
reset(Collection collection)
Monitored collection has changed drastically. |
|
| Method Detail |
|---|
void reset(Collection collection)
This collection should rebuild itself accordingly.
collection - Changed collection.
void elementAdded(Collection collection,
Object element)
collection - Changed collection.element - Element added to the monitored collection.
void elementUpdated(Collection collection,
Object oldElement,
Object newElement)
collection - Changed collection.oldElement - Pre-existing element that was replaced.newElement - New element that replaced the pre-existing one.
void elementRemoved(Collection collection,
Object element)
collection - Changed collection.element - Element removed from the monitored collection.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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