quick.dbtable
Interface Sorter


public interface Sorter

Sorter class which defines the algorithm that should be used for sorting. If you feel that the sorting algorithm which is inbuilt within quicktable is not efficient, then you can implement your own sorting mechanism using this class.


Method Summary
 int[] sort(boolean ascending, java.util.Vector columnVector, javax.swing.table.TableModel tm)
          This function is called whenever the data in the quicktable need to be sorted
 

Method Detail

sort

public int[] sort(boolean ascending,
                  java.util.Vector columnVector,
                  javax.swing.table.TableModel tm)
This function is called whenever the data in the quicktable need to be sorted

Parameters:
ascending - The order in which we want to sort
columnVector - The vector of columns based on which we have to sort
Returns:
the sorted int row array