Package org.ka2ddo.yaac.gui.table
Interface FastComparableTableModel
- All Superinterfaces:
TableModel
- All Known Implementing Classes:
BulletinBoard
,DestinationFilter
,DXTableModel
,FirstDigipeatFilterUI
,HeardStationsTableModel
,LastDigipeatFilterUI
,LocalObjectTableModel
,MessageModel
,ObjectPacketModel
,OutstandingMessageTableModel
,RawPacketTableModel
,SendingStationFilter
,StationListTableModel
This interface defines a TableModel that can compare rows column-by-column without
having to create transient Objects for comparison.
- Author:
- Andrew Pavlin, KA2DDO
-
Method Summary
Modifier and TypeMethodDescriptionint
compareRows
(int rowIndex1, int rowIndex2, int columnIndex) Compare the selected column of the two rows.Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
-
Method Details
-
compareRows
int compareRows(int rowIndex1, int rowIndex2, int columnIndex) Compare the selected column of the two rows.- Parameters:
rowIndex1
- zero-based model row index of first row to comparerowIndex2
- zero-based model row index of second row to comparecolumnIndex
- zero-based model column index of column to compare- Returns:
- +1 if the 1st row's column is after the 2nd row's column, -1 if before, or 0 if equal precedence
-