Package jmri.configurexml
Class StoreXmlConfigAction
java.lang.Object
javax.swing.AbstractAction
jmri.configurexml.LoadStoreBaseAction
jmri.configurexml.StoreXmlConfigAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
- Direct Known Subclasses:
StoreXmlUserAction
Store the JMRI configuration information as XML.
Note that this does not store preferences, tools or user information in the
file. This is not a complete store! See ConfigureManager for
information on the various types of information stored in configuration
files.
- See Also:
-
Field Summary
FieldsFields 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 FilegetFileCustom(JFileChooser fileChooser) Do the filename handling: rescan directory to see any new files Prompt user to select a file adds .xml extension if needed if that file exists, check with userstatic FilegetFileName(JFileChooser fileChooser) Methods 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
-
Field Details
-
rb
-
-
Constructor Details
-
StoreXmlConfigAction
public StoreXmlConfigAction() -
StoreXmlConfigAction
-
-
Method Details
-
getFileName
-
getFileCustom
Do the filename handling:- rescan directory to see any new files
- Prompt user to select a file
- adds .xml extension if needed
- if that file exists, check with user
- Parameters:
fileChooser- the file chooser to use- Returns:
- the file to store or null if the user declined to store a file
-
actionPerformed
-