org.kaiwitte.workbench.ui.model
Interface SchemeTableModel

All Superinterfaces:
javax.swing.table.TableModel
All Known Implementing Classes:
SchemeTableModelImpl

public interface SchemeTableModel
extends javax.swing.table.TableModel

A TableModel to hold Records.


Method Summary
 void addRecord(Record... r)
          Adds a record as a table row.
 void clear()
          Removes all entries.
 Record getRecord(int index)
          Returns the Record in the specified row.
 
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
 

Method Detail

addRecord

void addRecord(Record... r)
Adds a record as a table row.

Parameters:
r - the new record

clear

void clear()
Removes all entries.


getRecord

Record getRecord(int index)
Returns the Record in the specified row.

Parameters:
index - the row number, 0-based
Returns:
the Record in the specified row
Throws:
java.lang.IndexOutOfBoundsException - iff index < 0 or index > the maximum index