hoplugins.commons.ui
Class DefaultTableSorter

java.lang.Object
  extended byjavax.swing.table.AbstractTableModel
      extended byhoplugins.commons.ui.sorter.AbstractTableSorter
          extended byhoplugins.commons.ui.DefaultTableSorter
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class DefaultTableSorter
extends AbstractTableSorter

Default Table sorter

Author:
Massimiliano Amato
See Also:
Serialized Form

Field Summary
 
Fields inherited from class hoplugins.commons.ui.sorter.AbstractTableSorter
ASCENDING, COMPARABLE_COMAPRATOR, DESCENDING, LEXICAL_COMPARATOR, NOT_SORTED, tableModel
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DefaultTableSorter()
          Creates a new DefaultTableSorter object.
DefaultTableSorter(javax.swing.table.TableModel tableModel)
          Creates a new DefaultTableSorter object.
DefaultTableSorter(javax.swing.table.TableModel tableModel, javax.swing.table.JTableHeader tableHeader)
          Creates a new DefaultTableSorter object.
 
Method Summary
 java.util.Comparator getCustomComparator(int column)
          DOCUMENT ME!
 boolean hasHeaderLine()
          DOCUMENT ME!
 int minSortableColumn()
          DOCUMENT ME!
 
Methods inherited from class hoplugins.commons.ui.sorter.AbstractTableSorter
cancelSorting, getColumnClass, getColumnCount, getColumnName, getComparator, getHeaderRendererIcon, getRowCount, getSortingColumns, 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

DefaultTableSorter

public DefaultTableSorter()
Creates a new DefaultTableSorter object.


DefaultTableSorter

public DefaultTableSorter(javax.swing.table.TableModel tableModel)
Creates a new DefaultTableSorter object.

Parameters:
tableModel -

DefaultTableSorter

public DefaultTableSorter(javax.swing.table.TableModel tableModel,
                          javax.swing.table.JTableHeader tableHeader)
Creates a new DefaultTableSorter object.

Parameters:
tableModel -
tableHeader -
Method Detail

getCustomComparator

public java.util.Comparator getCustomComparator(int column)
DOCUMENT ME!

Specified by:
getCustomComparator in class AbstractTableSorter
Parameters:
column -
Returns:

hasHeaderLine

public boolean hasHeaderLine()
DOCUMENT ME!

Specified by:
hasHeaderLine in class AbstractTableSorter
Returns:

minSortableColumn

public int minSortableColumn()
DOCUMENT ME!

Specified by:
minSortableColumn in class AbstractTableSorter
Returns:


Copyright © 2005 Hattrick Organizer Plugins Project. All Rights Reserved.