public class APrintFileChooser
extends java.lang.Object
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 |
CUSTOM_DIALOG
Type value indicating that the
JFileChooser supports a
developer-specified file operation. |
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
JFileChooser supports an "Open"
file operation. |
static int |
SAVE_DIALOG
Type value indicating that the
JFileChooser supports a "Save"
file operation. |
Constructor and Description |
---|
APrintFileChooser() |
APrintFileChooser(java.io.File currentDir) |
Modifier and Type | Method and Description |
---|---|
void |
addFileFilter(VFSFileNameExtensionFilter fileFilter) |
static org.apache.commons.vfs2.provider.AbstractFileObject |
convertToFileObject(java.io.File selectedFile) |
protected void |
customizeFileView() |
org.apache.commons.vfs2.provider.AbstractFileObject |
getSelectedFile() |
VFSFileNameExtensionFilter |
getSelectedFileFilter() |
org.apache.commons.vfs2.FileObject[] |
getSelectedFiles() |
void |
setApproveButtonMnemonic(char buttonMnemonic) |
void |
setApproveButtonText(java.lang.String text) |
void |
setCurrentDirectory(java.io.File currentDirectory) |
void |
setDialogTitle(java.lang.String title) |
void |
setFileFilter(VFSFileNameExtensionFilter fileFilter) |
void |
setFileSelectionMode(int selectionMode) |
void |
setMultiSelectionEnabled(boolean multiSelectionEnabled) |
void |
setSelectedFile(org.apache.commons.vfs2.provider.AbstractFileObject selectedFile) |
void |
setSelectedFile(java.io.File selectedFile) |
int |
showDialog(java.awt.Component parentComponent,
java.lang.String label) |
int |
showOpenDialog(java.awt.Component parentComponent) |
int |
showSaveDialog(java.awt.Component parentComponent) |
public static final int FILES_ONLY
public static final int DIRECTORIES_ONLY
public static final int FILES_AND_DIRECTORIES
public static final int OPEN_DIALOG
JFileChooser
supports an "Open"
file operation.public static final int SAVE_DIALOG
JFileChooser
supports a "Save"
file operation.public static final int CUSTOM_DIALOG
JFileChooser
supports a
developer-specified file operation.public static final int CANCEL_OPTION
public static final int APPROVE_OPTION
public static final int ERROR_OPTION
public APrintFileChooser()
public APrintFileChooser(java.io.File currentDir)
protected void customizeFileView()
public void setSelectedFile(java.io.File selectedFile)
public static org.apache.commons.vfs2.provider.AbstractFileObject convertToFileObject(java.io.File selectedFile) throws org.apache.commons.vfs2.FileSystemException
org.apache.commons.vfs2.FileSystemException
public void setSelectedFile(org.apache.commons.vfs2.provider.AbstractFileObject selectedFile)
public void setCurrentDirectory(java.io.File currentDirectory)
public void setFileSelectionMode(int selectionMode)
public void setMultiSelectionEnabled(boolean multiSelectionEnabled)
public void setFileFilter(VFSFileNameExtensionFilter fileFilter)
public void addFileFilter(VFSFileNameExtensionFilter fileFilter)
public VFSFileNameExtensionFilter getSelectedFileFilter()
public void setDialogTitle(java.lang.String title)
public void setApproveButtonText(java.lang.String text)
public void setApproveButtonMnemonic(char buttonMnemonic)
public int showOpenDialog(java.awt.Component parentComponent)
public int showSaveDialog(java.awt.Component parentComponent)
public int showDialog(java.awt.Component parentComponent, java.lang.String label)
public org.apache.commons.vfs2.provider.AbstractFileObject getSelectedFile()
public org.apache.commons.vfs2.FileObject[] getSelectedFiles()