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(javax.swing.filechooser.FileFilter next) |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener) |
java.nio.charset.Charset |
getCharset() |
java.io.File |
getCurrentDirectory() |
javax.swing.filechooser.FileFilter |
getFileFilter() |
java.io.File |
getSelectedFile() |
java.io.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 |
setAccessory(javax.swing.JComponent newAccessory) |
void |
setCurrentDirectory(java.io.File dir) |
void |
setDialogTitle(java.lang.String dialogTitle) |
void |
setDialogType(int dialogType) |
void |
setDragEnabled(boolean b) |
void |
setFileFilter(javax.swing.filechooser.FileFilter filter) |
void |
setFileHidingEnabled(boolean b) |
void |
setFileSelectionMode(int mode) |
void |
setMultiSelectionEnabled(boolean b) |
void |
setVisibleCharsetPicker(boolean b) |
int |
showOpenDialog(java.awt.Component parent) |
int |
showSaveDialog(java.awt.Component parent) |
int |
showSaveDialog(java.awt.Component parent,
java.io.File folder) |
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(java.io.File dir)
java.io.File getCurrentDirectory()
void setDialogTitle(java.lang.String dialogTitle)
void setDialogType(int dialogType)
void setDragEnabled(boolean b)
void setFileFilter(javax.swing.filechooser.FileFilter filter)
void setFileSelectionMode(int mode)
java.io.File getSelectedFile()
java.io.File[] getSelectedFiles()
void setFileHidingEnabled(boolean b)
void setMultiSelectionEnabled(boolean b)
boolean isMultiSelectionEnabled()
int showOpenDialog(java.awt.Component parent)
int showSaveDialog(java.awt.Component parent)
int showSaveDialog(java.awt.Component parent, java.io.File folder)
void setAcceptAllFileFilterUsed(boolean b)
void addChoosableFileFilter(javax.swing.filechooser.FileFilter next)
javax.swing.filechooser.FileFilter getFileFilter()
void setAccessory(javax.swing.JComponent newAccessory)
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
void setVisibleCharsetPicker(boolean b)
java.nio.charset.Charset getCharset()