public class SortedListModel
extends javax.swing.AbstractListModel
Constructor and Description |
---|
SortedListModel(ParameterComparatorFactory cf,
Sorter theSorter,
java.lang.Object[] objects)
Creates a new instance of SortedListModel
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getElementAt(int index)
Returns the value at the specified index.
|
int |
getSize()
Returns the length of the list.
|
void |
setElements(java.lang.Object[] objects)
Set the contents of the ListModel and notifies its listeners.
|
void |
sort(java.util.LinkedList criteres)
Sort the list
|
public SortedListModel(ParameterComparatorFactory cf, Sorter theSorter, java.lang.Object[] objects)
public java.lang.Object getElementAt(int index)
index
- the requested indexindex
public int getSize()
public void setElements(java.lang.Object[] objects)
objects
- the objects to put in the listpublic void sort(java.util.LinkedList criteres)
criteres
- the list of criteria whith which the list will be sorted.