public class VFSJFileChooserBased extends Object implements FileDialogChooser
APPROVE_OPTION, CANCEL_OPTION, DIRECTORIES_ONLY, ERROR_OPTION, FILES_AND_DIRECTORIES, FILES_ONLY, OPEN_DIALOG, SAVE_DIALOG
Constructor and Description |
---|
VFSJFileChooserBased(String fileChooserID) |
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) |
public VFSJFileChooserBased(String fileChooserID)
public void setCurrentDirectory(File dir)
setCurrentDirectory
in interface FileDialogChooser
public File getCurrentDirectory()
getCurrentDirectory
in interface FileDialogChooser
public void setDialogTitle(String dialogTitle)
setDialogTitle
in interface FileDialogChooser
public void setDialogType(int dialogType)
setDialogType
in interface FileDialogChooser
public void setDragEnabled(boolean b)
setDragEnabled
in interface FileDialogChooser
public void setFileFilter(FileFilter filter)
setFileFilter
in interface FileDialogChooser
public FileFilter getFileFilter()
getFileFilter
in interface FileDialogChooser
public void setFileSelectionMode(int mode)
setFileSelectionMode
in interface FileDialogChooser
public File getSelectedFile()
getSelectedFile
in interface FileDialogChooser
public File[] getSelectedFiles()
FileDialogChooser
getSelectedFiles
in interface FileDialogChooser
public void setFileHidingEnabled(boolean b)
setFileHidingEnabled
in interface FileDialogChooser
public void setMultiSelectionEnabled(boolean b)
setMultiSelectionEnabled
in interface FileDialogChooser
public boolean isMultiSelectionEnabled()
isMultiSelectionEnabled
in interface FileDialogChooser
public int showOpenDialog(Component parent)
showOpenDialog
in interface FileDialogChooser
public int showSaveDialog(Component parent)
showSaveDialog
in interface FileDialogChooser
public void setAcceptAllFileFilterUsed(boolean b)
setAcceptAllFileFilterUsed
in interface FileDialogChooser
public void addChoosableFileFilter(FileFilter next)
addChoosableFileFilter
in interface FileDialogChooser