Class TrainIconXml

All Implemented Interfaces:
XmlAdapter

public class TrainIconXml extends LocoIconXml
Handle configuration for display.TrainIcon objects.
  • Constructor Details

  • Method Details

    • store

      public org.jdom2.Element store(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, 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