Class RemapTableUI

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable

public class RemapTableUI extends JTable
A JTable to edit a GM1RemapTable.
See Also:
  • Constructor Details

    • RemapTableUI

      public RemapTableUI()
      By default don't highlight favorite rhythms.
  • Method Details

    • getModel

      public RemapTableUI.Model getModel()
      Overrides:
      getModel in class JTable
    • setPrimaryModel

      public void setPrimaryModel(GMRemapTable m)
    • prepareRenderer

      public Component prepareRenderer(TableCellRenderer renderer, int row, int column)
      Overridden to manage the display of cell borders.
      Overrides:
      prepareRenderer in class JTable
      Parameters:
      renderer -
      row -
      column -
      Returns:
    • getSelectedRemappedInstrument

      public Instrument getSelectedRemappedInstrument()
      Get the selected remapped Instrument.

      Get a GM1Instrument or the special DRUMS_INS or PERCUSSION_INS instances.

      Returns:
      Can be null if no selection
    • setSelectedRemappedInstrument

      public void setSelectedRemappedInstrument(Instrument ins)
      Set the selected instrument.
      Parameters:
      ins - Must be a GM1Instrument or the special DRUMS/PERCUSSION instances.
    • adjustWidths

      public void adjustWidths()
      Pre-adjust the columns size parameters to have a correct display.