easik.ui.menu
Class FileSaveAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by easik.ui.menu.FileSaveAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public class FileSaveAction
extends javax.swing.AbstractAction

Menu action for saving the sketch without first prompting for a file if possible.

Version:
2006-08-03 Kevin Green
Author:
Rob Fletcher 2005, Vera Ranieri 2006, Kevin Green 2006
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
FileSaveAction()
          Create a new action for saving the sketch or saving as if there is not already a file.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Check to see if the sketch already has a file name and if it doesn't prompt for one.
static void saveFile()
          Static method to save file to allow for saves prompted by the user via the action listener or by the program via the export to SQL functions.
 
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
 

Constructor Detail

FileSaveAction

public FileSaveAction()
Create a new action for saving the sketch or saving as if there is not already a file.

Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Check to see if the sketch already has a file name and if it doesn't prompt for one. Then save with that file name.

Parameters:
e - The action event

saveFile

public static void saveFile()
Static method to save file to allow for saves prompted by the user via the action listener or by the program via the export to SQL functions.

Since:
2006-05-18 Vera Ranieri