Package jmri.jmrix.rps.swing
Class CsvExportAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrix.rps.swing.CsvExportAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action,ReadingListener
public class CsvExportAction extends javax.swing.AbstractAction implements ReadingListener
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.JFileChooserfileChooser(package private) booleanlogging(package private) RpsSystemConnectionMemomemo(package private) javax.swing.JFramemParent(package private) CSVPrinterstr
-
Constructor Summary
Constructors Constructor Description CsvExportAction(java.lang.String actionName, RpsSystemConnectionMemo _memo)CsvExportAction(RpsSystemConnectionMemo _memo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)voidnotify(Reading r)(package private) voidstartLogging(java.awt.event.ActionEvent e)(package private) voidstopLogging(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
-
CsvExportAction
public CsvExportAction(java.lang.String actionName, RpsSystemConnectionMemo _memo)
-
CsvExportAction
public CsvExportAction(RpsSystemConnectionMemo _memo)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
stopLogging
void stopLogging(java.awt.event.ActionEvent e)
-
startLogging
void startLogging(java.awt.event.ActionEvent e)
-
notify
public void notify(Reading r)
- Specified by:
notifyin interfaceReadingListener
-
-