org.jdesktop.swingx.decorator
Class SortOrder
java.lang.Object
org.jdesktop.swingx.decorator.SortOrder
public final class SortOrder
- extends java.lang.Object
Encasulates sort state.
There are several conenience methods to simplify usage of the three possible states
(unsorted, ascending sorted, descending sorted).
PENDING: incomplete.
Method Summary |
boolean |
isAscending()
Convenience to check for ascending sort order. |
boolean |
isSorted()
Convenience to check if the order is sorted. |
boolean |
isSorted(boolean ascending)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ASCENDING
public static final SortOrder ASCENDING
DESCENDING
public static final SortOrder DESCENDING
UNSORTED
public static final SortOrder UNSORTED
isSorted
public boolean isSorted()
- Convenience to check if the order is sorted.
- Returns:
- false if unsorted, true for ascending/descending.
isSorted
public boolean isSorted(boolean ascending)
isAscending
public boolean isAscending()
- Convenience to check for ascending sort order.
PENDING: is this helpful at all?
- Returns:
- true if ascendingly sorted, false for unsorted/descending.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object