E
- public class ObservableCollection<E> extends Object implements Collection<E>
Modifier and Type | Field and Description |
---|---|
protected Collection<E> |
col |
protected Listeners<CollectionEventListener> |
eventListeners |
Constructor and Description |
---|
ObservableCollection(Collection c) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
addCollectionListener(CollectionEventListener listener) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
protected void |
notifyPostAdd(Collection<? extends E> add) |
protected void |
notifyPostRemove(Collection<?> remove) |
protected void |
notifyPreAdd(Collection<? extends E> add) |
protected void |
notifyPreRemove(Collection<?> remove) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeCollectionListener(CollectionEventListener listener) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode
protected Collection<E> col
protected Listeners<CollectionEventListener> eventListeners
public ObservableCollection(Collection c)
public void addCollectionListener(CollectionEventListener listener)
public boolean removeCollectionListener(CollectionEventListener listener)
public int size()
size
in interface Collection<E>
public boolean isEmpty()
isEmpty
in interface Collection<E>
public boolean contains(Object o)
contains
in interface Collection<E>
public Object[] toArray()
toArray
in interface Collection<E>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<E>
public boolean add(E e)
add
in interface Collection<E>
public boolean remove(Object o)
remove
in interface Collection<E>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
public boolean addAll(Collection<? extends E> c)
addAll
in interface Collection<E>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<E>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<E>
public void clear()
clear
in interface Collection<E>
protected void notifyPreAdd(Collection<? extends E> add)
protected void notifyPostAdd(Collection<? extends E> add)
protected void notifyPreRemove(Collection<?> remove)
protected void notifyPostRemove(Collection<?> remove)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.