StocksMonitor 1.5.0

hirondelle.stocks.file
Class FileDeleteAction

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

public final class FileDeleteAction
extends AbstractAction
implements Observer

Delete the CurrentPortfolio from storage, and display an untitled portfolio to the user, which does not need a save.

The user is always asked to first confirm the deletion.

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
FileDeleteAction(CurrentPortfolio aCurrentPortfolio, JFrame aParentFrame)
          Constructor.
 
Method Summary
 void actionPerformed(ActionEvent e)
           
 void update(Observable aPublisher, Object aData)
          Synchronize the state of this object with the state of the CurrentPortfolio passed to the constructor.
 
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

FileDeleteAction

public FileDeleteAction(CurrentPortfolio aCurrentPortfolio,
                        JFrame aParentFrame)
Constructor.

Parameters:
aCurrentPortfolio - will be deleted from storage by this action.
aParentFrame - window to which this action is attached.
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Specified by:
actionPerformed in interface ActionListener

update

public void update(Observable aPublisher,
                   Object aData)
Synchronize the state of this object with the state of the CurrentPortfolio passed to the constructor. This action is enabled only when the CurrentPortfolio is titled.

Specified by:
update in interface Observer

StocksMonitor 1.5.0

Copyright Hirondelle Systems - License - Generated 2008Jul12.10.53