|
Cytoscape 3.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileUtil
Provides a platform-dependent way to open files. Mainly because Mac would prefer that you use java.awt.FileDialog instead of the Swing FileChooser.
| Field Summary | |
|---|---|
static int |
CUSTOM
Equal to FileDialog.LOAD + FileDialog.SAVE. |
static String |
LAST_DIRECTORY
The Cytoscape property that stores the last save/load directory. |
static int |
LOAD
Equal to FileDialog.LOAD. |
static int |
SAVE
Equal to FileDialog.SAVE. |
static String |
urlPattern
A string that defines a simplified java regular expression for a URL. |
| Method Summary | |
|---|---|
File |
getFile(Component parent,
String title,
int loadSaveCustom,
Collection<FileChooserFilter> filters)
Returns a File object, this method should be used instead of rolling your own JFileChooser. |
File |
getFile(Component parent,
String title,
int loadSaveCustom,
String startDir,
String customApproveText,
Collection<FileChooserFilter> filters)
Returns a File object, this method should be used instead of rolling your own JFileChooser. |
File[] |
getFiles(Component parent,
String title,
int loadSaveCustom,
Collection<FileChooserFilter> filters)
Returns an array of File objects, this method should be used instead of rolling your own JFileChooser. |
File[] |
getFiles(Component parent,
String title,
int loadSaveCustom,
String startDir,
String customApproveText,
boolean multiselect,
Collection<FileChooserFilter> filters)
Returns a list of File objects, this method should be used instead of rolling your own JFileChooser. |
File[] |
getFiles(Component parent,
String title,
int loadSaveCustom,
String startDir,
String customApproveText,
Collection<FileChooserFilter> filters)
Returns a list of File objects, this method should be used instead of rolling your own JFileChooser. |
| Field Detail |
|---|
static final String LAST_DIRECTORY
static final int LOAD
static final int SAVE
static final int CUSTOM
static final String urlPattern
| Method Detail |
|---|
File getFile(Component parent,
String title,
int loadSaveCustom,
Collection<FileChooserFilter> filters)
parent - the parent of the JFileChooser or FileDialogtitle - the title of the dialog boxloadSaveCustom - a flag for the type of file dialogfilters - a non-empty collection of file filters
File getFile(Component parent,
String title,
int loadSaveCustom,
String startDir,
String customApproveText,
Collection<FileChooserFilter> filters)
parent - the parent of the JFileChooser or FileDialogtitle - the title of the dialog boxloadSaveCustom - a flag for the type of file dialogstartDir - an alternate start dir, if null the default
Cytoscape MUD will be usedcustomApproveText - if this is a custom dialog, then
custom text should be on the approve
button.filters - a non-empty collection of file filters
File[] getFiles(Component parent,
String title,
int loadSaveCustom,
Collection<FileChooserFilter> filters)
parent - the parent of the JFileChooser or FileDialogtitle - the title of the dialog boxloadSaveCustom - a flag for the type of file dialogfilters - a non-empty collection of file filters
File[] getFiles(Component parent,
String title,
int loadSaveCustom,
String startDir,
String customApproveText,
Collection<FileChooserFilter> filters)
parent - the parent of the JFileChooser or FileDialogtitle - the title of the dialog boxloadSaveCustom - a flag for the type of file dialogstartDir - an alternate start dir, if null the default
Cytoscape MUD will be usedcustomApproveText - if this is a custom dialog, then
custom text should be on the approve
button.filters - a non-empty collection of file filters
File[] getFiles(Component parent,
String title,
int loadSaveCustom,
String startDir,
String customApproveText,
boolean multiselect,
Collection<FileChooserFilter> filters)
parent - the parent of the JFileChooser or FileDialogtitle - the title of the dialog boxloadSaveCustom - a flag for the type of file dialogstartDir - an alternate start dir, if null the default
cytoscape MUD will be usedcustomApproveText - if this is a custom dialog, then
custom text should be on the approve
button.multiselect - Enable selection of multiple files (Macs are
still limited to a single file because we use
FileDialog there -- is this fixed in Java 1.5?)filters - a non-empty collection of file filters
|
Cytoscape 3.0.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||