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
AListModelimplementation that's backed by a liveList.- 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
All Methods Instance Methods Concrete Methods 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
-
-
-
-
Method Detail
-
getSize
public int getSize()
-
getElementAt
public Object getElementAt(int i)
-
clear
public void clear()
-
lastIndexOf
public int lastIndexOf(Object o)
-
contains
public boolean contains(Object o)
-
listIterator
public ListIterator<E> listIterator()
-
isEmpty
public boolean isEmpty()
-
indexOf
public int indexOf(Object o)
-
add
public void add(int i, E e)
-
addAll
public boolean addAll(Collection<? extends E> es)
-
remove
public E remove(int i)
-
addAll
public boolean addAll(int i, Collection<? extends E> es)
-
listIterator
public ListIterator<E> listIterator(int i)
-
containsAll
public boolean containsAll(Collection<?> objects)
-
remove
public boolean remove(Object o)
-
add
public boolean add(E e)
-
get
public E get(int i)
-
toArray
public <T> T[] toArray(T[] ts)
-
toArray
public Object[] toArray()
-
removeRange
public void removeRange(int fromIndex, int toIndex)
-
-