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