public class SoundcheckNoteModel extends MidicaTableModel
This class provides the model for the note/percussion table in the soundcheck window.
| Modifier and Type | Field and Description |
|---|---|
private java.util.ArrayList<java.lang.Integer> |
list |
private boolean |
percussion
determins if a note or percussion list has to be displayed
|
private static long |
serialVersionUID |
columnClasses, columnNames, sortableColumns| Constructor and Description |
|---|
SoundcheckNoteModel()
Creates a model for the note/percussion list.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<java.lang.Integer> |
getList()
Returns the note/percussion number list.
|
boolean |
getPercussion()
Determines if the list is currently loaded with chromatic notes or percussive instruments.
|
int |
getRowCount()
Returns the number of table rows.
|
java.lang.Object |
getValueAt(int row,
int col)
Returns the value of the queried table cell.
|
void |
init()
(Re)fills the note/percussion table with either notes or percussion instruments - depending on the
percussion field. |
void |
setPercussion(boolean newPercussion)
Switches the display mode to display either notes or percussion instruments.
|
getCategorizedHashMapRows, getCategorizedRows, getColumnClass, getColumnCount, getColumnName, getHeaderTooltip, isCellEditable, isSortable, setHeaderToolTipaddColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAtaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerprivate static final long serialVersionUID
private boolean percussion
determins if a note or percussion list has to be displayed
private java.util.ArrayList<java.lang.Integer> list
public SoundcheckNoteModel()
Creates a model for the note/percussion list.
public void setPercussion(boolean newPercussion)
Switches the display mode to display either notes or percussion instruments.
In other words: sets the percussion field.
newPercussion - true to display percussion instruments, false to display notes.public boolean getPercussion()
Determines if the list is currently loaded with chromatic notes or percussive instruments.
public java.util.ArrayList<java.lang.Integer> getList()
Returns the note/percussion number list.
public void init()
(Re)fills the note/percussion table with either notes or percussion instruments - depending on the percussion field.
public int getRowCount()
MidicaTableModelReturns the number of table rows.
getRowCount in interface javax.swing.table.TableModelgetRowCount in class MidicaTableModelpublic java.lang.Object getValueAt(int row,
int col)
MidicaTableModelReturns the value of the queried table cell.
getValueAt in interface javax.swing.table.TableModelgetValueAt in class MidicaTableModelrow - Row index.col - Column index.