public class SystemTableSaveDialog extends java.lang.Object implements TableSaveDialog
FileDialog
, which is in turn
a thin wrapper around whatever the native platform uses for its
default file browser. Looks ugly on my fvwm-based Linux desktop,
but for Mac and MS users it may be much preferable to the java-coded
alternatives.Constructor and Description |
---|
SystemTableSaveDialog() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns this dialogue's description
(may be used as an Action's SHORT_DESCRIPTION property).
|
javax.swing.Icon |
getIcon()
Returns an icon for use in identifying this dialogue.
|
java.lang.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(java.awt.Component parent,
StarTableOutput sto,
javax.swing.ComboBoxModel<java.lang.String> formatModel,
StarTable[] tables)
Pops up a modal dialogue which allows the user to save the given
tables to a single destination.
|
public java.lang.String getName()
TableSaveDialog
getName
in interface TableSaveDialog
public java.lang.String getDescription()
TableSaveDialog
getDescription
in interface TableSaveDialog
public javax.swing.Icon getIcon()
TableSaveDialog
getIcon
in interface TableSaveDialog
public boolean isAvailable()
TableSaveDialog
isAvailable
in interface TableSaveDialog
public boolean showSaveDialog(java.awt.Component parent, StarTableOutput sto, javax.swing.ComboBoxModel<java.lang.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 save