|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
org.jsampler.view.InstrumentTableModel
public class InstrumentTableModel
A tabular data model for representing instruments.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
InstrumentTableModel()
Creates a new instance of InstrumentTableModel. |
|
InstrumentTableModel(OrchestraModel orchestraModel)
Creates a new instance of InstrumentTableModel. |
|
| Method Summary | |
|---|---|
int |
getColumnCount()
Gets the number of columns in the model. |
java.lang.String |
getColumnName(int col)
Gets the name of the column at columnIndex. |
OrchestraModel |
getOrchestraModel()
Gets the OrchestraModel, represented by this table model. |
int |
getRowCount()
Gets the number of rows in the model. |
java.lang.Object |
getValueAt(int row,
int col)
Gets the value for the cell at columnIndex and
rowIndex. |
boolean |
isCellEditable(int row,
int col)
Returns true if the cell at
row and col is editable. |
void |
setOrchestraModel(OrchestraModel orchestraModel)
Sets the OrchestraModel, represented by this table model. |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Sets the value in the cell at col
and row to value. |
| 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 |
|---|
public InstrumentTableModel()
InstrumentTableModel.
public InstrumentTableModel(OrchestraModel orchestraModel)
InstrumentTableModel.
orchestraModel - The OrchestraModel,
which this table model should represent.
java.lang.IllegalArgumentException - If orchestraModel is null.| Method Detail |
|---|
public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
columnIndex.
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcolumnIndex.
public java.lang.Object getValueAt(int row,
int col)
columnIndex and
rowIndex.
row - The row whose value is to be queried.col - The column whose value is to be queried.
columnIndex and
rowIndex.
public void setValueAt(java.lang.Object value,
int row,
int col)
col
and row to value.
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModel
public boolean isCellEditable(int row,
int col)
true if the cell at
row and col is editable.
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelpublic OrchestraModel getOrchestraModel()
OrchestraModel, represented by this table model.
public void setOrchestraModel(OrchestraModel orchestraModel)
OrchestraModel, represented by this table model.
orchestraModel - The new OrchestraModel,
represented by this table model.
java.lang.IllegalArgumentException - If orchestraModel is null.
|
JSampler v0.8a |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||