On this page
[Java] Class ListWrapperListModel<E>
- groovy.swing.impl.ListWrapperListModel
public class ListWrapperListModel<E>
extends AbstractListModel
A ListModel
implementation that's backed by a live List
.
Constructor Summary
Constructor and description |
---|
ListWrapperListModel(List<E> delegateList) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
public void |
add(int i, E e) |
|
public boolean |
add(E e) |
|
public boolean |
addAll(Collection<? extends E> es) |
|
public boolean |
addAll(int i, Collection<? extends E> es) |
|
public void |
clear() |
|
public boolean |
contains(Object o) |
|
public boolean |
containsAll(Collection<?> objects) |
|
public E |
get(int i) |
|
public List<E> |
getDelegateList() |
|
public Object |
getElementAt(int i) |
|
public int |
getSize() |
|
public int |
indexOf(Object o) |
|
public boolean |
isEmpty() |
|
public Iterator<E> |
iterator() |
|
public int |
lastIndexOf(Object o) |
|
public ListIterator<E> |
listIterator() |
|
public ListIterator<E> |
listIterator(int i) |
|
public E |
remove(int i) |
|
public boolean |
remove(Object o) |
|
public void |
removeRange(int fromIndex, int toIndex) |
|
public E |
set(int i, E e) |
|
<T> |
public T[] |
toArray(T[] ts) |
public Object[] |
toArray() |
Constructor Detail
public ListWrapperListModel(List<E> delegateList)
Method Detail
public void add(int i, E e)
public boolean add(E e)
public boolean addAll(Collection<? extends E> es)
public boolean addAll(int i, Collection<? extends E> es)
public void clear()
public boolean contains(Object o)
public boolean containsAll(Collection<?> objects)
public E get(int i)
public List<E> getDelegateList()
@Override public Object getElementAt(int i)
@Override public int getSize()
public int indexOf(Object o)
public boolean isEmpty()
public Iterator<E> iterator()
public int lastIndexOf(Object o)
public ListIterator<E> listIterator()
public ListIterator<E> listIterator(int i)
public E remove(int i)
public boolean remove(Object o)
public void removeRange(int fromIndex, int toIndex)
public E set(int i, E e)
<T> public T[] toArray(T[] ts)
public Object[] toArray()
© 2003-2022 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/4.0.0/html/gapi/groovy/swing/impl/ListWrapperListModel.html