javazoom.jlgui.player.amp.util
Class FileSelector
java.lang.Object
javazoom.jlgui.player.amp.util.FileSelector
public class FileSelector
extends java.lang.Object
This class is used to select a file or directory for loading or saving.
File | getDirectory()
|
File[] | getFiles()
|
static FileSelector | getInstance()
|
static File[] | selectFile(Loader loader, int mode, boolean multiple, File defaultFile, String extensions, String description, String titlePrefix, File directory) - Opens a dialog box so that the user can search for a file
with the given extension and returns the filename selected.
|
static File[] | selectFile(Loader loader, int mode, boolean multiple, String extensions, String description, File directory) - Opens a dialog box so that the user can search for a file
with the given extension and returns the filename selected.
|
DIRECTORY
public static final int DIRECTORY
OPEN
public static final int OPEN
SAVE
public static final int SAVE
SAVE_AS
public static final int SAVE_AS
getDirectory
public File getDirectory()
getFiles
public File[] getFiles()
selectFile
public static File[] selectFile(Loader loader,
int mode,
boolean multiple,
File defaultFile,
String extensions,
String description,
String titlePrefix,
File directory)
Opens a dialog box so that the user can search for a file
with the given extension and returns the filename selected.
mode
- the action that will be performed on the file, used to tell what
files are validdefaultFile
- the default fileextensions
- the extension of the filename to be selected,
or "" if any filename can be usedtitlePrefix
- the string to be put in the title, followed by : SaveAsdirectory
- the string to be put in the starting directory
selectFile
public static File[] selectFile(Loader loader,
int mode,
boolean multiple,
String extensions,
String description,
File directory)
Opens a dialog box so that the user can search for a file
with the given extension and returns the filename selected.
mode
- the action that will be performed on the file, used to tell what
files are validextensions
- the extension of the filename to be selected,
or "" if any filename can be useddirectory
- the folder to be put in the starting directory
JavaZOOM 1999-2006