public final class FileDeleteAction extends AbstractAction implements Observer
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.
changeSupport, enabled
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
Constructor and Description |
---|
FileDeleteAction(CurrentPortfolio aCurrentPortfolio,
JFrame aParentFrame)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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. |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public FileDeleteAction(CurrentPortfolio aCurrentPortfolio, JFrame aParentFrame)
aCurrentPortfolio
- will be deleted from storage by this action.aParentFrame
- window to which this action is attached.public void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void update(Observable aPublisher, Object aData)
CurrentPortfolio
passed to the constructor.
This action is enabled only when the CurrentPortfolio is titled.Copyright Hirondelle Systems - License - Generated 2013Sep20.10.58