StocksMonitor 1.5.0

hirondelle.stocks.export
Class ExportAction

Object
  extended by AbstractAction
      extended by ExportAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action

public final class ExportAction
extends AbstractAction

Present dialog to allow user to save all Portfolio data as a single text file.

The text file is not intended to be edited by the end user, but rather as the input to the corresponding ImportAction. The format of the file is defined by Preferences.exportSubtree(java.io.OutputStream). The file name and extension are arbitrary, and defined entirely by the user.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class AbstractAction
changeSupport, enabled
 
Fields inherited from interface Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ExportAction(JFrame aFrame)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Allow the user to choose a destination file, then write the content of all saved Portfolio objects to this file as XML.
 
Methods inherited from class AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExportAction

public ExportAction(JFrame aFrame)
Constructor.

Parameters:
aFrame - parent frame to which this dialog is attached.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Allow the user to choose a destination file, then write the content of all saved Portfolio objects to this file as XML.

User navigation is minimized by storing the apparent directory of current interest. If the user selects this action a second time, then the file selection dialog is pre-set to this directory of interest, so that repeated navigation of the file system is often avoided.


StocksMonitor 1.5.0

Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53