Class SavePanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
CurrentSavePanel, MultiSavePanel, SessionSavePanel

public abstract class SavePanel extends JPanel
Abstract superclass for component which interrogates the user about which tables to save.
Since:
15 Jul 2010
Author:
Mark Taylor
See Also:
  • Constructor Details

    • SavePanel

      protected SavePanel(String title, ComboBoxModel<String> formatBoxModel)
      Constructor.
      Parameters:
      title - short component name for use in tabber
      formatBoxModel - selector model for table output format
  • Method Details

    • getTitle

      public String getTitle()
      Returns component name.
      Returns:
      title
    • setActiveChooser

      public abstract void setActiveChooser(uk.ac.starlink.table.gui.TableSaveChooser chooser)
      Configures the chooser currently controlling this panel. The supplied chooser will be null if this panel is not active. This panel should take the responsibility for setting the chooser's enabledness for as long as it is active.
      Parameters:
      chooser - controlling save chooser, or null
    • getFormatBoxModel

      public ComboBoxModel<String> getFormatBoxModel()
      Returns a selector for table output formats.
      Returns:
      format selector model
    • getTables

      public abstract uk.ac.starlink.table.StarTable[] getTables()
      Returns the tables chosen by the user from this panel to save.
      Returns:
      tables to save