public class SortedColumnInfo
extends java.lang.Object
| Constructor and Description |
|---|
SortedColumnInfo(int columnIndex,
boolean ascending)
Creates
SortedColumnInfo object with specified
columnIndex and sort order. |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnIndex()
Returns model column index.
|
boolean |
isAscending()
Returns columns sort order
|
protected void |
setAscending(boolean ascending)
Specifies column sort order.
|
protected void |
setColumnIndex(int columnIndex)
Specifies model column index.
|
public SortedColumnInfo(int columnIndex,
boolean ascending)
SortedColumnInfo object with specified
columnIndex and sort order.columnIndex - model column indexascending - true to set ascending sort order,
false to set descending sort orderSortedTableModel.setSortingColumns(java.util.List)public int getColumnIndex()
protected void setColumnIndex(int columnIndex)
SortedTableModel.getSortingColumns() because this
data is used for internal purpose.columnIndex - model column indexpublic boolean isAscending()
true if sort order ascending,
false if sort order descendingprotected void setAscending(boolean ascending)
SortedTableModel.getSortingColumns() because this
data is used for internal purpose.ascending - true to set ascending sort order,
false to set descending sort order