StocksMonitor 1.5.0

hirondelle.stocks.file
Class FileSaveAsAction

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

public final class FileSaveAsAction
extends AbstractAction

Store the CurrentPortfolio under a new unique name, and display it to the user as the CurrentPortfolio, which does not need a save, and which reflects the new name just entered.

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
FileSaveAsAction(CurrentPortfolio aCurrentPortfolio, JFrame aFrame)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Allow user to input a new name for the current portfolio.
 
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

FileSaveAsAction

public FileSaveAsAction(CurrentPortfolio aCurrentPortfolio,
                        JFrame aFrame)
Constructor.

Parameters:
aCurrentPortfolio - is to be saved by this action.
aFrame - the parent window
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Allow user to input a new name for the current portfolio.

The name must have a non-zero trimmed length, and must be unique. If the name entered by the user does not comply, then they are informed and asked to re-input.


StocksMonitor 1.5.0

Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53