com.klg.jclass.higrid
Class ColumnSortable
java.lang.Object
|
+--com.klg.jclass.higrid.ColumnSortable
- All Implemented Interfaces:
- Comparator, Serializable
- public class ColumnSortable
- extends Object
- implements Serializable, Comparator
Implementation of the Comparator interface to sort specific columns.
- Since:
- JClass 4.0K for Java 2. If you are using JClass 4.0J,
which is based on JDK 1.1, the Comparator implementation
is based on
com.sun.java.util.collections.Comparator
.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sortable
protected Comparator sortable
directions
protected int[] directions
ColumnSortable
public ColumnSortable(Comparator sortable,
int[] directions)
- Default constructor.
- Since:
- JClass 4.0K for Java 2. If you are using JClass 4.0J,
which is based on JDK 1.1, this constructor's parameter must be
a
com.sun.java.util.collections.Comparator
.
compare
public int compare(Object a,
Object b)
- Compares its two arguments for order.
- Specified by:
compare
in interface Comparator
- Returns:
- a negative integer, zero, or a positive integer as the first argument
is less than, equal to, or greater than the second.