jgnash.ui.actions
Class SaveFileAsAction
java.lang.Object
javax.swing.AbstractAction
jgnash.ui.actions.AbstractEnabledAction
jgnash.ui.actions.SaveFileAsAction
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, MessageListener
public class SaveFileAsAction
- extends AbstractEnabledAction
UI Action to save the current database as a new name and reopen
- Version:
- $Id$
- Author:
- Craig Cavanaugh
- See Also:
- Serialized Form
| Fields inherited from class javax.swing.AbstractAction |
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
| Methods inherited from class javax.swing.AbstractAction |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
CURRENT_DIR
private static final java.lang.String CURRENT_DIR
- See Also:
- Constant Field Values
SaveFileAsAction
public SaveFileAsAction()
saveFileAs
private static void saveFileAs()
- Opens a Save as Dialog. If the extension of the destination file
is different than the file currently open, then an attempt is made
to identify the new file format and save accordingly. Otherwise,
a copy of the file is made.
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)