org.sourcejammer.client.gui.jsorttable
Class ColumnComparator

java.lang.Object
  |
  +--org.sourcejammer.client.gui.jsorttable.ColumnComparator
All Implemented Interfaces:
java.util.Comparator

public class ColumnComparator
extends java.lang.Object
implements java.util.Comparator


Field Summary
protected  boolean ascending
           
protected  int index
           
 
Constructor Summary
ColumnComparator(int index, boolean ascending)
           
 
Method Summary
 int compare(java.lang.Object one, java.lang.Object two)
           
 
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

index

protected int index

ascending

protected boolean ascending
Constructor Detail

ColumnComparator

public ColumnComparator(int index,
                        boolean ascending)
Method Detail

compare

public int compare(java.lang.Object one,
                   java.lang.Object two)
Specified by:
compare in interface java.util.Comparator


Copyright 2003 Soucejammer project.