Package jmri.jmrit.symbolicprog
Class TcsImportAction
- java.lang.Object
-
- javax.swing.AbstractAction
-
- jmri.jmrit.symbolicprog.GenericImportAction
-
- jmri.jmrit.symbolicprog.TcsImportAction
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.io.Serializable
,java.lang.Cloneable
,java.util.EventListener
,javax.swing.Action
public class TcsImportAction extends GenericImportAction
Action to import the RosterEntry values from a TCS data file.TODO: Note: This ends with an update of the GUI from the RosterEntry. This means that they (RE and GUI) now agree, which has the side effect of erasing the dirty state. Better would be to do the import directly into the GUI. See TcsImporter.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) PaneProgFrame
frame
(package private) RosterEntry
rosterEntry
(package private) VariableTableModel
vModel
-
Fields inherited from class jmri.jmrit.symbolicprog.GenericImportAction
fileChooser, mActionName, mFileExt1, mFileExt2, mFileFilterName, mModel, mParent, mStatus
-
-
Constructor Summary
Constructors Constructor Description TcsImportAction(java.lang.String actionName, CvTableModel pModel, VariableTableModel vModel, PaneProgFrame pParent, javax.swing.JLabel pStatus, RosterEntry re)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
launchImporter(java.io.File file, CvTableModel tableModel)
-
Methods inherited from class jmri.jmrit.symbolicprog.GenericImportAction
actionPerformed
-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
rosterEntry
RosterEntry rosterEntry
-
frame
PaneProgFrame frame
-
vModel
VariableTableModel vModel
-
-
Constructor Detail
-
TcsImportAction
public TcsImportAction(java.lang.String actionName, CvTableModel pModel, VariableTableModel vModel, PaneProgFrame pParent, javax.swing.JLabel pStatus, RosterEntry re)
-
-
Method Detail
-
launchImporter
boolean launchImporter(java.io.File file, CvTableModel tableModel)
- Overrides:
launchImporter
in classGenericImportAction
-
-