gov.nih.nlm.mms
Class NewConfigAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bygov.nih.nlm.mms.SaveConfigAction
          extended bygov.nih.nlm.mms.OpenConfigAction
              extended bygov.nih.nlm.mms.NewConfigAction
All Implemented Interfaces:
Action, ActionListener, Cloneable, EventListener, Serializable

public class NewConfigAction
extends OpenConfigAction

Opens a new configuration file. Used for the File->New Configuration menu of MetamorphoSysGUI.

Author:
Brian Carlsen, Deborah Shapiro
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class gov.nih.nlm.mms.SaveConfigAction
SaveConfigAction.PropertiesFileFilter
 
Field Summary
 
Fields inherited from class gov.nih.nlm.mms.OpenConfigAction
cancelled
 
Fields inherited from class gov.nih.nlm.mms.SaveConfigAction
lastConfigFile, mms, 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
NewConfigAction(MetamorphoSys mms, Frame owner)
          Instantiates a NewConfigAction.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Opens the specified configuration file.
 
Methods inherited from class gov.nih.nlm.mms.OpenConfigAction
isCancelled, openConfig, refreshGui, setFileToOpen
 
Methods inherited from class gov.nih.nlm.mms.SaveConfigAction
backupConfig, saveConfig
 
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

NewConfigAction

public NewConfigAction(MetamorphoSys mms,
                       Frame owner)
Instantiates a NewConfigAction.

Parameters:
mms - the MetamorphoSys object
owner - parent Component
Method Detail

actionPerformed

public void actionPerformed(ActionEvent e)
Opens the specified configuration file.

Specified by:
actionPerformed in interface ActionListener
Overrides:
actionPerformed in class OpenConfigAction
Parameters:
e - an ActionEvent


Copyright ©2005