JHotDraw 7.0.9

org.jhotdraw.application.action
Interface ExportableDocumentView

All Superinterfaces:
DocumentView

public interface ExportableDocumentView
extends DocumentView

ExportableDocumentView is implemented by DocumentView's that support the ExportAction.

Version:
1.0 January 2, 2007 Created.
Author:
Werner Randelshofer

Method Summary
 void export(java.io.File f, javax.swing.filechooser.FileFilter filter, java.awt.Component accessory)
          Exports the documentView.
 javax.swing.JFileChooser getExportChooser()
          Gets the file chooser for exporting the documentView.
 
Methods inherited from interface org.jhotdraw.application.DocumentView
addPropertyChangeListener, clear, destroy, execute, getAction, getComponent, getFile, getName, getOpenChooser, getSaveChooser, init, isEnabled, isModified, putAction, read, removePropertyChangeListener, setEnabled, setFile, setModified, setName, start, stop, write
 

Method Detail

getExportChooser

javax.swing.JFileChooser getExportChooser()
Gets the file chooser for exporting the documentView.


export

void export(java.io.File f,
            javax.swing.filechooser.FileFilter filter,
            java.awt.Component accessory)
            throws java.io.IOException
Exports the documentView. By convention this method is never invoked on the AWT Event Dispatcher Thread.

Parameters:
f - The file to which export the documentView.
filter - The FileFilter that was used to choose the file. This can be null.
accessory - The Accessory used by the JFileChooser. This can be null.
Throws:
java.io.IOException

Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.