com.metamatrix.toolbox.ui.widget.table
Class DefaultTableSorter

java.lang.Object
  extended by com.metamatrix.toolbox.ui.widget.table.DefaultTableSorter
All Implemented Interfaces:
TableSorter

public class DefaultTableSorter
extends java.lang.Object
implements TableSorter

Since:
Golden Gate
Version:
Golden Gate
Author:
John P. A. Verhaeg

Constructor Summary
DefaultTableSorter()
           
 
Method Summary
 int getInsertionIndex(java.util.List rowData, java.util.List rows, java.util.List sortedRowMap, java.util.List sortedColumns, TableComparator comparator, int maximumRowIndex)
          determine where the specified row of the table belongs given the specified parameters
static DefaultTableSorter getInstance()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTableSorter

public DefaultTableSorter()
Method Detail

getInstance

public static DefaultTableSorter getInstance()
Since:
Golden Gate

getInsertionIndex

public int getInsertionIndex(java.util.List rowData,
                             java.util.List rows,
                             java.util.List sortedRowMap,
                             java.util.List sortedColumns,
                             TableComparator comparator,
                             int maximumRowIndex)
Description copied from interface: TableSorter
determine where the specified row of the table belongs given the specified parameters

Specified by:
getInsertionIndex in interface TableSorter
Parameters:
rowData - the Vector of table row data currently being examined.
rows - a List of table row Vectors that consists of the entire table.
sortedRowMap - the current ordered list of model row index values
Since:
Golden Gate


Copyright © 2009. All Rights Reserved.