Package jmri.configurexml
Class LoadXmlConfigAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.configurexml.LoadStoreBaseAction
-
- jmri.configurexml.LoadXmlConfigAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
- Direct Known Subclasses:
LoadXmlUserAction
public class LoadXmlConfigAction extends LoadStoreBaseAction
Load configuration information from an XML file.The file context for this is the "config" 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 LoadXmlConfigAction()
LoadXmlConfigAction(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
getFile(javax.swing.JFileChooser fileChooser)
static java.io.File
getFileCustom(javax.swing.JFileChooser fileChooser)
protected boolean
loadFile(javax.swing.JFileChooser fileChooser)
-
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
-
LoadXmlConfigAction
public LoadXmlConfigAction()
-
LoadXmlConfigAction
public LoadXmlConfigAction(java.lang.String s)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
loadFile
protected boolean loadFile(javax.swing.JFileChooser fileChooser)
- Parameters:
fileChooser
-JFileChooser
to use for file selection- Returns:
- true if successful
-
getFile
public static java.io.File getFile(javax.swing.JFileChooser fileChooser)
-
getFileCustom
public static java.io.File getFileCustom(javax.swing.JFileChooser fileChooser)
-
-