T - public final class SortableListModelImpl<T> extends javax.swing.AbstractListModel implements SortableListModel<T>
ListModel for use with JList.| Constructor and Description |
|---|
SortableListModelImpl() |
SortableListModelImpl(java.util.Collection<T> traces) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T element) |
boolean |
addAll(java.lang.Iterable<T> elements) |
void |
clear() |
T |
getElementAt(int index) |
int |
getSize() |
void |
sort(java.util.Comparator<T> comparator) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerpublic SortableListModelImpl()
public SortableListModelImpl(java.util.Collection<T> traces)
public int getSize()
getSize in interface javax.swing.ListModelpublic T getElementAt(int index)
getElementAt in interface javax.swing.ListModelpublic boolean add(T element)
add in interface SortableListModel<T>public boolean addAll(java.lang.Iterable<T> elements)
addAll in interface SortableListModel<T>public void sort(java.util.Comparator<T> comparator)
sort in interface SortableListModel<T>public void clear()
clear in interface SortableListModel<T>