Package jmri.jmrit.symbolicprog
Class CsvExportVariablesAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.symbolicprog.CsvExportVariablesAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class CsvExportVariablesAction extends javax.swing.AbstractAction
Action to export the CV values to a Comma Separated Variable (CSV) data file.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) javax.swing.JFileChooserfileChooser(package private) VariableTableModelmModelVariableTableModel to load(package private) javax.swing.JFramemParent
-
Constructor Summary
Constructors Constructor Description CsvExportVariablesAction(java.lang.String actionName, VariableTableModel pModel, javax.swing.JFrame pParent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)protected booleanisWritable(VariableValue var)Decide whether a given Variable should be written out.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
fileChooser
javax.swing.JFileChooser fileChooser
-
mParent
javax.swing.JFrame mParent
-
mModel
VariableTableModel mModel
VariableTableModel to load
-
-
Constructor Detail
-
CsvExportVariablesAction
public CsvExportVariablesAction(java.lang.String actionName, VariableTableModel pModel, javax.swing.JFrame pParent)
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
-
isWritable
protected boolean isWritable(VariableValue var)
Decide whether a given Variable should be written out.- Parameters:
var- Variable to be checked- Returns:
- true if Variable should be included in output file.
-
-