|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.AbstractAction
gov.nih.nlm.mms.SaveConfigAction
Saves a config file. Used for the File->Save Configuration
menu of MetamorphoSysGUI
.
Nested Class Summary | |
protected static class |
SaveConfigAction.PropertiesFileFilter
FileFilter class for JFileChooser to limit files to
.properties file extension. |
Field Summary | |
protected static File |
lastConfigFile
|
protected MetamorphoSys |
mms
|
protected Frame |
owner
|
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 | |
SaveConfigAction(MetamorphoSys mms,
Frame owner)
Instantiates a SaveConfigAction . |
Method Summary | |
void |
actionPerformed(ActionEvent e)
Saves the UserConfiguration to a file. |
void |
backupConfig()
Backup the config file to mmsys.prop.sav. |
protected void |
saveConfig()
Helper method for saving the configuration. |
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 |
protected MetamorphoSys mms
protected Frame owner
protected static File lastConfigFile
Constructor Detail |
public SaveConfigAction(MetamorphoSys mms, Frame owner)
SaveConfigAction
.
mms
- the MetamorphoSys
owner
- parent Component
Method Detail |
public void actionPerformed(ActionEvent e)
UserConfiguration
to a file.
e
- an ActionEvent
protected void saveConfig()
public void backupConfig()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |