Modifier | Constructor and Description |
---|---|
private |
SortUtils() |
Modifier and Type | Method and Description |
---|---|
static RowSorter.SortKey |
getFirstSortingKey(List<? extends RowSorter.SortKey> keys)
Returns the first SortKey in the list which is sorted.
|
static RowSorter.SortKey |
getFirstSortKeyForColumn(List<? extends RowSorter.SortKey> keys,
int modelColumn)
Returns the first SortKey in the list for the given column,
or null if the column has no SortKey.
|
static boolean |
isAscending(SortOrder sortOrder)
Convenience to check for ascending sort order.
|
static boolean |
isSorted(SortOrder sortOrder) |
static boolean |
isSorted(SortOrder sortOrder,
boolean ascending) |
static RowSorter.SortKey |
removeFirstSortKeyForColumn(List<? extends RowSorter.SortKey> keys,
int modelColumn)
Removes and returns the first SortKey in the list for the given column,
or null if the column has no SortKey.
|
private SortUtils()
public static RowSorter.SortKey getFirstSortingKey(List<? extends RowSorter.SortKey> keys)
keys
- a list of SortKeys to searchpublic static RowSorter.SortKey getFirstSortKeyForColumn(List<? extends RowSorter.SortKey> keys, int modelColumn)
keys
- a list of SortKeys to searchmodelColumn
- the column index in model coordinatespublic static RowSorter.SortKey removeFirstSortKeyForColumn(List<? extends RowSorter.SortKey> keys, int modelColumn)
keys
- a list of SortKeys to searchmodelColumn
- the column index in model coordinatespublic static boolean isAscending(SortOrder sortOrder)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses