jAudioFeatureExtractor
Class ActiveAggTableModel

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

public class ActiveAggTableModel
extends javax.swing.table.DefaultTableModel

ActiveAggTableModel Model holding the selection of aggregators that are to be used in per file extraction.

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
ActiveAggTableModel()
          Construct this model with a new, empty aggregator set.
 
Method Summary
 void addAggregator(Aggregator a)
          add an aggregator to the end of the table
 Aggregator[] getAggregator()
          return the array of all aggregators stored in this model.
 Aggregator getAggregator(int row)
          return the aggregator storede in the row'th row.
 void init(Controller c)
          Load the set of available aggregators into the list of possible choices.
 boolean isCellEditable(int row, int column)
           
 void removeAggregator(int row)
          removes the aggregator at the given index in this model.
 void setAggregator(int row, Aggregator a, boolean edited)
          set the following row to the given aggregator.
 
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
 

Constructor Detail

ActiveAggTableModel

public ActiveAggTableModel()
Construct this model with a new, empty aggregator set.

Method Detail

getAggregator

public Aggregator getAggregator(int row)
return the aggregator storede in the row'th row.

Parameters:
row - row of the model to extract.

getAggregator

public Aggregator[] getAggregator()
return the array of all aggregators stored in this model.

Returns:
array of aggregators in this model.

setAggregator

public void setAggregator(int row,
                          Aggregator a,
                          boolean edited)
set the following row to the given aggregator.

Parameters:
row - row to be updated
a - aggregator to insert in this row
edited - is this aggregator edited yet or not.

addAggregator

public void addAggregator(Aggregator a)
add an aggregator to the end of the table

Parameters:
a - Aggregator to be added.

removeAggregator

public void removeAggregator(int row)
removes the aggregator at the given index in this model.

Parameters:
row - row to be removed.

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

init

public void init(Controller c)
Load the set of available aggregators into the list of possible choices.

Parameters:
c - controller managing connections between the model and table.