|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.mospace.swing.table.TableSorter
public class TableSorter
A Table sorter along the lines of the TableSorter from Sun's Swing Tutorial.
For a given SortableTableModel its sort and
randomize methods produce a one-to-one mapping
between entries and row numbers.
| Field Summary | |
|---|---|
static int |
FWD
index of the row-for-entry mapping in the arrays returned by the sort and randomize methods. |
static int |
INV
index of the entry-for-row mapping in the arrays returned by the sort and randomize methods. |
| Constructor Summary | |
|---|---|
TableSorter()
Constructs a new TableSorter. |
|
| Method Summary | |
|---|---|
int[][] |
randomize(SortableTableModel m)
Returns a random row-entry mapping for the specified SortableTableModel. |
int[][] |
sort(SortableTableModel m)
Sorts the specified table model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FWD
sort and randomize methods.
public static final int INV
sort and randomize methods.
| Constructor Detail |
|---|
public TableSorter()
| Method Detail |
|---|
public int[][] sort(SortableTableModel m)
m - the data to sort
public int[][] randomize(SortableTableModel m)
m - the data to randomize
|
Mp3dings 20100427 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||