public class ObservableArrayList<T> extends java.util.ArrayList<T> implements ObservableList<T>
ObservableList implementation using ArrayList as an implementation.ObservableList.OnListChangedCallback<T extends ObservableList>| Constructor and Description |
|---|
ObservableArrayList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T object) |
boolean |
add(T object) |
boolean |
addAll(java.util.Collection<? extends T> collection) |
boolean |
addAll(int index,
java.util.Collection<? extends T> collection) |
void |
addOnListChangedCallback(ObservableList.OnListChangedCallback listener)
Adds a callback to be notified when changes to the list occur.
|
void |
clear() |
T |
remove(int index) |
boolean |
remove(java.lang.Object object) |
void |
removeOnListChangedCallback(ObservableList.OnListChangedCallback listener)
Removes a callback previously added.
|
protected void |
removeRange(int fromIndex,
int toIndex) |
T |
set(int index,
T object) |
clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeAll, retainAll, size, subList, toArray, toArray, trimToSizepublic void addOnListChangedCallback(ObservableList.OnListChangedCallback listener)
ObservableListaddOnListChangedCallback in interface ObservableList<T>listener - The callback to be notified on list changespublic void removeOnListChangedCallback(ObservableList.OnListChangedCallback listener)
ObservableListremoveOnListChangedCallback in interface ObservableList<T>listener - The callback to remove.public boolean add(T object)
public void add(int index,
T object)
public boolean addAll(java.util.Collection<? extends T> collection)
public boolean addAll(int index,
java.util.Collection<? extends T> collection)
public void clear()
public T remove(int index)
public boolean remove(java.lang.Object object)
protected void removeRange(int fromIndex,
int toIndex)
removeRange in class java.util.ArrayList<T>