Class SQLWriteDialog

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, TableSaveDialog

public class SQLWriteDialog extends JPanel implements TableSaveDialog
A popup dialog for querying the user about the location of a new JDBC table to write.
See Also:
  • Constructor Details

    • SQLWriteDialog

      public SQLWriteDialog()
      Constructs a new SQLWriteDialog.
  • Method Details

    • getName

      public String getName()
      Description copied from interface: TableSaveDialog
      Returns this dialogue's name (may be used as an Action's NAME property).
      Specified by:
      getName in interface TableSaveDialog
      Overrides:
      getName in class Component
      Returns:
      name
    • getDescription

      public String getDescription()
      Description copied from interface: TableSaveDialog
      Returns this dialogue's description (may be used as an Action's SHORT_DESCRIPTION property).
      Specified by:
      getDescription in interface TableSaveDialog
      Returns:
      description
    • getIcon

      public Icon getIcon()
      Description copied from interface: TableSaveDialog
      Returns an icon for use in identifying this dialogue.
      Specified by:
      getIcon in interface TableSaveDialog
      Returns:
      icon
    • isAvailable

      public boolean isAvailable()
      Description copied from interface: TableSaveDialog
      Indicates whether there is a reasonable chance of this dialogue working.
      Specified by:
      isAvailable in interface TableSaveDialog
      Returns:
      false iff there's no point offering use of this dialogue
    • showSaveDialog

      public boolean showSaveDialog(Component parent, StarTableOutput sto, ComboBoxModel<String> formatModel, StarTable[] tables)
      Description copied from interface: TableSaveDialog
      Pops up a modal dialogue which allows the user to save the given tables to a single destination. The dialogue should allow the user to select an output destination and return only when he has done so or indicated that he does not wish to. Having selected a destination the tables should be saved to it. If the save fails the user should be notified with a popup.
      Specified by:
      showSaveDialog in interface TableSaveDialog
      Parameters:
      parent - parent component
      sto - object determining how tables are saved
      formatModel - combo box model containing names of table save formats which can be selected
      tables - the tables to save
      Returns:
      true iff the save completed successfully