net.mtu.eggplant.util.event
Class CollectionSupport

java.lang.Object
  extended by net.mtu.eggplant.util.event.CollectionSupport

public class CollectionSupport
extends Object

Adds support for Collection events.

Version:
$Revision$

Constructor Summary
CollectionSupport(Object source)
           
 
Method Summary
 void addCollectionListener(CollectionListener listener)
           
 void fireObjectsAdded(Collection<?> data)
           
 void fireObjectsRemoved(Collection<?> data)
           
 void removeCollectionListener(CollectionListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionSupport

public CollectionSupport(Object source)
Parameters:
source - the object that is to be the source of the events
PreConditions
(source != null)
Method Detail

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)