jgnash.ui.actions
Class SaveFileAsAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by jgnash.ui.actions.AbstractEnabledAction
          extended by 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

Field Summary
private static java.lang.String CURRENT_DIR
           
private static long serialVersionUID
           
 
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
 
Constructor Summary
SaveFileAsAction()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
private static void saveFileAs()
          Opens a Save as Dialog.
 
Methods inherited from class jgnash.ui.actions.AbstractEnabledAction
messagePosted
 
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
 

Field Detail

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
Constructor Detail

SaveFileAsAction

public SaveFileAsAction()
Method Detail

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)