Class DeleteSpectrumPanel

  • All Implemented Interfaces:
    adams.gui.core.MenuBarProvider, ImageObserver, MenuContainer, Serializable, Accessible

    public class DeleteSpectrumPanel
    extends adams.gui.core.BasePanel
    implements adams.gui.core.MenuBarProvider
    A panel for deleting spectra.
    Version:
    $Revision: 1619 $
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_MenuBar

        protected JMenuBar m_MenuBar
        the menu bar, if used.
      • m_PanelSpectrum

        protected SelectSpectrumPanel m_PanelSpectrum
        the panel for selecting the spectra.
      • m_ButtonDelete

        protected adams.gui.core.BaseButton m_ButtonDelete
        the button for executing the deletion.
      • m_ButtonClose

        protected adams.gui.core.BaseButton m_ButtonClose
        the button for closing the dialog/frame.
    • Constructor Detail

      • DeleteSpectrumPanel

        public DeleteSpectrumPanel()
    • Method Detail

      • initGUI

        public void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class adams.gui.core.BasePanel
      • delete

        protected void delete()
        Removes the listed spectra.
      • updateButtons

        protected void updateButtons()
        Updates the enabled state of the buttons.
      • getMenuBar

        public JMenuBar getMenuBar()
        Creates a menu bar (singleton per panel object). Can be used in frames.
        Specified by:
        getMenuBar in interface adams.gui.core.MenuBarProvider
        Returns:
        the menu bar
      • updateMenu

        protected void updateMenu()
        updates the enabled state of the menu items.