Class RollingStockAttribute

    • Method Detail

      • getNames

        public java.lang.String[] getNames()
      • setNames

        public void setNames​(java.lang.String[] names)
      • setValues

        public void setValues​(java.lang.String[] lengths)
        Performs number sort before adding to list
        lengths - The set of strings to be ordered.
      • sort

        public void sort()
      • addName

        public void addName​(java.lang.String name)
      • deleteName

        public void deleteName​(java.lang.String name)
      • containsName

        public boolean containsName​(java.lang.String name)
      • getComboBox

        public javax.swing.JComboBox<java.lang.String> getComboBox()
      • updateComboBox

        public void updateComboBox​(javax.swing.JComboBox<java.lang.String> box)
      • store

        public void store​(Element root,
                          java.lang.String eNames,
                          java.lang.String eName)
        Create an XML element to represent this Entry. This member has to remain synchronized with the detailed DTD in operations-cars.dtd and operations-engines.dtd.
        root - Common Element for storage.
        eNames - New format Element group name
        eName - New format Element name
      • load

        public void load​(Element root,
                         java.lang.String eNames,
                         java.lang.String eName,
                         java.lang.String oldName)