public class TableSortInfo extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TableSortInfo.Entry
Immutable sorting information entry.
|
| Constructor and Description |
|---|
TableSortInfo()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the current sorting.
|
TableSortInfo |
cloneImmutable()
Create an immutable clone of this object.
|
int |
find(int pColumnIndex)
Find a sorting entry for a column.
|
int |
getColumn(int pEntryIndex)
Get colum information from a sorting entry.
|
boolean |
isAscending(int pEntryIndex)
Get ascending/descending information from a sorting entry.
|
boolean |
isSorted(int pColumnIndex)
Check if there is a sorting defined for a column.
|
int |
size()
Get the number of sorting information entries.
|
void |
sortByColumn(int pColumn,
boolean pAscending)
Append sorting information entry.
|
public TableSortInfo cloneImmutable()
public void clear()
public int size()
public boolean isSorted(int pColumnIndex)
pColumnIndex - model index of a columntrue if there is a sorting entry for the columnpublic int find(int pColumnIndex)
pColumnIndex - model index of a columnpublic int getColumn(int pEntryIndex)
pEntryIndex - index of sorting entrypublic boolean isAscending(int pEntryIndex)
pEntryIndex - index of sorting entrytrue if sorting is to be done ascendingpublic void sortByColumn(int pColumn,
boolean pAscending)
clear() first.pColumn - model index of column to be sortedpAscending - true if sorting is to be done ascendingCopyright © 2017 Jürgen Zeller (privat). All rights reserved.