Class RhythmJTable.RhythmTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.jjazz.rhythmselectiondialog.api.ui.RhythmJTable.RhythmTableModel
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?> getColumnClass(int col) intgetColumnName(int columnIndex) getLongestDataAsString(int col) List<? extends RhythmInfo> intgetValueAt(int row, int col) booleanvoidsetHighlighted(RhythmInfo ri, boolean b) Show specified rhythm as highlighted (e.g. use a different font colour).voidsetRhythms(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_TEMPO
public static final int COL_TEMPO- See Also:
-
COL_DIVISION
public static final int COL_DIVISION- See Also:
-
COL_NB_VOICES
public static final int COL_NB_VOICES- See Also:
-
COL_DEFAULT_MIX
public static final int COL_DEFAULT_MIX- See Also:
-
COL_DIR
public static final int COL_DIR- See Also:
-
-
Constructor Details
-
RhythmTableModel
public RhythmTableModel()
-
-
Method Details
-
setRhythms
-
getRhythms
-
setHighlighted
Show specified rhythm as highlighted (e.g. use a different font colour).- Parameters:
ri-b- Highlighted state
-
isHighlighted
-
getLongestDataAsString
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getValueAt
-