Package groovy.swing.impl
Class ListWrapperListModel<E>
java.lang.Object
javax.swing.AbstractListModel
groovy.swing.impl.ListWrapperListModel<E>
- All Implemented Interfaces:
Serializable
,ListModel
public class ListWrapperListModel<E> extends AbstractListModel
A
ListModel
implementation that's backed by a live List
.- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
Constructor Summary
Constructors Constructor Description ListWrapperListModel(List<E> delegateList)
-
Method Summary
Modifier and Type Method Description void
add(int i, E e)
boolean
add(E e)
boolean
addAll(int i, Collection<? extends E> es)
boolean
addAll(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)
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
Constructor Details
-
ListWrapperListModel
-
-
Method Details
-
getDelegateList
-
getSize
public int getSize() -
getElementAt
-
set
-
clear
public void clear() -
lastIndexOf
-
contains
-
listIterator
-
isEmpty
public boolean isEmpty() -
indexOf
-
add
-
iterator
-
addAll
-
remove
-
addAll
-
listIterator
-
containsAll
-
remove
-
add
-
get
-
toArray
public <T> T[] toArray(T[] ts) -
toArray
-
removeRange
public void removeRange(int fromIndex, int toIndex)
-