Package jmri.configurexml
Class LoadStoreBaseAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.configurexml.LoadStoreBaseAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
- Direct Known Subclasses:
LoadXmlConfigAction
,StoreXmlConfigAction
public abstract class LoadStoreBaseAction extends javax.swing.AbstractAction
Base implementation for the load and store actions. Primarily provides file checking services to the specific subclasses that load/store particular types of data.Also used to hold common information, specifically common instances of the JFileChooser. These bring the user back to the same place in the file system each time an action is invoked.
- See Also:
XmlFile
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoadStoreBaseAction(java.lang.String s)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static javax.swing.JFileChooser
getAllFileChooser()
protected static javax.swing.JFileChooser
getConfigFileChooser()
static javax.swing.JFileChooser
getUserFileChooser()
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
LoadStoreBaseAction
public LoadStoreBaseAction(java.lang.String s)
-
-
Method Detail
-
getAllFileChooser
protected static javax.swing.JFileChooser getAllFileChooser()
-
getConfigFileChooser
protected static javax.swing.JFileChooser getConfigFileChooser()
-
getUserFileChooser
public static javax.swing.JFileChooser getUserFileChooser()
-
-