net.mtu.eggplant.util.event
Class CollectionSupport
java.lang.Object
net.mtu.eggplant.util.event.CollectionSupport
public class CollectionSupport
- extends Object
Adds support for Collection events.
- Version:
- $Revision$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollectionSupport
public CollectionSupport(Object source)
- Parameters:
source
- the object that is to be the source of the events- PreConditions
- (source != null)
fireObjectsAdded
public void fireObjectsAdded(Collection<?> data)
- Parameters:
data
- the objects that were added- PreConditions
- (data != null)
fireObjectsRemoved
public void fireObjectsRemoved(Collection<?> data)
- Parameters:
data
- the objects that were removed- PreConditions
- (data != null)
addCollectionListener
public void addCollectionListener(CollectionListener listener)
- PreConditions
- (listener != null)
removeCollectionListener
public void removeCollectionListener(CollectionListener listener)
- PreConditions
- (listener != null)