public class VFSJFileChooserBased extends java.lang.Object implements FileDialogChooser
APPROVE_OPTION, CANCEL_OPTION, DIRECTORIES_ONLY, ERROR_OPTION, FILES_AND_DIRECTORIES, FILES_ONLY, OPEN_DIALOG, SAVE_DIALOG
Constructor and Description |
---|
VFSJFileChooserBased(java.lang.String fileChooserID) |
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) |
public void setCurrentDirectory(java.io.File dir)
setCurrentDirectory
in interface FileDialogChooser
public java.io.File getCurrentDirectory()
getCurrentDirectory
in interface FileDialogChooser
public void setDialogTitle(java.lang.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(javax.swing.filechooser.FileFilter filter)
setFileFilter
in interface FileDialogChooser
public javax.swing.filechooser.FileFilter getFileFilter()
getFileFilter
in interface FileDialogChooser
public void setFileSelectionMode(int mode)
setFileSelectionMode
in interface FileDialogChooser
public java.io.File getSelectedFile()
getSelectedFile
in interface FileDialogChooser
public java.io.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(java.awt.Component parent)
showOpenDialog
in interface FileDialogChooser
public int showSaveDialog(java.awt.Component parent)
showSaveDialog
in interface FileDialogChooser
public int showSaveDialog(java.awt.Component parent, java.io.File folder)
showSaveDialog
in interface FileDialogChooser
public void setAcceptAllFileFilterUsed(boolean b)
setAcceptAllFileFilterUsed
in interface FileDialogChooser
public void addChoosableFileFilter(javax.swing.filechooser.FileFilter next)
addChoosableFileFilter
in interface FileDialogChooser
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
addPropertyChangeListener
in interface FileDialogChooser
public void setAccessory(javax.swing.JComponent newAccessory)
setAccessory
in interface FileDialogChooser
public void setVisibleCharsetPicker(boolean b)
setVisibleCharsetPicker
in interface FileDialogChooser
public java.nio.charset.Charset getCharset()
getCharset
in interface FileDialogChooser