|
swingx Version 2009-07-31 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdesktop.swingx.sort.SortUtils
public class SortUtils
Collection of convenience methods.
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static RowSorter.SortKey getFirstSortingKey(List<? extends RowSorter.SortKey> keys)
keys - a list of SortKeys to search
public static RowSorter.SortKey getFirstSortKeyForColumn(List<? extends RowSorter.SortKey> keys,
int modelColumn)
keys - a list of SortKeys to searchmodelColumn - the column index in model coordinates
public static RowSorter.SortKey removeFirstSortKeyForColumn(List<? extends RowSorter.SortKey> keys,
int modelColumn)
keys - a list of SortKeys to searchmodelColumn - the column index in model coordinates
public static boolean isSorted(SortOrder sortOrder)
public static boolean isAscending(SortOrder sortOrder)
public static boolean isSorted(SortOrder sortOrder,
boolean ascending)
|
swingx Version 2009-07-31 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||