JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.table
Class Sort

java.lang.Object
  |
  +--com.klg.jclass.table.Sort

public class Sort
extends Object

Static methods to process column sorting.


Field Summary
static int ASCENDING
           
static int DESCENDING
           
 
Constructor Summary
Sort()
           
 
Method Summary
static boolean sortByColumn(com.klg.jclass.table.JCTable table, int[] columns, int[] directions, Comparator comparator)
          Sorts a table by multiple columns.
static boolean sortByColumn(com.klg.jclass.table.JCTable table, int[] columns, int[] directions, int start_row, int end_row, Comparator comparator)
          Sorts a table by multiple columns for a range of rows.
static boolean sortByColumn(com.klg.jclass.table.JCTable table, int column, int direction, Comparator comparator)
          Sorts a table by column and direction.
static boolean sortByColumn(com.klg.jclass.table.JCTable table, int column, int direction, int start_row, int end_row, Comparator comparator)
          Sorts a table by column and direction for a range of rows.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASCENDING

public static final int ASCENDING
See Also:
Constant Field Values

DESCENDING

public static final int DESCENDING
See Also:
Constant Field Values
Constructor Detail

Sort

public Sort()
Method Detail

sortByColumn

public static boolean sortByColumn(com.klg.jclass.table.JCTable table,
                                   int column,
                                   int direction,
                                   Comparator comparator)
Sorts a table by column and direction.


sortByColumn

public static boolean sortByColumn(com.klg.jclass.table.JCTable table,
                                   int column,
                                   int direction,
                                   int start_row,
                                   int end_row,
                                   Comparator comparator)
Sorts a table by column and direction for a range of rows.


sortByColumn

public static boolean sortByColumn(com.klg.jclass.table.JCTable table,
                                   int[] columns,
                                   int[] directions,
                                   Comparator comparator)
Sorts a table by multiple columns.


sortByColumn

public static boolean sortByColumn(com.klg.jclass.table.JCTable table,
                                   int[] columns,
                                   int[] directions,
                                   int start_row,
                                   int end_row,
                                   Comparator comparator)
Sorts a table by multiple columns for a range of rows.


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