StocksMonitor 1.5.0

hirondelle.stocks.file
Class FileExitAction

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

public final class FileExitAction
extends AbstractAction

Close the application.

If the CurrentPortfolio has any unsaved edits, then allow the user to decide if those edits should be saved.

When the application is closed, the CurrentPortfolio is saved as the default, and will be automatically loaded upon any relaunch.

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
FileExitAction(CurrentPortfolio aCurrentPortfolio, 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

FileExitAction

public FileExitAction(CurrentPortfolio aCurrentPortfolio,
                      EditSaver aEditSaver)
Constructor.

Parameters:
aCurrentPortfolio - may have unsaved edits when this action is taken.
aEditSaver - allows the user to save any unsaved edits.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent event)

StocksMonitor 1.5.0

Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53