JHotDraw 7.0.6

org.jhotdraw.app.action
Class ExportAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.jhotdraw.app.action.AbstractProjectAction
          extended by org.jhotdraw.app.action.ExportAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class ExportAction
extends AbstractProjectAction

ExportAction.

This action requires that the project has the following additional methods:

 public JFileChooser getExportChooser();

 // By convention this method is never invoked on the AWT Event Dispatcher Thread.
 public void export(File f, javax.swing.filechooser.FileFilter filter, Component accessory) throws IOException;
 

See Also:
Serialized Form

Field Summary
static java.lang.String ID
           
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ExportAction(Application app)
          Creates a new instance.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
           
protected  void exportToFile(Project project, java.io.File file, javax.swing.filechooser.FileFilter filter, java.awt.Component accessory)
           
protected  void fileExported(Project project, java.io.File file, java.lang.Object value)
           
 
Methods inherited from class org.jhotdraw.app.action.AbstractProjectAction
getApplication, getCurrentProject, installProjectListeners, isEnabled, setEnabled, uninstallProjectListeners, updateEnabled, updateProject
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final java.lang.String ID
See Also:
Constant Field Values
Constructor Detail

ExportAction

public ExportAction(Application app)
Creates a new instance.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)

exportToFile

protected void exportToFile(Project project,
                            java.io.File file,
                            javax.swing.filechooser.FileFilter filter,
                            java.awt.Component accessory)

fileExported

protected void fileExported(Project project,
                            java.io.File file,
                            java.lang.Object value)

Copyright 1996-2006 © JHotDraw.org