Class TableModel

  • All Implemented Interfaces:
    adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.data.spreadsheet.SpreadSheetSupporter, adams.gui.core.ClearableModel, adams.gui.core.CustomSearchTableModel, Serializable, TableModel

    public class TableModel
    extends adams.gui.core.CheckableTableModel<SelectSpectrumPanel.TableModel>
    Table model for displaying the database IDs, IDs, formats and selected state of spectra.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • TableModel

        public TableModel​(String checkColumnHeader)
        default constructor.
        Parameters:
        checkColumnHeader - header to use for the check column
      • TableModel

        public TableModel​(SelectSpectrumPanel.TableModel model,
                          String checkColumnHeader)
        the constructor.
        Parameters:
        model - model to display
        checkColumnHeader - header to use for the check column
    • Method Detail

      • getSelectedSampleIDs

        public String[] getSelectedSampleIDs()
        Returns the selected items (sample IDs).
        Returns:
        the selected items
      • getSampleIdAt

        public String getSampleIdAt​(int row)
        Returns the sample ID at the specified location.
        Parameters:
        row - the (actual, not visible) position of the spectrum
        Returns:
        the sample ID, null if failed to retrieve