All Implemented Interfaces:
XmlAdapter

public class PortalIconXml extends PositionableLabelXml
Handle configuration for display.PortalIcon objects.
  • Constructor Details

  • Method Details

    • store

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

      public void load(org.jdom2.Element element, Object o) throws JmriConfigureXmlException
      Create a PositionableLabel, then add to a target JLayeredPane
      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