Package adams.gui.core
Interface ComparableTableModel
-
- All Superinterfaces:
TableModel
- All Known Implementing Classes:
FieldCacheTableModel
,SpreadSheetCellSelector.TableModel
,SpreadSheetTableModel
public interface ComparableTableModel extends TableModel
Interface for TableModel classes that need to use different values for sorting. E.g., when the underlying object is different from the one being displayed. This interface is used in theSortedTableModel
class.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
SortableAndSearchableWrapperTableModel
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class
getComparisonColumnClass(int columnIndex)
Returns the class type of the column that is used for comparisons.Object
getComparisonValueAt(int row, int column)
Returns the field at the given position.-
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Method Detail
-
getComparisonColumnClass
Class getComparisonColumnClass(int columnIndex)
Returns the class type of the column that is used for comparisons.- Parameters:
columnIndex
- the column to get the class for- Returns:
- the class for the column
-
getComparisonValueAt
Object getComparisonValueAt(int row, int column)
Returns the field at the given position.- Parameters:
row
- the rowcolumn
- the column (ignored, since only 1 column)- Returns:
- the field
-
-