Class SelectSpectrumDialog

    • Constructor Detail

      • SelectSpectrumDialog

        public SelectSpectrumDialog​(Dialog owner)
        Creates a modal dialog.
        Parameters:
        owner - the owning dialog
      • SelectSpectrumDialog

        public SelectSpectrumDialog​(Dialog owner,
                                    String title)
        Creates a modal dialog.
        Parameters:
        owner - the owning dialog
        title - the title of the dialog
      • SelectSpectrumDialog

        public SelectSpectrumDialog​(Frame owner)
        Creates a modal dialog.
        Parameters:
        owner - the owning frame
      • SelectSpectrumDialog

        public SelectSpectrumDialog​(Frame owner,
                                    String title)
        Creates a modal dialog.
        Parameters:
        owner - the owning frame
        title - the title of the dialog
    • Method Detail

      • newPanel

        protected SelectSpectrumPanel newPanel()
        Returns a new instance of the panel to use in the GUI.
        Specified by:
        newPanel in class adams.gui.selection.AbstractTableBasedSelectionDialog<Integer,​SelectSpectrumPanel>
        Returns:
        the panel to use
      • getDatabaseConnection

        public adams.db.AbstractDatabaseConnection getDatabaseConnection()
        Returns the currently used database connection object, can be null.
        Specified by:
        getDatabaseConnection in interface adams.db.DatabaseConnectionProvider
        Specified by:
        getDatabaseConnection in class adams.gui.selection.AbstractDatabaseSelectionDialog<Integer,​SelectSpectrumPanel>
        Returns:
        the current object
      • setDatabaseConnection

        public void setDatabaseConnection​(adams.db.AbstractDatabaseConnection value)
        Sets the database connection object to use.
        Specified by:
        setDatabaseConnection in interface adams.db.DatabaseConnectionHandler
        Specified by:
        setDatabaseConnection in class adams.gui.selection.AbstractDatabaseSelectionDialog<Integer,​SelectSpectrumPanel>
        Parameters:
        value - the object to use