Package jmri.configurexml
Class LoadXmlUserAction
java.lang.Object
javax.swing.AbstractAction
jmri.configurexml.LoadStoreBaseAction
jmri.configurexml.LoadXmlConfigAction
jmri.configurexml.LoadXmlUserAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
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:
-
Field Summary
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstatic FileUsed by e.g. jmri.jmrit.mailreport.ReportPanel et al to know last loadMethods inherited from class jmri.configurexml.LoadXmlConfigAction
getFile, getFile, getFileCustom, getFileCustom, loadFileMethods inherited from class jmri.configurexml.LoadStoreBaseAction
getAllFileChooser, getConfigFileChooser, getUserFileChooserMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Constructor Details
-
LoadXmlUserAction
public LoadXmlUserAction() -
LoadXmlUserAction
-
-
Method Details
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener- Overrides:
actionPerformedin classLoadXmlConfigAction
-
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
-