| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private int[] | |
| protected TableModel |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public int | compare(Object row1, Object row2)
Implements java. Implementation of the comparator method. |
| public int | |
| public abstract Comparable | getValueForColumn(Object
Row object that was passed into Comparator. obj, int the column to retrieve column)Returns the value for the comparing object for the column. |
| public boolean | |
| public void |
| ascending | back to summary |
|---|---|
| private boolean ascending | |
| columns | back to summary |
|---|---|
| private int[] columns | |
| model | back to summary |
|---|---|
| protected TableModel model | |
| TableModelComparator | back to summary |
|---|---|
| public TableModelComparator(TableModel model) | |
| addColumn | back to summary |
|---|---|
| public void addColumn(int column) Add the column to the sort criteria | |
| compare | back to summary |
|---|---|
| public int compare(Object row1, Object row2) Implements java. Implementation of the comparator method. A comparison is made for rows. | |
| getColumn | back to summary |
|---|---|
| public int getColumn() Get the last column that was sorted | |
| getValueForColumn | back to summary |
|---|---|
| public abstract Comparable Returns the value for the comparing object for the column.
| |
| isAscending | back to summary |
|---|---|
| public boolean isAscending() | |
| setAscending | back to summary |
|---|---|
| public void setAscending(boolean ascending) | |