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()
TableSaveDialog
getName
in interface TableSaveDialog
public String getDescription()
TableSaveDialog
getDescription
in interface TableSaveDialog
public Icon getIcon()
TableSaveDialog
getIcon
in interface TableSaveDialog
public boolean isAvailable()
TableSaveDialog
isAvailable
in interface TableSaveDialog
public boolean showSaveDialog(Component parent, StarTableOutput sto, ComboBoxModel<String> formatModel, StarTable[] tables)
TableSaveDialog
showSaveDialog
in interface TableSaveDialog
parent
- 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 © 2024 Central Laboratory of the Research Councils. All Rights Reserved.