Package groovy.swing.impl
Class ListWrapperListModel<E>
java.lang.Object
javax.swing.AbstractListModel
groovy.swing.impl.ListWrapperListModel<E>
- All Implemented Interfaces:
Serializable,ListModel
A
ListModel implementation that's backed by a live List.- See Also:
-
Field Summary
Fields inherited from class javax.swing.AbstractListModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int i, Collection<? extends E> es) booleanaddAll(Collection<? extends E> es) voidclear()booleanbooleancontainsAll(Collection<?> objects) get(int i) getElementAt(int i) intgetSize()intbooleanisEmpty()iterator()intlistIterator(int i) remove(int i) booleanvoidremoveRange(int fromIndex, int toIndex) 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)
-