StocksMonitor 1.5.0

hirondelle.stocks.file
Class FileOpenAction

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

public final class FileOpenAction
extends AbstractAction

Present an alphabetical list of Portfolio names, from which the user may choose one, which is then presented to the user as the CurrentPortfolio.

If the CurrentPortfolio being replaced has unsaved edits, then the appropriate Save or SaveAs action is called before this action executes.

This action is always enabled.

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
FileOpenAction(CurrentPortfolio aCurrentPortfolio, JFrame aFrame, EditSaver aEditSaver)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent event)
           
 
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

FileOpenAction

public FileOpenAction(CurrentPortfolio aCurrentPortfolio,
                      JFrame aFrame,
                      EditSaver aEditSaver)
Constructor.

Parameters:
aCurrentPortfolio - is updated by this action.
aFrame - the parent window
aEditSaver - allows the user to save any unsaved edits of the old CurrentPortfolio being replaced by this action.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)

StocksMonitor 1.5.0

Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53