public interface FileDialogChooser
Modifier and Type | Field and Description |
---|---|
static int |
APPROVE_OPTION
Return value if approve (yes, ok) is chosen.
|
static int |
CANCEL_OPTION
Return value if cancel is chosen.
|
static int |
DIRECTORIES_ONLY
Instruction to display only directories.
|
static int |
ERROR_OPTION
Return value if an error occurred.
|
static int |
FILES_AND_DIRECTORIES
Instruction to display both files and directories.
|
static int |
FILES_ONLY
Instruction to display only files.
|
static int |
OPEN_DIALOG
Type value indicating that the
FileDialogChooser supports an
"Open" file operation. |
static int |
SAVE_DIALOG
Type value indicating that the
FileDialogChooser supports a
"Save" file operation. |
Modifier and Type | Method and Description |
---|---|
void |
addChoosableFileFilter(FileFilter next) |
File |
getCurrentDirectory() |
FileFilter |
getFileFilter() |
File |
getSelectedFile() |
File[] |
getSelectedFiles()
Returns a list of selected files if the file chooser is
set to allow multiple selection.
|
boolean |
isMultiSelectionEnabled() |
void |
setAcceptAllFileFilterUsed(boolean b) |
void |
setCurrentDirectory(File dir) |
void |
setDialogTitle(String dialogTitle) |
void |
setDialogType(int dialogType) |
void |
setDragEnabled(boolean b) |
void |
setFileFilter(FileFilter filter) |
void |
setFileHidingEnabled(boolean b) |
void |
setFileSelectionMode(int mode) |
void |
setMultiSelectionEnabled(boolean b) |
int |
showOpenDialog(Component parent) |
int |
showSaveDialog(Component parent) |
static final int APPROVE_OPTION
static final int CANCEL_OPTION
static final int DIRECTORIES_ONLY
static final int ERROR_OPTION
static final int FILES_AND_DIRECTORIES
static final int FILES_ONLY
static final int OPEN_DIALOG
FileDialogChooser
supports an
"Open" file operation.static final int SAVE_DIALOG
FileDialogChooser
supports a
"Save" file operation.void setCurrentDirectory(File dir)
File getCurrentDirectory()
void setDialogTitle(String dialogTitle)
void setDialogType(int dialogType)
void setDragEnabled(boolean b)
void setFileFilter(FileFilter filter)
void setFileSelectionMode(int mode)
File getSelectedFile()
File[] getSelectedFiles()
void setFileHidingEnabled(boolean b)
void setMultiSelectionEnabled(boolean b)
boolean isMultiSelectionEnabled()
int showOpenDialog(Component parent)
int showSaveDialog(Component parent)
void setAcceptAllFileFilterUsed(boolean b)
void addChoosableFileFilter(FileFilter next)
FileFilter getFileFilter()