Class RhythmTable.Model
java.lang.Object
javax.swing.table.AbstractTableModel
org.jjazz.rhythmselectiondialog.api.RhythmTable.Model
- All Implemented Interfaces:
Serializable
,TableModel
- Enclosing class:
- RhythmTable
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
getColumnClass
(int col) int
getColumnName
(int columnIndex) int
getValueAt
(int row, int col) boolean
void
setHighlighted
(RhythmInfo ri, boolean b) Show specified rhythm as highlighted (e.g. use a different font colour).void
setRhythms
(List<RhythmInfo> rhythms) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Field Details
-
COL_ID
public static final int COL_ID- See Also:
-
COL_NAME
public static final int COL_NAME- See Also:
-
COL_FEEL
public static final int COL_FEEL- See Also:
-
COL_TEMPO
public static final int COL_TEMPO- See Also:
-
COL_NB_VOICES
public static final int COL_NB_VOICES- See Also:
-
COL_DIR
public static final int COL_DIR- See Also:
-
-
Constructor Details
-
Model
public Model()
-
-
Method Details
-
setRhythms
-
setHighlighted
Show specified rhythm as highlighted (e.g. use a different font colour).- Parameters:
ri
-b
- Highlighted state
-
isHighlighted
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractTableModel
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getValueAt
-