cz.cuni.amis.utils.collections
Class ElementListener<T>
java.lang.Object
cz.cuni.amis.utils.collections.SimpleListener<T>
cz.cuni.amis.utils.collections.ElementListener<T>
- All Implemented Interfaces:
- CollectionEventListener<T>, EventListener
public abstract class ElementListener<T>
- extends SimpleListener<T>
Simple listener called for each element that has changed even in batch updates.
- Author:
- ik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementListener
public ElementListener()
elementChanged
public abstract void elementChanged(T elem,
boolean added)
- Called each time an element changes.
- Parameters:
elem
- added
-
changed
protected void changed(Collection<T> collection,
Collection<T> added,
Collection<T> removed)
- Description copied from class:
SimpleListener
- Called when a change occures on the collection.
- Specified by:
changed
in class SimpleListener<T>
- Parameters:
collection
- The changed collection.
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.