A TableModel
to hold org.kaiwitte.workbench.data.Record
s.
public class SchemeTableModelImpl extends AbstractTableModel
implements SchemeTableModel {public SchemeTableModelImpl(DataScheme scheme);
public void addRecord(org.kaiwitte.workbench.data.Record[] r);
public String getColumnName(int column);
public Class getColumnClass(int column);
public void clear();
public Record getRecord(int index);
public int getRowCount();
public int getColumnCount();
public Object getValueAt(int rowIndex,
int columnIndex);
}
Methods inherited from javax.swing.table.AbstractTableModel:
addTableModelListener
, findColumn
, fireTableCellUpdated
, fireTableChanged
, fireTableDataChanged
, fireTableRowsDeleted
, fireTableRowsInserted
, fireTableRowsUpdated
, fireTableStructureChanged
, getColumnClass
, getColumnName
, getListeners
, getTableModelListeners
, isCellEditable
, removeTableModelListener
, setValueAt
Methods inherited from java.lang.Object:
clone
, equals
, finalize
, getClass
, hashCode
, notify
, notifyAll
, toString
, wait
Inheritance Path. java.lang.Object-> javax.swing.table.AbstractTableModel-> org.kaiwitte.workbench.ui.model.SchemeTableModelImpl
Synopsis: public SchemeTableModelImpl(org.kaiwitte.workbench.data.DataSchem\ e scheme);
Parameters
scheme
the DataScheme
that defines the
structure of this TableModel
Exceptions
NullPointerException
iff scheme == null
Creates a new instance.
Synopsis: public void addRecord(org.kaiwitte.workbench.data.Record[] r);
Specified by: Method addRecord in interface SchemeTableModel
Parameters
r
the new record
Adds a record as a table row.
Synopsis: public void clear();
Specified by: Method clear in interface SchemeTableModel
Removes all entries.
Synopsis: public Record getRecord(int index);
Specified by: Method getRecord in interface SchemeTableModel
Parameters
index
the row number, 0-based
the Record
in the specified row
Exceptions
IndexOutOfBoundsException
iff index < 0
or index >
the maximum index
Returns the Record
in the specified row.