JClass DesktopViews 6.3.0 API
Documentation

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

Field Summary
protected  int[] directions
           
protected  Comparator sortable
           
 
Constructor Summary
ColumnSortable(Comparator sortable, int[] directions)
          Default constructor.
 
Method Summary
 int compare(Object a, Object b)
          Compares its two arguments for order.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

sortable

protected Comparator sortable

directions

protected int[] directions
Constructor Detail

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.
Method Detail

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.

Copyright © 2004 Quest Software Inc..
All rights reserved.