biggests.tables
Class TableSorterFunctionIndividual

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by biggests.tables.TableSorter
          extended by biggests.tables.TableSorterFunctionIndividual
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class TableSorterFunctionIndividual
extends TableSorter

Title: Table Sorter for Tables of Functions of Biclusters

Description: A table model which allows for column sorting. This model implements table sorting for tables with Strings in the first two columns, Integers in the following two and Floats in the last ones (also two).

Copyright: Copyright (C) 2007 Joana Gonçalves This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class biggests.tables.TableSorter
ASCENDING, columnComparators, COMPARABLE_COMPARATOR, DESCENDING, LEXICAL_COMPARATOR, mouseListener, NOT_SORTED, tableHeader, tableModel
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TableSorterFunctionIndividual()
          Constructs a new TableSorterFunctionIndividual model.
TableSorterFunctionIndividual(javax.swing.table.TableModel tableModel)
          Constructs a new TableSorterFunctionIndividual model.
TableSorterFunctionIndividual(javax.swing.table.TableModel tableModel, TableHeader tableHeader)
          Constructs a new TableSorterFunctionIndividual model.
 
Method Summary
 java.lang.Class<?> getColumnClass(int column)
          Overrides TableSorter's getColumnClass method.
protected  java.util.Comparator getComparator(int column)
          Overrides TableSorter's getComparator method.
 
Methods inherited from class biggests.tables.TableSorter
getColumnCount, getColumnName, getHeaderRendererIcon, getRowCount, getSortingStatus, getTableHeader, getTableModel, getValueAt, isCellEditable, isSorting, modelIndex, setColumnComparator, setSortingStatus, setTableHeader, setTableModel, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableSorterFunctionIndividual

public TableSorterFunctionIndividual()
Constructs a new TableSorterFunctionIndividual model.

See Also:
TableSorter.TableSorter()

TableSorterFunctionIndividual

public TableSorterFunctionIndividual(javax.swing.table.TableModel tableModel)
Constructs a new TableSorterFunctionIndividual model.

Parameters:
tableModel - the TableModel which is the basic data model for the table
See Also:
TableSorter.TableSorter(TableModel tableModel)

TableSorterFunctionIndividual

public TableSorterFunctionIndividual(javax.swing.table.TableModel tableModel,
                                     TableHeader tableHeader)
Constructs a new TableSorterFunctionIndividual model.

Parameters:
tableModel - the TableModel which is the basic data model for the table
tableHeader - the TableHeader which is the header for the table
See Also:
TableSorter.TableSorter(TableModel tableModel, JTableHeader tableHeader)
Method Detail

getColumnClass

public java.lang.Class<?> getColumnClass(int column)
Overrides TableSorter's getColumnClass method. Returns the common superclass of the elements at the column with index column.

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class TableSorter
Parameters:
column - int value: the column being queried
Returns:
the common superClass of the column at index column
See Also:
TableSorter.getColumnClass(int column)

getComparator

protected java.util.Comparator getComparator(int column)
Overrides TableSorter's getComparator method. Returns the suitable comparator for the values of column number column.

Overrides:
getComparator in class TableSorter
Parameters:
column - the int value which is the index of the column
Returns:
the suitable Comparator for column column
See Also:
TableSorter.getComparator(int column)