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, setHeaderToolTip
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getDataVector, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
private 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()
MidicaTableModel
Returns the number of table rows.
getRowCount
in interface javax.swing.table.TableModel
getRowCount
in class MidicaTableModel
public java.lang.Object getValueAt(int row, int col)
MidicaTableModel
Returns the value of the queried table cell.
getValueAt
in interface javax.swing.table.TableModel
getValueAt
in class MidicaTableModel
row
- Row index.col
- Column index.