Package org.jdesktop.swingx.decorator
Class SortOrder
- java.lang.Object
-
- org.jdesktop.swingx.decorator.SortOrder
-
public final class SortOrder extends java.lang.ObjectEncasulates 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 booleanisAscending()Convenience to check for ascending sort order.booleanisSorted()Convenience to check if the order is sorted.booleanisSorted(boolean ascending)java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
-