jAudioFeatureExtractor
Class AggListTableModel

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

public class AggListTableModel
extends javax.swing.table.DefaultTableModel

AggListTableModel The model backing the list of available aggregators.

Author:
Daniel McEnnis
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
 
Constructor Summary
AggListTableModel()
          Construct an empty list of aggregators
 
Method Summary
 void clear()
          Resets the lists of available aggregators to empty.
 Aggregator getAggregator(int row)
          returns the prototype aggregator at the given index.
 void init(java.util.HashMap<java.lang.String,Aggregator> data)
          Load in the data on the available aggregators.
 boolean isCellEditable(int row, int column)
           
 void removeRow(int row)
           
 
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, 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
 

Constructor Detail

AggListTableModel

public AggListTableModel()
Construct an empty list of aggregators

Method Detail

init

public void init(java.util.HashMap<java.lang.String,Aggregator> data)
Load in the data on the available aggregators.

Parameters:
data - map containing aggregators and their metadata.

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.DefaultTableModel

removeRow

public void removeRow(int row)
Overrides:
removeRow in class javax.swing.table.DefaultTableModel

clear

public void clear()
Resets the lists of available aggregators to empty.


getAggregator

public Aggregator getAggregator(int row)
returns the prototype aggregator at the given index.

Parameters:
row - location to get the aggregator from.
Returns:
aggregator located at row.