Class MemoryIconXml

All Implemented Interfaces:
XmlAdapter
Direct Known Subclasses:
MemoryIconXml

public class MemoryIconXml extends PositionableLabelXml
Handle configuration for display.MemoryIcon objects.
  • Constructor Details

  • Method Details

    • store

      public org.jdom2.Element store(Object o)
      Default implementation for storing the contents of a MemoryIcon
      Specified by:
      store in interface XmlAdapter
      Overrides:
      store in class PositionableLabelXml
      Parameters:
      o - Object to store, of type MemoryIcon
      Returns:
      Element containing the complete info
    • load

      public void load(org.jdom2.Element element, Object o) throws JmriConfigureXmlException
      Load, starting with the memoryicon element, then all the value-icon pairs
      Specified by:
      load in interface XmlAdapter
      Overrides:
      load in class PositionableLabelXml
      Parameters:
      element - Top level Element to unpack.
      o - an Editor as an Object
      Throws:
      JmriConfigureXmlException - when a error prevents creating the objects as as required by the input XML