userInterface.interfaceUtility
Class SortableTable

java.lang.Object
  extended by userInterface.interfaceUtility.Format
      extended by userInterface.interfaceUtility.SortableTable

public class SortableTable
extends Format

Generate the sortable table.

Author:
03chowch

Field Summary
static int COLLINK
           
static int COLNAME
           
 
Constructor Summary
SortableTable()
           
 
Method Summary
static java.lang.StringBuffer genTable(int sortIndex, boolean ascend, java.lang.String[][] colHeader, java.lang.String[][] tableData, java.lang.String next, java.lang.String previous)
          Generate the sortable table depending on the data given.
 
Methods inherited from class userInterface.interfaceUtility.Format
alignCloseTag, alignOpenTag, alignTag
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLNAME

public static final int COLNAME
See Also:
Constant Field Values

COLLINK

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

SortableTable

public SortableTable()
Method Detail

genTable

public static java.lang.StringBuffer genTable(int sortIndex,
                                              boolean ascend,
                                              java.lang.String[][] colHeader,
                                              java.lang.String[][] tableData,
                                              java.lang.String next,
                                              java.lang.String previous)
Generate the sortable table depending on the data given.

Parameters:
sortIndex - - the column index being sorted
ascend - - indicator of ascending sort or not
colHeader - - column header information for the sortable table. This is a two dimensional array where each element in this array is a String array of size two. The first element of this array is the column name and the second element of this array is a URL corresponding to the sort action of this column.
next - - the link to the next set of sortable data to display
previous - - the link to the previous set of sortable data to display
tableData - - data for the sortable table
Returns: