Class InstrumentTable

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

public class InstrumentTable extends JTable
A JTable to show a list of instruments.
See Also:
  • Constructor Details

    • InstrumentTable

      public InstrumentTable()
      Create an InstrumentTable.

  • Method Details

    • setHiddenColumns

      public void setHiddenColumns(List<Integer> hiddenColumns)
      Parameters:
      hiddenColumns - The indexes of the columns to hide. Can be null.
    • getModel

      public InstrumentTable.Model getModel()
      Overrides:
      getModel in class JTable
    • getSelectedInstrument

      public Instrument getSelectedInstrument()
      The selected instrument.
      Returns:
      Can be null if no selection
    • setSelectedInstrument

      public void setSelectedInstrument(Instrument ins)
      Select the row corresponding to the specified instrument.

      The method also scroll the table to make the selected instrument visible.

      Parameters:
      ins -