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

Package class diagram package ObservingCollection
java.lang.Object
  extended by cz.cuni.amis.utils.collections.ObservableCollection<T>
      extended by 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

Field Summary
 
Fields inherited from class cz.cuni.amis.utils.collections.ObservableCollection
col, eventListeners
 
Constructor Summary
ObservingCollection()
           
 
Method Summary
 boolean add(T e)
           
 boolean addAll(Collection<? extends T> c)
           
 void clear()
           
 Iterator<T> iterator()
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 void removeObserved()
           
 boolean retainAll(Collection<?> c)
           
 void setObserved(cz.cuni.amis.utils.collections.ObservableCollection<T> newCol)
           
 
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
 
Methods inherited from interface java.util.Collection
contains, containsAll, equals, hashCode, isEmpty, size, toArray, toArray
 

Constructor Detail

ObservingCollection

public ObservingCollection()
Method Detail

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.