public class CollectionChangeSupport<T> extends Object
CollectionListener management.
T is the type of item stored in the collection.| Constructor and Description |
|---|
CollectionChangeSupport(Object source)
Creates a collection change support.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCollectionListener(CollectionListener<T> listener)
Adds the
listener in parameter to the list of listeners that may be notified. |
void |
fireCollectionChanged(T item,
CollectionEvent.Type eventType)
Fires a collection event about
item. |
void |
fireCollectionChanged(T item,
int index,
CollectionEvent.Type eventType)
Fires a collection event about
item at a given index. |
void |
removeCollectionListener(CollectionListener<T> listener)
Removes the
listener in parameter to the list of listeners that may be notified. |
public CollectionChangeSupport(Object source)
public void addCollectionListener(CollectionListener<T> listener)
listener in parameter to the list of listeners that may be notified.public void removeCollectionListener(CollectionListener<T> listener)
listener in parameter to the list of listeners that may be notified.public void fireCollectionChanged(T item, CollectionEvent.Type eventType)
item.public void fireCollectionChanged(T item, int index, CollectionEvent.Type eventType)
item at a given index.

© Copyrights 2006-2015 Emmanuel PUYBARET / eTeks
Distributed under GNU General Public License