public final class FileSaveAsAction extends AbstractAction
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.
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 |
---|
FileSaveAsAction(CurrentPortfolio aCurrentPortfolio,
JFrame aFrame)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Allow user to input a new name for the current portfolio.
|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public FileSaveAsAction(CurrentPortfolio aCurrentPortfolio, JFrame aFrame)
aCurrentPortfolio
- is to be saved by this action.aFrame
- the parent windowpublic void actionPerformed(ActionEvent e)
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.
Copyright Hirondelle Systems - License - Generated 2013Sep20.10.58