public class ObservableList<E> extends Object implements List<E>, ObservableCollection
| Modifier and Type | Field and Description |
|---|---|
protected CollectionChangeSupport |
ccs |
| Constructor and Description |
|---|
ObservableList(List<E> list) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E element) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> elements) |
boolean |
addAll(int index,
Collection<? extends E> elements) |
void |
addCollectionChangeListener(CollectionChangeListener listener) |
void |
clear() |
boolean |
contains(Object element) |
boolean |
containsAll(Collection<?> collection) |
E |
get(int index) |
protected List<E> |
getWrappedList() |
int |
indexOf(Object element) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object element) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int index) |
E |
remove(int index) |
boolean |
remove(Object element) |
boolean |
removeAll(Collection<?> collection) |
void |
removeCollectionChangeListener(CollectionChangeListener listener) |
boolean |
retainAll(Collection<?> collection) |
E |
set(int index,
E element) |
int |
size() |
List<E> |
subList(int start,
int end) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
protected CollectionChangeSupport ccs
public ObservableList(List<E> list)
protected List<E> getWrappedList()
public void addCollectionChangeListener(CollectionChangeListener listener)
addCollectionChangeListener in interface ObservableCollectionpublic void removeCollectionChangeListener(CollectionChangeListener listener)
removeCollectionChangeListener in interface ObservableCollectionpublic boolean addAll(Collection<? extends E> elements)
public boolean addAll(int index, Collection<? extends E> elements)
public boolean removeAll(Collection<?> collection)
public boolean retainAll(Collection<?> collection)
public void clear()
public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<E>containsAll in interface List<E>public int lastIndexOf(Object element)
lastIndexOf in interface List<E>public boolean isEmpty()
public int size()
public <T> T[] toArray(T[] array)
public ListIterator<E> listIterator()
listIterator in interface List<E>public ListIterator<E> listIterator(int index)
listIterator in interface List<E>