|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jmeter.gui.util.FileDialoger
public final class FileDialoger
Class implementing a file open dialogue
Method Summary | |
---|---|
static String |
getLastJFCDirectory()
|
static JFileChooser |
promptToOpenFile()
Prompts the user to choose a file from their filesystems for our own devious uses. |
static JFileChooser |
promptToOpenFile(String existingFileName)
Prompts the user to choose a file from their filesystems for our own devious uses. |
static JFileChooser |
promptToOpenFile(String[] exts)
Prompts the user to choose a file from their filesystems for our own devious uses. |
static JFileChooser |
promptToOpenFile(String[] exts,
String existingFileName)
Prompts the user to choose a file from their filesystems for our own devious uses. |
static JFileChooser |
promptToSaveFile(String filename)
Prompts the user to choose a file from their filesystems for our own devious uses. |
static JFileChooser |
promptToSaveFile(String filename,
String[] extensions)
Get a JFileChooser with a new FileFilter. |
static void |
setLastJFCDirectory(String lastJFCDirectory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static JFileChooser promptToOpenFile()
public static JFileChooser promptToOpenFile(String existingFileName)
existingFileName
- The name of a file with path. If the filename points
to an existing file, the directory in which it lies, will be used
as the starting point for the returned JFileChooser.
public static JFileChooser promptToOpenFile(String[] exts)
exts
- The list of allowed file extensions. If empty, any
file extension is allowed
public static JFileChooser promptToOpenFile(String[] exts, String existingFileName)
exts
- The list of allowed file extensions. If empty, any
file extension is allowedexistingFileName
- The name of a file with path. If the filename points
to an existing file, the directory in which it lies, will be used
as the starting point for the returned JFileChooser.
public static JFileChooser promptToSaveFile(String filename)
filename
- The name of a file with path. If the filename points
to an existing file, the directory in which it lies, will be used
as the starting point for the returned JFileChooser.
promptToOpenFile()
public static JFileChooser promptToSaveFile(String filename, String[] extensions)
filename
- file nameextensions
- list of extensions
public static String getLastJFCDirectory()
public static void setLastJFCDirectory(String lastJFCDirectory)
lastJFCDirectory
- The last directory visited by the user while choosing Files
|
Apache JMeter | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |