|
||||||||||
| 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 javax.swing.RowSorter.SortKey |
getFirstSortingKey(java.util.List<? extends javax.swing.RowSorter.SortKey> keys)
Returns the first SortKey in the list which is sorted. |
static javax.swing.RowSorter.SortKey |
getFirstSortKeyForColumn(java.util.List<? extends javax.swing.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(javax.swing.SortOrder sortOrder)
Convenience to check for ascending sort order. |
static boolean |
isSorted(javax.swing.SortOrder sortOrder)
|
static boolean |
isSorted(javax.swing.SortOrder sortOrder,
boolean ascending)
|
static javax.swing.RowSorter.SortKey |
removeFirstSortKeyForColumn(java.util.List<? extends javax.swing.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 javax.swing.RowSorter.SortKey getFirstSortingKey(java.util.List<? extends javax.swing.RowSorter.SortKey> keys)
keys - a list of SortKeys to search
public static javax.swing.RowSorter.SortKey getFirstSortKeyForColumn(java.util.List<? extends javax.swing.RowSorter.SortKey> keys,
int modelColumn)
keys - a list of SortKeys to searchmodelColumn - the column index in model coordinates
public static javax.swing.RowSorter.SortKey removeFirstSortKeyForColumn(java.util.List<? extends javax.swing.RowSorter.SortKey> keys,
int modelColumn)
keys - a list of SortKeys to searchmodelColumn - the column index in model coordinates
public static boolean isSorted(javax.swing.SortOrder sortOrder)
public static boolean isAscending(javax.swing.SortOrder sortOrder)
public static boolean isSorted(javax.swing.SortOrder sortOrder,
boolean ascending)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||