public class SoundbankInstrumentsTableModel extends MidicaTableModel
This class represents the data model of the soundbank instruments and drumkits table in the configuration details view of the info window.
Each row represents either a category or a certain instrument or drum kit.
A category can be one of the following:
The bank column is special. A bank can consist of 2 bytes. However in most cases only the MSB is used. In these cases we show only the MSB. If the LSB is not 0, we show both, MSB and LSB, separated by the currently configured bank separator syntax element.
| Modifier and Type | Field and Description |
|---|---|
private java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> |
instruments |
private static long |
serialVersionUID |
columnClasses, columnNames, sortableColumns| Constructor and Description |
|---|
SoundbankInstrumentsTableModel()
Creates a new instance of the soundbank instruments table data model.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.ArrayList<java.util.HashMap<java.lang.String,?>> |
getCategorizedHashMapRows()
Returns null, if not overridden by a child model class.
|
int |
getRowCount()
Returns the number of rows in the table - same as the sum of chromatic instruments, drum kits, unknown instruments and categories.
|
java.lang.Object |
getValueAt(int rowIndex,
int colIndex)
Returns the String value to be written into the specified table cell.
|
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 java.util.ArrayList<java.util.HashMap<java.lang.String,java.lang.String>> instruments
public SoundbankInstrumentsTableModel()
Creates a new instance of the soundbank instruments table data model. Initializes the table header names according to the currently configured language.
public int getRowCount()
Returns the number of rows in the table - same as the sum of chromatic instruments, drum kits, unknown instruments and categories.
getRowCount in interface javax.swing.table.TableModelgetRowCount in class MidicaTableModelpublic java.lang.Object getValueAt(int rowIndex,
int colIndex)
Returns the String value to be written into the specified table cell.
getValueAt in interface javax.swing.table.TableModelgetValueAt in class MidicaTableModelrowIndex - Queried table row index.colIndex - Queried table column index.public java.util.ArrayList<java.util.HashMap<java.lang.String,?>> getCategorizedHashMapRows()
MidicaTableModelReturns null, if not overridden by a child model class. Can be overridden to return the underlying data list, if it contains categorized data. That’s needed for the sorter to be able to hide categories, if the sorting is different from the model’s default sorting.
getCategorizedHashMapRows in class MidicaTableModel