Package groovy.swing.impl
Class ListWrapperListModel<E>
java.lang.Object
javax.swing.AbstractListModel
groovy.swing.impl.ListWrapperListModel<E>
- All Implemented Interfaces:
 java.io.Serializable,javax.swing.ListModel
public class ListWrapperListModel<E>
extends javax.swing.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(java.util.List<E> delegateList) - 
Method Summary
Modifier and Type Method Description voidadd(int i, E e)booleanadd(E e)booleanaddAll(int i, java.util.Collection<? extends E> es)booleanaddAll(java.util.Collection<? extends E> es)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> objects)Eget(int i)java.util.List<E>getDelegateList()java.lang.ObjectgetElementAt(int i)intgetSize()intindexOf(java.lang.Object o)booleanisEmpty()java.util.Iterator<E>iterator()intlastIndexOf(java.lang.Object o)java.util.ListIterator<E>listIterator()java.util.ListIterator<E>listIterator(int i)Eremove(int i)booleanremove(java.lang.Object o)voidremoveRange(int fromIndex, int toIndex)Eset(int i, E e)java.lang.Object[]toArray()<T> T[]toArray(T[] ts)Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Constructor Details
- 
ListWrapperListModel
 
 - 
 - 
Method Details
- 
getDelegateList
 - 
getSize
public int getSize() - 
getElementAt
public java.lang.Object getElementAt(int i) - 
set
 - 
clear
public void clear() - 
lastIndexOf
public int lastIndexOf(java.lang.Object o) - 
contains
public boolean contains(java.lang.Object o) - 
listIterator
 - 
isEmpty
public boolean isEmpty() - 
indexOf
public int indexOf(java.lang.Object o) - 
add
 - 
iterator
 - 
addAll
 - 
remove
 - 
addAll
 - 
listIterator
 - 
containsAll
public boolean containsAll(java.util.Collection<?> objects) - 
remove
public boolean remove(java.lang.Object o) - 
add
 - 
get
 - 
toArray
public <T> T[] toArray(T[] ts) - 
toArray
public java.lang.Object[] toArray() - 
removeRange
public void removeRange(int fromIndex, int toIndex) 
 -