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 SummaryFields inherited from class javax.swing.AbstractListModellistenerList
- 
Constructor SummaryConstructors Constructor Description ListWrapperListModel(java.util.List<E> delegateList)
- 
Method SummaryModifier 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.AbstractListModeladdListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Constructor Details- 
ListWrapperListModel
 
- 
- 
Method Details- 
getDelegateList
- 
getSizepublic int getSize()
- 
getElementAtpublic java.lang.Object getElementAt(int i)
- 
set
- 
clearpublic void clear()
- 
lastIndexOfpublic int lastIndexOf(java.lang.Object o)
- 
containspublic boolean contains(java.lang.Object o)
- 
listIterator
- 
isEmptypublic boolean isEmpty()
- 
indexOfpublic int indexOf(java.lang.Object o)
- 
add
- 
iterator
- 
addAll
- 
remove
- 
addAll
- 
listIterator
- 
containsAllpublic boolean containsAll(java.util.Collection<?> objects)
- 
removepublic boolean remove(java.lang.Object o)
- 
add
- 
get
- 
toArraypublic <T> T[] toArray(T[] ts)
- 
toArraypublic java.lang.Object[] toArray()
- 
removeRangepublic void removeRange(int fromIndex, int toIndex)
 
-