Class TcsExportAction

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

    public class TcsExportAction
    extends javax.swing.AbstractAction
    Action to export the RosterEntry values to a TCS-format data file.

    TODO: Note: This first does an update of the RosterEntry from the GUI, then writes out from the Roster entry. 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 export directly from the GUI.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) javax.swing.JFileChooser fileChooser  
      (package private) PaneProgFrame frame  
      (package private) CvTableModel mModel
      CvTableModel to load
      (package private) RosterEntry rosterEntry  
      (package private) VariableTableModel vModel
      VariableTableModel to load
      • Fields inherited from class javax.swing.AbstractAction

        changeSupport, enabled
      • Fields 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
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)  
      static void formatTcsVirtualNodeDefinition​(java.io.PrintStream str, RosterEntry rosterEntry, CvTableModel model, VariableTableModel vModel)
      Format the contents of the locomotive definition.
      (package private) static int intFromFunctionString​(java.lang.String fn)  
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept