public class FileChooser extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
private static class |
FileChooser.Types
An enum that holds the possible values for the file chooser type.
|
Modifier and Type | Field and Description |
---|---|
private String |
defaultFile
The default file name for this file chooser, if necessary.
|
private FileChooser.Types |
selectorType
The type of file type selector.
|
private static long |
serialVersionUID |
Modifier | Constructor and Description |
---|---|
private |
FileChooser(FileChooser.Types type,
String file)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static FileChooser |
doOpen()
Create a file chooser that selects a file to open.
|
static FileChooser |
doSave()
Create a file chooser that selects a file to save.
|
static FileChooser |
doSave(String file)
Create a file chooser that selects a file to save, and will have a
default file filled in.
|
String |
getAlignment()
Select an alignment file.
|
String |
getBracket()
Select a dot bracket file.
|
String |
getConstraints()
Select a constraints file.
|
String |
getCT()
Select a CT file.
|
String |
getDotPlot()
Select a dot plot file.
|
String |
getDynalign()
Select a Dynalign save file.
|
String |
getFolding()
Select a folding save file.
|
String |
getHelix()
Select a structure helix file.
|
String |
getList()
Select an oligo list file.
|
String |
getOUT()
Select a general OUT file.
|
String |
getPartition()
Select a partition function save file.
|
String |
getPostscript()
Select a Postscript image file.
|
String |
getReport()
Select an oligo report file.
|
String |
getSequence()
Select a sequence file.
|
String |
getSequenceExtended()
Select a sequence file in its extended context, with more than its
usual possible file types.
|
String |
getSHAPE()
Select a SHAPE file.
|
String |
getSVG()
Select an SVG file.
|
private String |
select(String[] fileTypes,
String[] extensions)
Select a file that has multiple possible input or output types.
|
private String |
select(String fileType,
String extension)
Select a file that has one possible input or output type.
|
private String defaultFile
private FileChooser.Types selectorType
private static final long serialVersionUID
private FileChooser(FileChooser.Types type, String file) throws IllegalArgumentException
type
- The type of file selector.file
- The default file in this chooser.IllegalArgumentException
public static FileChooser doOpen()
public static FileChooser doSave()
public static FileChooser doSave(String file)
file
- The default file name.public String getAlignment()
public String getBracket()
public String getConstraints()
public String getCT()
public String getDotPlot()
public String getDynalign()
public String getFolding()
public String getHelix()
public String getList()
public String getOUT()
public String getPartition()
public String getPostscript()
public String getReport()
public String getSequence()
public String getSequenceExtended()
public String getSHAPE()
public String getSVG()
private String select(String[] fileTypes, String[] extensions)
fileTypes
- The types of file to select.extensions
- The extensions of the file types.