jAudioFeatureExtractor
Class RecordingsTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by jAudioFeatureExtractor.RecordingsTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class RecordingsTableModel
extends javax.swing.table.DefaultTableModel

A table model used by the RecordingSelectorPanel to store references to audio recordings.

Provides methods to fill a table row by row or delete everything on it. Makes all cells non-editable.

Author:
Cory McKay
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Method Summary
 void clearTable()
          Removes all contents of the table.
 void fillTable(RecordingInfo[] recording_list)
          Deletes everything in the table and then fills it up one row at a time based on the given RecorcdingInfo array.
 boolean isCellEditable(int row, int column)
          Returns false for all cells, so that no cells are editable.
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

fillTable

public void fillTable(RecordingInfo[] recording_list)
Deletes everything in the table and then fills it up one row at a time based on the given RecorcdingInfo array.

Parameters:
recording_list - Data to place in the table.

clearTable

public void clearTable()
Removes all contents of the table.


isCellEditable

public boolean isCellEditable(int row,
                              int column)
Returns false for all cells, so that no cells are editable.

Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.DefaultTableModel