org.ka2ddo.yaac.gui.table
Interface FastComparableTableModel

All Superinterfaces:
javax.swing.table.TableModel
All Known Implementing Classes:
BulletinBoard, DXTableModel, HeardStationsTableModel, MessageModel, ObjectPacketModel, OutstandingMessageTableModel, RawPacketTableModel, StationListViewer

public interface FastComparableTableModel
extends javax.swing.table.TableModel

This interface defines a TableModel that can compare rows column-by-column without having to create transient Objects for comparison.


Method Summary
 int 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 Detail

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 compare
rowIndex2 - zero-based model row index of second row to compare
columnIndex - 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