JHotDraw 7.0.9

org.jhotdraw.app.action
Interface ExportableProject

All Superinterfaces:
Project
All Known Implementing Classes:
SVGProject

public interface ExportableProject
extends Project

ExportableProject is implemented by Project'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 project.
 javax.swing.JFileChooser getExportChooser()
          Gets the file chooser for exporting the project.
 
Methods inherited from interface org.jhotdraw.app.Project
addPropertyChangeListener, clear, dispose, execute, getAction, getApplication, getComponent, getFile, getMultipleOpenId, getOpenChooser, getSaveChooser, hasUnsavedChanges, init, isEnabled, isShowing, markChangesAsSaved, putAction, read, removePropertyChangeListener, setApplication, setEnabled, setFile, setMultipleOpenId, setShowing, write
 

Method Detail

getExportChooser

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


export

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

Parameters:
f - The file to which export the project.
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.