Package jmri.configurexml
Class LoadXmlUserAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.configurexml.LoadStoreBaseAction
-
- jmri.configurexml.LoadXmlConfigAction
-
- jmri.configurexml.LoadXmlUserAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class LoadXmlUserAction extends LoadXmlConfigAction
Load configuration information from an XML file.The file context for this is the "user" file chooser.
This will load whatever information types are present in the file. See
ConfigureManager
for information on the various types of information stored in configuration files.- See Also:
XmlFile
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoadXmlUserAction()
LoadXmlUserAction(java.lang.String s)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
static java.io.File
getCurrentFile()
Used by e.g. jmri.jmrit.mailreport.ReportPanel et al to know last load-
Methods inherited from class jmri.configurexml.LoadXmlConfigAction
getFile, getFile, getFileCustom, getFileCustom, loadFile
-
Methods inherited from class jmri.configurexml.LoadStoreBaseAction
getAllFileChooser, getConfigFileChooser, getUserFileChooser
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
LoadXmlUserAction
public LoadXmlUserAction()
-
LoadXmlUserAction
public LoadXmlUserAction(java.lang.String s)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
- Overrides:
actionPerformed
in classLoadXmlConfigAction
-
getCurrentFile
public static java.io.File getCurrentFile()
Used by e.g. jmri.jmrit.mailreport.ReportPanel et al to know last load- Returns:
- the last file loaded using this action; returns null if this action was not called or if the last time this action was called, no file was loaded
-
-