E
- type of elements in the table modelpublic class SortedListModel<E> extends AbstractListModel<E>
listenerList
Constructor and Description |
---|
SortedListModel(Comparator<E> comparator)
Create a SortedListModel with comparator.
|
SortedListModel(Comparator<E> comparator,
Collection<E> collection)
Create a SortedListModel with comparator and initalize with the list of
objects in collection.
|
Modifier and Type | Method and Description |
---|---|
void |
add(E o)
Add o to the list.
|
E |
getElementAt(int index) |
int |
getSize() |
void |
remove(E o)
Remove the first occurrance of o from the list.
|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public SortedListModel(Comparator<E> comparator)
public SortedListModel(Comparator<E> comparator, Collection<E> collection)