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