E
- type of elements in the table modelpublic class SortedListModel<E>
extends javax.swing.AbstractListModel<E>
Constructor and Description |
---|
SortedListModel(java.util.Comparator<E> comparator)
Create a SortedListModel with comparator.
|
SortedListModel(java.util.Comparator<E> comparator,
java.util.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.
|
public SortedListModel(java.util.Comparator<E> comparator)