Package 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()
-
-
-
Method Detail
-
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 classjava.lang.Object
-
-