Package jmri.jmrit.vsdecoder
Class LoadVSDFileAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.vsdecoder.LoadVSDFileAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class LoadVSDFileAction extends javax.swing.AbstractAction
Load VSDecoder Profiles from XML Adapted from LoadXmlThrottleProfileAction by Glen Oberhauser (2004)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LoadVSDFileAction()
LoadVSDFileAction(java.lang.String s)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
The action is performed.static boolean
loadVSDFile(java.lang.String fp)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
LoadVSDFileAction
public LoadVSDFileAction(java.lang.String s)
Constructor- Parameters:
s
- Name for the action.
-
LoadVSDFileAction
public LoadVSDFileAction()
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
The action is performed. Let the user choose the file to load from. Read XML for each VSDecoder Profile.- Parameters:
e
- The event causing the action.
-
loadVSDFile
public static boolean loadVSDFile(java.lang.String fp)
-
-