public class PamFileBrowser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
OPEN_FILE |
static int |
SAVE_FILE |
Constructor and Description |
---|
PamFileBrowser() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
csvFileBrowser(java.awt.Window parentFrame,
java.lang.String dir,
int type)
Opens a file browser for .csv files.
|
static java.lang.String |
fileBrowser(java.awt.Window parentFrame,
java.lang.String dir,
int type,
java.lang.String extension)
Opens a file browser for a file.
|
static java.lang.String |
fileBrowser(java.awt.Window parentFrame,
java.lang.String dir,
int type,
java.lang.String[] fileExtensions)
Opens a file browser for a file.
|
public static final int OPEN_FILE
public static final int SAVE_FILE
public static java.lang.String csvFileBrowser(java.awt.Window parentFrame, java.lang.String dir, int type)
parentFrame-
- the framedir-
- directory the file browser begins with.type.
- Type of file browser. Generally an PAMFileBrowser.OPEN_FILE or PAMFileBrowser.SAVE.public static java.lang.String fileBrowser(java.awt.Window parentFrame, java.lang.String dir, int type, java.lang.String extension)
parentFrame-
- the framedir-
- directory the file browser begins with.type.
- Type of file browser. Generally an PAMFileBrowser.OPEN_FILE or PAMFileBrowser.SAVE.extension-
- file extension to usepublic static java.lang.String fileBrowser(java.awt.Window parentFrame, java.lang.String dir, int type, java.lang.String[] fileExtensions)
parentFrame-
- the framedir-
- directory the file browser begins with.type.
- Type of file browser. Generally an PAMFileBrowser.OPEN_FILE or PAMFileBrowser.SAVE.extension-
- file extension to useextension2-
- another file extension to use