Package jmri.jmrix.rps.swing
Class CsvExportMeasurementAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrix.rps.swing.CsvExportMeasurementAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
,MeasurementListener
public class CsvExportMeasurementAction extends javax.swing.AbstractAction implements MeasurementListener
Action to export the incoming raw data to a CSV-format file.- Since:
- 2.3.1
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JFileChooser
fileChooser
(package private) boolean
logging
(package private) RpsSystemConnectionMemo
memo
(package private) javax.swing.JFrame
mParent
(package private) CSVPrinter
str
-
Constructor Summary
Constructors Constructor Description CsvExportMeasurementAction(java.lang.String actionName, RpsSystemConnectionMemo _memo)
CsvExportMeasurementAction(RpsSystemConnectionMemo _memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
void
notify(Measurement m)
(package private) void
startLogging(java.awt.event.ActionEvent e)
(package private) void
stopLogging(java.awt.event.ActionEvent e)
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
mParent
javax.swing.JFrame mParent
-
logging
boolean logging
-
str
CSVPrinter str
-
fileChooser
javax.swing.JFileChooser fileChooser
-
-
Constructor Detail
-
CsvExportMeasurementAction
public CsvExportMeasurementAction(java.lang.String actionName, RpsSystemConnectionMemo _memo)
-
CsvExportMeasurementAction
public CsvExportMeasurementAction(RpsSystemConnectionMemo _memo)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
stopLogging
void stopLogging(java.awt.event.ActionEvent e)
-
startLogging
void startLogging(java.awt.event.ActionEvent e)
-
notify
public void notify(Measurement m)
- Specified by:
notify
in interfaceMeasurementListener
-
-