public class SwingExportInteraction extends Object implements DOM4JSerializer.ExportInteraction
| Constructor and Description |
|---|
SwingExportInteraction(Window parent) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
confirmOverwritingExistingFile(File file)
The file already exists.
|
File |
promptForFile(FileFilter fileFilter)
This is called when you should ask the user for a source file to read.
|
void |
reportError(String error)
Report an error that occurred.
|
public SwingExportInteraction(Window parent)
public File promptForFile(FileFilter fileFilter)
promptForFile in interface DOM4JSerializer.ExportInteractionfileFilter - describes the allowed file type. Suitable for passing to JFileChooser.public void reportError(String error)
reportError in interface DOM4JSerializer.ExportInteractionerror - the error message.public boolean confirmOverwritingExistingFile(File file)
confirmOverwritingExistingFile in interface DOM4JSerializer.ExportInteractionfile - the file in questionCopyright © 2013. All rights reserved