zinger.bsheet
Class TableSort.ComparatorTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by zinger.bsheet.BSHTableModel
              extended by zinger.bsheet.TableSort.ComparatorTableModel
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.swing.event.CellEditorListener, javax.swing.table.TableModel
Enclosing class:
TableSort

protected static class TableSort.ComparatorTableModel
extends BSHTableModel

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class zinger.bsheet.BSHTableModel
BSHTableModel.BSHCellEditor, BSHTableModel.BSHCellRenderer
 
Field Summary
 
Fields inherited from class zinger.bsheet.BSHTableModel
appearanceMap, bsh, cache, cellRangePattern, cellRefPattern, cellRelativeRefPattern, columnFormats, dependencies, editingColumn, editingRow, rowIndexes, setRecycler, stringBufferRecycler, suppressDependencies, valuesCached
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
TableSort.ComparatorTableModel(int cols)
           
 
Method Summary
 java.lang.Class getColumnClass(int col)
          Extends default behavior to return a class object representing JTableHeader for column 0.
 java.lang.Object getValueAt(int row, int col)
          Extends default behavior to always return row index for column 0.
 boolean isCellEditable(int row, int col)
          Extends default behavior to return false for column 0.
 
Methods inherited from class zinger.bsheet.BSHTableModel
editingCanceled, editingStopped, evalValueAt, fireTableChanged, fireTableStructureChanged, followDependencies, followDependencies, formatValueAt, getAppearance, getAppearanceMap, getColumnName, getFormat, getFormats, getLastNonEmptyColumn, getLastNonEmptyRow, isValueCached, refreshCacheAndDependencies, refreshLastNonEmpty, removeAppearance, replaceReferences, requestDependency, setAppearanceMap, setFormat, setFormats, setValueAt, setValueCached, sort
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getDataVector, getRowCount, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableSort.ComparatorTableModel

public TableSort.ComparatorTableModel(int cols)
Method Detail

getColumnClass

public java.lang.Class getColumnClass(int col)
Description copied from class: BSHTableModel
Extends default behavior to return a class object representing JTableHeader for column 0. Column 0 is a special column that is used as a row header.

Specified by:
getColumnClass in interface javax.swing.table.TableModel
Overrides:
getColumnClass in class BSHTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int col)
Description copied from class: BSHTableModel
Extends default behavior to return false for column 0. Column 0 is a special column that is used as a row header.

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class BSHTableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int col)
Description copied from class: BSHTableModel
Extends default behavior to always return row index for column 0. Column 0 is a special column that is used as a row header.

Specified by:
getValueAt in interface javax.swing.table.TableModel
Overrides:
getValueAt in class BSHTableModel