Package jmri.jmrit.symbolicprog
Class TcsImportAction
java.lang.Object
javax.swing.AbstractAction
jmri.jmrit.symbolicprog.GenericImportAction
jmri.jmrit.symbolicprog.TcsImportAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action
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:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) PaneProgFrame(package private) RosterEntry(package private) VariableTableModelFields inherited from class jmri.jmrit.symbolicprog.GenericImportAction
fileChooser, mActionName, mFileExt1, mFileExt2, mFileFilterName, mModel, mParent, mStatusFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
ConstructorsConstructorDescriptionTcsImportAction(String actionName, CvTableModel pModel, VariableTableModel vModel, PaneProgFrame pParent, JLabel pStatus, RosterEntry re) -
Method Summary
Modifier and TypeMethodDescription(package private) booleanlaunchImporter(File file, CvTableModel tableModel) Methods inherited from class jmri.jmrit.symbolicprog.GenericImportAction
actionPerformedMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
rosterEntry
-
frame
-
vModel
-
-
Constructor Details
-
TcsImportAction
public TcsImportAction(String actionName, CvTableModel pModel, VariableTableModel vModel, PaneProgFrame pParent, JLabel pStatus, RosterEntry re)
-
-
Method Details
-
launchImporter
- Overrides:
launchImporterin classGenericImportAction
-