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 voidadd(int i, E e)booleanadd(E e)booleanaddAll(int i, Collection<? extends E> es)booleanaddAll(Collection<? extends E> es)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> objects)Eget(int i)List<E>getDelegateList()ObjectgetElementAt(int i)intgetSize()intindexOf(Object o)booleanisEmpty()Iterator<E>iterator()intlastIndexOf(Object o)ListIterator<E>listIterator()ListIterator<E>listIterator(int i)Eremove(int i)booleanremove(Object o)voidremoveRange(int fromIndex, int toIndex)Eset(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)
-