public class SwingFileChooserService extends Object implements CommonFileChooser
Constructor and Description |
---|
SwingFileChooserService(String fileType) |
Modifier and Type | Method and Description |
---|---|
String |
getFileType() |
FileFilter[] |
getFilters() |
File |
getSelectedFile() |
File[] |
getSelectedFiles() |
boolean |
isAllowMultiSelection() |
void |
setAllowMultiSelection(boolean allowMultiSelection) |
void |
setFilters(FileFilter[] filters) |
void |
setSelectedFile(File selectedFile) |
void |
setSelectedFiles(File[] selectedFiles) |
boolean |
showDialog(Component parent,
int mode) |
public SwingFileChooserService(String fileType)
public String getFileType()
getFileType
in interface CommonFileChooser
public File[] getSelectedFiles()
getSelectedFiles
in interface CommonFileChooser
public File getSelectedFile()
getSelectedFile
in interface CommonFileChooser
public void setSelectedFile(File selectedFile)
setSelectedFile
in interface CommonFileChooser
public void setSelectedFiles(File[] selectedFiles)
setSelectedFiles
in interface CommonFileChooser
public boolean isAllowMultiSelection()
isAllowMultiSelection
in interface CommonFileChooser
public void setAllowMultiSelection(boolean allowMultiSelection)
setAllowMultiSelection
in interface CommonFileChooser
public FileFilter[] getFilters()
getFilters
in interface CommonFileChooser
public void setFilters(FileFilter[] filters)
setFilters
in interface CommonFileChooser
public boolean showDialog(Component parent, int mode)
showDialog
in interface CommonFileChooser