StocksMonitor 1.5.0

hirondelle.stocks.export
Class ImportAction

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

public final class ImportAction
extends AbstractAction

Allows user to replace the all Portfolios used by this application with those defined in a single text file.

The text file must be the unaltered result of a previous ExportAction.

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
ImportAction(JFrame aFrame)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent event)
          Allow the user to select a single file, and attempt to use its contents to replace all currently stored Portfolio objects.
 
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

ImportAction

public ImportAction(JFrame aFrame)
Constructor.

Parameters:
aFrame - parent window to which this action is attached.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)
Allow the user to select a single file, and attempt to use its contents to replace all currently stored Portfolio objects.

If the user attempts to import a second time, present the file selection GUI using the directory in which they showed interest during the first import. (This will often decrease the navigation burden on the user.)


StocksMonitor 1.5.0

Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53