Class TrainIconXml

    • Method Detail

      • store

        public org.jdom2.Element store​(java.lang.Object o)
        Default implementation for storing the contents of a TrainIcon. TrainIcons are restored by the operations code.
        Specified by:
        store in interface XmlAdapter
        Overrides:
        store in class LocoIconXml
        Parameters:
        o - Object to store, of type TrainIcon
        Returns:
        Element containing the complete info
      • load

        public void load​(org.jdom2.Element element,
                         java.lang.Object o)
        TrainIcons should be loaded by the operations function, not here
        Specified by:
        load in interface XmlAdapter
        Overrides:
        load in class LocoIconXml
        Parameters:
        element - Top level Element to unpack.
        o - an Editor as an Object