nl.tudelft.goal.ut2004.visualizer.util
Class ObservingCollection<T>
java.lang.Object
cz.cuni.amis.utils.collections.ObservableCollection<T>
nl.tudelft.goal.ut2004.visualizer.util.ObservingCollection<T>
- Type Parameters:
T -
- All Implemented Interfaces:
- Iterable<T>, Collection<T>
public class ObservingCollection<T>
- extends cz.cuni.amis.utils.collections.ObservableCollection<T>
- implements Collection<T>
Decorator to make ObservableCollection properly observable themselves.
- Author:
- M.P. Korstanje
| Fields inherited from class cz.cuni.amis.utils.collections.ObservableCollection |
col, eventListeners |
| Methods inherited from class cz.cuni.amis.utils.collections.ObservableCollection |
addCollectionListener, contains, containsAll, isEmpty, notifyPostAdd, notifyPostRemove, notifyPreAdd, notifyPreRemove, removeCollectionListener, size, toArray, toArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObservingCollection
public ObservingCollection()
setObserved
public void setObserved(cz.cuni.amis.utils.collections.ObservableCollection<T> newCol)
removeObserved
public void removeObserved()
add
public boolean add(T e)
- Specified by:
add in interface Collection<T>- Overrides:
add in class cz.cuni.amis.utils.collections.ObservableCollection<T>
addAll
public boolean addAll(Collection<? extends T> c)
- Specified by:
addAll in interface Collection<T>- Overrides:
addAll in class cz.cuni.amis.utils.collections.ObservableCollection<T>
clear
public void clear()
- Specified by:
clear in interface Collection<T>- Overrides:
clear in class cz.cuni.amis.utils.collections.ObservableCollection<T>
iterator
public Iterator<T> iterator()
- Specified by:
iterator in interface Iterable<T>- Specified by:
iterator in interface Collection<T>- Overrides:
iterator in class cz.cuni.amis.utils.collections.ObservableCollection<T>
remove
public boolean remove(Object o)
- Specified by:
remove in interface Collection<T>- Overrides:
remove in class cz.cuni.amis.utils.collections.ObservableCollection<T>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll in interface Collection<T>- Overrides:
removeAll in class cz.cuni.amis.utils.collections.ObservableCollection<T>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll in interface Collection<T>- Overrides:
retainAll in class cz.cuni.amis.utils.collections.ObservableCollection<T>
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.