Package jmri.jmrit.throttle
Class StoreXmlThrottlesLayoutAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.throttle.StoreXmlThrottlesLayoutAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class StoreXmlThrottlesLayoutAction extends javax.swing.AbstractAction
Save throttles to XML- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description StoreXmlThrottlesLayoutAction()
StoreXmlThrottlesLayoutAction(java.lang.String s)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
The action is performed.void
saveThrottlesLayout(java.io.File f)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
StoreXmlThrottlesLayoutAction
public StoreXmlThrottlesLayoutAction(java.lang.String s)
Constructor- Parameters:
s
- Name for the action.
-
StoreXmlThrottlesLayoutAction
public StoreXmlThrottlesLayoutAction()
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
The action is performed. Let the user choose the file to save to. Write XML for each ThrottleFrame.- Parameters:
e
- The event causing the action.
-
saveThrottlesLayout
public void saveThrottlesLayout(java.io.File f)
-
-