com.retek.commons.gui.table
Class RDisplayTableSort

java.lang.Object
  extended bycom.retek.commons.gui.table.RDisplayTableSort

public class RDisplayTableSort
extends java.lang.Object

This class sorts RDisplayTable based information by a specific column. This class is exclusive to the RDisplayTable and will only work on data formated for a RDisplayTable.

Retek Inc. Copyright (c) 2002


Constructor Summary
RDisplayTableSort()
          Returns new RDisplayTableSort object.
 
Method Summary
 void sortTable(java.util.ArrayList list, int[] columnArray, boolean[] orderArray)
          Sorts the input ArrayList based on the column number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDisplayTableSort

public RDisplayTableSort()
Returns new RDisplayTableSort object.

Method Detail

sortTable

public void sortTable(java.util.ArrayList list,
                      int[] columnArray,
                      boolean[] orderArray)
               throws java.lang.ClassCastException
Sorts the input ArrayList based on the column number. Each element of the ArrayList is a single table row (in other words, a RDisplayTableCell array);

Parameters:
list - The list of table rows to sort.
Throws:
java.lang.ClassCastException - Thrown if the data in a table element is not valid.


Copyright © 2005 Retek Inc. All Rights Reserved. - Generated at Fri, 01/21/2005 14:25