T - the type of elements
public class ArrayListModel<T> extends AbstractListModel<T>
listenerList| Constructor and Description |
|---|
ArrayListModel()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(T element, int index)
Add the given element to the model.
|
void |
addAll(Collection
Add the given elements to the model
|
T |
getElementAt(int index)
|
int |
getSize()
|
void |
remove(int index)
Remove the element at the denoted index from the model.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerpublic void add(T element, int index)
element - the element to add.
index - the index where to insert.
public void addAll(Collection<? extends T> insElements, int index)
insElements - the elements to add.
index - the index where to insert.
public void remove(int index)
index - the index of the element to remove.
public int getSize()
public T getElementAt(int index)