|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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 |
public void elementAdded(Collection collection, Object element)
collection - Changed collection.element - Element added to the monitored collection.public void elementRemoved(Collection collection, Object element)
collection - Changed collection.element - Element removed from the monitored collection.public 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.public void reset(Collection collection)
This collection should rebuild itself accordingly.
collection - Changed collection.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.