org.springframework.richclient.table
Interface SortableTableModel

All Superinterfaces:
TableModel
All Known Implementing Classes:
ShuttleSortableTableModel

public interface SortableTableModel
extends TableModel

Author:
Keith Donald

Method Summary
 int[] convertDataIndexesToSortedIndexes(int[] index)
           
 int[] convertSortedIndexesToDataIndexes(int[] index)
           
 int convertSortedIndexToDataIndex(int index)
           
 TableModel getFilteredModel()
           
 void setComparator(int columnIndex, Comparator comparator)
           
 void sortByColumn(ColumnToSort columnToSort)
           
 void sortByColumns(ColumnToSort[] columnsToSort)
           
 int[] sortByColumns(ColumnToSort[] columnsToSort, int[] selectedIndexes)
           
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

getFilteredModel

TableModel getFilteredModel()

setComparator

void setComparator(int columnIndex,
                   Comparator comparator)

convertSortedIndexToDataIndex

int convertSortedIndexToDataIndex(int index)

convertSortedIndexesToDataIndexes

int[] convertSortedIndexesToDataIndexes(int[] index)

convertDataIndexesToSortedIndexes

int[] convertDataIndexesToSortedIndexes(int[] index)

sortByColumn

void sortByColumn(ColumnToSort columnToSort)

sortByColumns

void sortByColumns(ColumnToSort[] columnsToSort)

sortByColumns

int[] sortByColumns(ColumnToSort[] columnsToSort,
                    int[] selectedIndexes)


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.