public class BaseListModel<T> extends ArrayList<T> implements ListModel, Serializable, Reorderable
| Modifier and Type | Field and Description |
|---|---|
protected EventListenerList |
listenerList |
modCount| Constructor and Description |
|---|
BaseListModel() |
BaseListModel(Collection<? extends T> values) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
T element) |
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> c) |
boolean |
addAll(int index,
Collection<? extends T> c) |
void |
addListDataListener(ListDataListener l) |
void |
clear() |
protected void |
fireContentsChanged(Object source,
int index0,
int index1) |
protected void |
fireIntervalAdded(Object source,
int index0,
int index1) |
protected void |
fireIntervalRemoved(Object source,
int index0,
int index1) |
T |
getElementAt(int index) |
ListDataListener[] |
getListDataListeners() |
<V extends EventListener> |
getListeners(Class<V> listenerType) |
int |
getSize() |
T |
remove(int index) |
boolean |
remove(Object obj) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeAll(Object... c) |
void |
removeListDataListener(ListDataListener l) |
void |
removeRange(int fromIndex,
int toIndex) |
void |
reorder(int fromIndex,
int toIndex) |
T |
set(int index,
T element) |
void |
setAll(Collection<? extends T> c) |
clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, retainAll, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeprotected EventListenerList listenerList
public BaseListModel()
public BaseListModel(Collection<? extends T> values)
public void add(int index,
T element)
public boolean add(T e)
public boolean addAll(Collection<? extends T> c)
public boolean addAll(int index,
Collection<? extends T> c)
public void addListDataListener(ListDataListener l)
addListDataListener in interface ListModelpublic void clear()
protected void fireContentsChanged(Object source, int index0, int index1)
protected void fireIntervalAdded(Object source, int index0, int index1)
protected void fireIntervalRemoved(Object source, int index0, int index1)
public T getElementAt(int index)
getElementAt in interface ListModelpublic ListDataListener[] getListDataListeners()
public <V extends EventListener> V[] getListeners(Class<V> listenerType)
public T remove(int index)
public boolean remove(Object obj)
public boolean removeAll(Collection<?> c)
public boolean removeAll(Object... c)
public void removeListDataListener(ListDataListener l)
removeListDataListener in interface ListModelpublic void removeRange(int fromIndex,
int toIndex)
removeRange in class ArrayList<T>public void reorder(int fromIndex,
int toIndex)
reorder in interface Reorderablepublic void setAll(Collection<? extends T> c)
Copyright © 2015 Revolution Systems Inc.. All rights reserved.