|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
biggests.tables.TableSorter
biggests.tables.TableSorterFunctionGroup
public class TableSorterFunctionGroup
Title: Table Sorter for Tables of Functions of Biclusters' Groups
Description: A table model which allows for column sorting.
This model implements table sorting for tables
with String
s in the first column,
Integer
s in the following two,
Float
s in the third pair of columns
and Integer
s in the last column.
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.
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 | |
---|---|
TableSorterFunctionGroup(boolean postProcessed)
Constructs a new TableSorterFunctionGroup model. |
|
TableSorterFunctionGroup(javax.swing.table.TableModel tableModel,
boolean postProcessed)
Constructs a new TableSorterFunctionGroup model. |
|
TableSorterFunctionGroup(javax.swing.table.TableModel tableModel,
TableHeader tableHeader,
boolean postProcessed)
Constructs a new TableSorterFunctionGroup 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 |
---|
public TableSorterFunctionGroup(boolean postProcessed)
TableSorterFunctionGroup
model.
postProcessed
- boolean
true
if
this table sorter is for a table of functions of a post-processed
biclusters group, false otherwiseTableSorter.TableSorter()
public TableSorterFunctionGroup(javax.swing.table.TableModel tableModel, boolean postProcessed)
TableSorterFunctionGroup
model.
tableModel
- the TableModel
which is the basic
data model for the tablepostProcessed
- boolean
true
if
this table sorter is for a table of functions of a post-processed
biclusters group, false otherwiseTableSorter.TableSorter(TableModel tableModel)
public TableSorterFunctionGroup(javax.swing.table.TableModel tableModel, TableHeader tableHeader, boolean postProcessed)
TableSorterFunctionGroup
model.
tableModel
- the TableModel
which is the basic
data model for the tabletableHeader
- the TableHeader
which is the
header for the tablepostProcessed
- boolean
true
if
this table sorter is for a table of functions of a post-processed
biclusters group, false otherwiseTableSorter.TableSorter(TableModel tableModel, JTableHeader tableHeader)
Method Detail |
---|
public java.lang.Class<?> getColumnClass(int column)
TableSorter
's getColumnClass
method.
Returns the common superclass of the elements at the column with index
column
.
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class TableSorter
column
- int
value: the column being queried
Class
of the column at
index column
TableSorter.getColumnClass(int column)
protected java.util.Comparator getComparator(int column)
TableSorter
's getComparator
method.
Returns the suitable comparator for the values of column number
column
.
getComparator
in class TableSorter
column
- the int
value which is the index of the column
Comparator
for column column
TableSorter.getComparator(int column)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |