|
Sweet Home 3D 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.eteks.sweethome3d.model.CollectionChangeSupport<T>
public class CollectionChangeSupport<T>
A helper class for CollectionListener
management.
T
is the type of item stored in the collection.
Constructor Summary | |
---|---|
CollectionChangeSupport(Object source)
Creates a collection change support. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionChangeSupport(Object source)
Method Detail |
---|
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
.
|
Sweet Home 3D 4.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
![]() |
© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License |