nl.tudelft.goal.ut2004.visualizer.util
Class CollectionEventAdaptor<T>

Package class diagram package CollectionEventAdaptor
java.lang.Object
  extended by nl.tudelft.goal.ut2004.visualizer.util.CollectionEventAdaptor<T>
Type Parameters:
T -
All Implemented Interfaces:
cz.cuni.amis.utils.collections.CollectionEventListener<T>, EventListener

public abstract class CollectionEventAdaptor<T>
extends Object
implements cz.cuni.amis.utils.collections.CollectionEventListener<T>

Adaptor for the CollectionEventListener. Limits the number of methods that need to be implemented.

Author:
M.P. Korstanje

Constructor Summary
CollectionEventAdaptor()
           
 
Method Summary
 void postAddEvent(Collection<T> alreadyAdded, Collection<T> whereWereAdded)
           
 void postRemoveEvent(Collection<T> alreadyRemoved, Collection<T> whereWereRemoved)
           
 void preAddEvent(Collection<T> toBeAdded, Collection<T> whereToAdd)
           
 void preRemoveEvent(Collection<T> toBeRemoved, Collection<T> whereToRemove)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionEventAdaptor

public CollectionEventAdaptor()
Method Detail

postAddEvent

public void postAddEvent(Collection<T> alreadyAdded,
                         Collection<T> whereWereAdded)
Specified by:
postAddEvent in interface cz.cuni.amis.utils.collections.CollectionEventListener<T>

postRemoveEvent

public void postRemoveEvent(Collection<T> alreadyRemoved,
                            Collection<T> whereWereRemoved)
Specified by:
postRemoveEvent in interface cz.cuni.amis.utils.collections.CollectionEventListener<T>

preAddEvent

public void preAddEvent(Collection<T> toBeAdded,
                        Collection<T> whereToAdd)
Specified by:
preAddEvent in interface cz.cuni.amis.utils.collections.CollectionEventListener<T>

preRemoveEvent

public void preRemoveEvent(Collection<T> toBeRemoved,
                           Collection<T> whereToRemove)
Specified by:
preRemoveEvent in interface cz.cuni.amis.utils.collections.CollectionEventListener<T>


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.