|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
bodhidharma.FeaturesTableModel
public class FeaturesTableModel
Part of the Bodhidharma automatic music classification
project. This is the table model used by the
FeaturesPanel
frame.
Provides methods to fill a table row by row or delete everything on it. Makes all cells non-editable except those in the first three columns.
FeaturessPanel
,
FeatureSettings
,
Feature
,
DefaultTableModel
,
JTable
,
Serialized FormField Summary |
---|
Fields inherited from class javax.swing.table.DefaultTableModel |
---|
columnIdentifiers, dataVector |
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Method Summary | |
---|---|
void |
fillTable(FeatureSettings[] feature_settings)
Deletes everything in the table and then fills it up one row at a time based on the given FeatureSettings array. |
java.lang.Class |
getColumnClass(int column)
Returns the type of class used for each column. |
boolean |
isCellEditable(int row,
int column)
Returns false for all cells but those in the first three columns. |
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, getListeners, getTableModelListeners, removeTableModelListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public boolean isCellEditable(int row, int column)
DefaultTableModel
method.
isCellEditable
in interface javax.swing.table.TableModel
isCellEditable
in class javax.swing.table.DefaultTableModel
public void fillTable(FeatureSettings[] feature_settings)
FeatureSettings
array.
feature_settings
- Data to place in the table.public java.lang.Class getColumnClass(int column)
getColumnClass
in interface javax.swing.table.TableModel
getColumnClass
in class javax.swing.table.AbstractTableModel
column
- Column to check.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |