T
- The type of the list elements.public class ObservableList<T>
extends com.google.common.collect.ForwardingList<T>
ObservableList
maintains a list of observers
which are notified whenever the list changes.Constructor and Description |
---|
ObservableList() |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
add(T element) |
boolean |
addAll(java.util.Collection<? extends T> collection) |
boolean |
addAll(int index,
java.util.Collection<? extends T> elements) |
void |
addListObserver(IListObserver<T> listObserver)
Adds the given
IListObserver to the list of observers, which are
notified whenever this ObservableList changes. |
void |
clear() |
protected java.util.List<T> |
delegate() |
protected java.util.List<T> |
getBackingListCopy()
Returns a copy of the backing list.
|
protected void |
notifyChanged(java.util.List<T> old)
Notifies all observers that this list changed.
|
T |
remove(int index) |
boolean |
remove(java.lang.Object object) |
boolean |
removeAll(java.util.Collection<?> collection) |
void |
removeListObserver(IListObserver<T> listObserver)
Removes the given
IListObserver from the list of observers, which
are notfied whenever this ObservableList changes. |
boolean |
retainAll(java.util.Collection<?> collection) |
T |
set(int index,
T element) |
equals, get, hashCode, indexOf, lastIndexOf, listIterator, listIterator, standardAdd, standardAddAll, standardEquals, standardHashCode, standardIndexOf, standardIterator, standardLastIndexOf, standardListIterator, standardListIterator, standardSubList, subList
contains, containsAll, isEmpty, iterator, size, standardAddAll, standardClear, standardContains, standardContainsAll, standardIsEmpty, standardRemove, standardRemoveAll, standardRetainAll, standardToArray, standardToArray, standardToString, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public void add(int index, T element)
public boolean add(T element)
public boolean addAll(java.util.Collection<? extends T> collection)
public boolean addAll(int index, java.util.Collection<? extends T> elements)
public void addListObserver(IListObserver<T> listObserver)
IListObserver
to the list of observers, which are
notified whenever this ObservableList
changes.listObserver
- The IListObserver
to add.public void clear()
protected java.util.List<T> delegate()
delegate
in class com.google.common.collect.ForwardingList<T>
protected java.util.List<T> getBackingListCopy()
protected void notifyChanged(java.util.List<T> old)
old
- A copy of the list elements before the change.public T remove(int index)
public boolean remove(java.lang.Object object)
public boolean removeAll(java.util.Collection<?> collection)
public void removeListObserver(IListObserver<T> listObserver)
IListObserver
from the list of observers, which
are notfied whenever this ObservableList
changes.listObserver
- The IListObserver
to remove.public boolean retainAll(java.util.Collection<?> collection)
Copyright (c) 2014 itemis AG and others. All rights reserved.