public class FilestoreTableSaveDialog extends Object implements TableSaveDialog
FilestoreChooser.| Constructor and Description |
|---|
FilestoreTableSaveDialog()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
confirmOverwrite(Component parent,
String loc)
Requests confirmation from the user that an existing file can be
overwritten.
|
FilestoreChooser |
getChooser()
Returns the chooser component used by this dialogue.
|
String |
getDescription()
Returns this dialogue's description
(may be used as an Action's SHORT_DESCRIPTION property).
|
Icon |
getIcon()
Returns an icon for use in identifying this dialogue.
|
String |
getName()
Returns this dialogue's name
(may be used as an Action's NAME property).
|
boolean |
isAvailable()
Indicates whether there is a reasonable chance of this dialogue
working.
|
boolean |
showSaveDialog(Component parent,
StarTableOutput sto,
ComboBoxModel<String> formatModel,
StarTable[] tables)
Pops up a modal dialogue which allows the user to save the given
tables to a single destination.
|
public String getName()
TableSaveDialoggetName in interface TableSaveDialogpublic String getDescription()
TableSaveDialoggetDescription in interface TableSaveDialogpublic Icon getIcon()
TableSaveDialoggetIcon in interface TableSaveDialogpublic boolean isAvailable()
TableSaveDialogisAvailable in interface TableSaveDialogpublic boolean showSaveDialog(Component parent, StarTableOutput sto, ComboBoxModel<String> formatModel, StarTable[] tables)
TableSaveDialogshowSaveDialog in interface TableSaveDialogparent - parent componentsto - object determining how tables are savedformatModel - combo box model containing names of table
save formats which can be selectedtables - the tables to savepublic FilestoreChooser getChooser()
public static boolean confirmOverwrite(Component parent, String loc)
parent - the parent component, used for positioning
dialog boxesloc - location of the file to overwritetrue if the user agrees it's OK to overwriteCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.