|
||||||||||
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.TableSorterValues
biggests.tables.TableSorterVerticalHeader
biggests.tables.TableSorterSymbols
public class TableSorterSymbols
Title: Table Sorter for Tables with Discrete Values
Description: A table model which allows for column sorting.
This model implements table sorting for tables
with String values in the first column and
char
values in the remaining ones.
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 | |
---|---|
TableSorterSymbols()
Constructs a new TableSorterSymbols model. |
|
TableSorterSymbols(javax.swing.table.TableModel tableModel)
Constructs a new TableSorterSymbols model from a
plain table model. |
|
TableSorterSymbols(javax.swing.table.TableModel tableModel,
TableHeader tableHeader)
Constructs a new TableSorterSymbols model from a plain table
model and a given table header. |
Method Summary | |
---|---|
java.lang.Class<?> |
getColumnClass(int column)
Overrides TableSorterValues 's getColumnClass
method. |
protected java.util.Comparator |
getComparator(int column)
Overrides TableSorterValues 's getComparator
method. |
Methods inherited from class biggests.tables.TableSorterVerticalHeader |
---|
setTableHeader |
Methods inherited from class biggests.tables.TableSorter |
---|
getColumnCount, getColumnName, getHeaderRendererIcon, getRowCount, getSortingStatus, getTableHeader, getTableModel, getValueAt, isCellEditable, isSorting, modelIndex, setColumnComparator, setSortingStatus, 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 TableSorterSymbols()
TableSorterSymbols
model. This model
implements table sorting and a table header which writes vertical
oriented column names, as wel as sets common superclasses of columns'
elements.
TableSorterVerticalHeader.TableSorterVerticalHeader()
public TableSorterSymbols(javax.swing.table.TableModel tableModel)
TableSorterSymbols
model from a
plain table model. This model implements table sorting and a table
header which writes vertical oriented column names, as wel as sets
common superclasses of columns' elements.
tableModel
- the TableModel
which is the basic
data model for the tableTableSorterVerticalHeader.TableSorterVerticalHeader(TableModel tableModel)
public TableSorterSymbols(javax.swing.table.TableModel tableModel, TableHeader tableHeader)
TableSorterSymbols
model from a plain table
model and a given table header. This model implements table sorting and
a table header which writes vertical oriented column names,
as wel as sets common superclasses of columns' elements.
tableModel
- the TableModel
which is the basic
data model for the tabletableHeader
- the TableHeader
which is the
header for the tableTableSorterVerticalHeader.TableSorterVerticalHeader(TableModel tableModel, TableHeader tableHeader)
Method Detail |
---|
public java.lang.Class<?> getColumnClass(int column)
TableSorterValues
's getColumnClass
method.column
.
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class TableSorterValues
column
- int
value: the column being queried
Class
of the column at
index column
TableSorterValues.getColumnClass(int column)
protected java.util.Comparator getComparator(int column)
TableSorterValues
's getComparator
method.column
.
getComparator
in class TableSorterValues
column
- the int
value which is the index of the column
Comparator
for column column
TableValues#getComparator(int column)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |