gov.nih.nlm.mms
Class OpenConfigAction
java.lang.Object
javax.swing.AbstractAction
gov.nih.nlm.mms.SaveConfigAction
gov.nih.nlm.mms.OpenConfigAction
- All Implemented Interfaces:
- Action, ActionListener, Cloneable, EventListener, Serializable
- Direct Known Subclasses:
- NewConfigAction
- public class OpenConfigAction
- extends SaveConfigAction
Opens a configuration file. Used for the
File->Open Configuration
menu
of MetamorphoSysGUI
.
- Author:
- Brian Carlsen, Deborah Shapiro
- See Also:
- Serialized Form
cancelled
protected boolean cancelled
OpenConfigAction
public OpenConfigAction(MetamorphoSys mms,
Frame owner)
- Instantiates an
OpenConfigAction
.
- Parameters:
mms
- the MetamorphoSys
objectowner
- parent Component
setFileToOpen
public void setFileToOpen(File to_open)
- Sets the file to be opened.
- Parameters:
to_open
- File
to be opened
actionPerformed
public void actionPerformed(ActionEvent e)
- Opens the specified configuration file.
- Specified by:
actionPerformed
in interface ActionListener
- Overrides:
actionPerformed
in class SaveConfigAction
- Parameters:
e
- an ActionEvent
openConfig
protected void openConfig()
- Open the configuration, save if changed.
isCancelled
public boolean isCancelled()
- Indicates whether or not the file chooser was cancelled.
- Returns:
true
if so; false
if not
refreshGui
protected void refreshGui()
- Refresh the GUI.
Copyright ©2005