public class ListWrapperListModel<E> extends AbstractListModel
ListModel
implementation that's backed by a live List
.listenerList
Constructor and Description |
---|
ListWrapperListModel(List<E> delegateList) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
void |
add(int i,
E e) |
boolean |
addAll(Collection<? extends E> es) |
boolean |
addAll(int i,
Collection<? extends E> es) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> objects) |
E |
get(int i) |
List<E> |
getDelegateList() |
Object |
getElementAt(int i) |
int |
getSize() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<E> |
listIterator() |
ListIterator<E> |
listIterator(int i) |
E |
remove(int i) |
boolean |
remove(Object o) |
void |
removeRange(int fromIndex,
int toIndex) |
E |
set(int i,
E e) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] ts) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public int getSize()
public Object getElementAt(int i)
public void clear()
public int lastIndexOf(Object o)
public boolean contains(Object o)
public ListIterator<E> listIterator()
public boolean isEmpty()
public int indexOf(Object o)
public void add(int i, E e)
public boolean addAll(Collection<? extends E> es)
public E remove(int i)
public boolean addAll(int i, Collection<? extends E> es)
public ListIterator<E> listIterator(int i)
public boolean containsAll(Collection<?> objects)
public boolean remove(Object o)
public boolean add(E e)
public E get(int i)
public <T> T[] toArray(T[] ts)
public Object[] toArray()
public void removeRange(int fromIndex, int toIndex)