userInterface.interfaceUtility
Class SortableTable
java.lang.Object
userInterface.interfaceUtility.Format
userInterface.interfaceUtility.SortableTable
public class SortableTable
- extends Format
Generate the sortable table.
- Author:
- 03chowch
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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COLNAME
public static final int COLNAME
- See Also:
- Constant Field Values
COLLINK
public static final int COLLINK
- See Also:
- Constant Field Values
SortableTable
public SortableTable()
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 sortedascend
- - indicator of ascending sort or notcolHeader
- - 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 displayprevious
- - the link to the previous set of sortable data to displaytableData
- - data for the sortable table
- Returns: