org.sourcejammer.client.gui.jsorttable
Class DefaultSortTableModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--javax.swing.table.DefaultTableModel
              |
              +--org.sourcejammer.client.gui.jsorttable.DefaultSortTableModel
All Implemented Interfaces:
java.io.Serializable, SortTableModel, javax.swing.table.TableModel
Direct Known Subclasses:
CheckOutReportDialog.CustomTableModel, GuiUtil.CustomTableModel

public class DefaultSortTableModel
extends javax.swing.table.DefaultTableModel
implements SortTableModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
DefaultSortTableModel()
           
DefaultSortTableModel(int rows, int cols)
           
DefaultSortTableModel(java.lang.Object[][] data, java.lang.Object[] names)
           
DefaultSortTableModel(java.lang.Object[] names, int rows)
           
DefaultSortTableModel(java.util.Vector names, int rows)
           
DefaultSortTableModel(java.util.Vector data, java.util.Vector names)
           
 
Method Summary
 boolean isSortable(int col)
           
 void sortColumn(int col, boolean ascending)
           
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, isCellEditable, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Constructor Detail

DefaultSortTableModel

public DefaultSortTableModel()

DefaultSortTableModel

public DefaultSortTableModel(int rows,
                             int cols)

DefaultSortTableModel

public DefaultSortTableModel(java.lang.Object[][] data,
                             java.lang.Object[] names)

DefaultSortTableModel

public DefaultSortTableModel(java.lang.Object[] names,
                             int rows)

DefaultSortTableModel

public DefaultSortTableModel(java.util.Vector names,
                             int rows)

DefaultSortTableModel

public DefaultSortTableModel(java.util.Vector data,
                             java.util.Vector names)
Method Detail

isSortable

public boolean isSortable(int col)
Specified by:
isSortable in interface SortTableModel

sortColumn

public void sortColumn(int col,
                       boolean ascending)
Specified by:
sortColumn in interface SortTableModel


Copyright 2003 Soucejammer project.