Class JmrixConfigPaneXml

  • All Implemented Interfaces:
    XmlAdapter

    public class JmrixConfigPaneXml
    extends AbstractXmlAdapter
    Handle XML persistance of layout connections.

    This class is named as being the persistant form of the JmrixConfigPane class, but there's no object of that form created or used. Instead, this interacts forwards to a similar class in one of the protocol-specific packages, e.g. jmrix.easydcc.serialdriver.configurexml

    • Method Detail

      • store

        public Element store​(java.lang.Object o)
        Forward to the configurexml class for the specific object type.
        Parameters:
        o - The object to be recorded. Specific XmlAdapter implementations will require this to be of a specific type; that binding is done in ConfigXmlManager.
        Returns:
        The XML representation Element
      • store

        public Element store​(java.lang.Object o,
                             boolean shared)
        Description copied from class: AbstractXmlAdapter
        Store the object in XML
        Specified by:
        store in interface XmlAdapter
        Overrides:
        store in class AbstractXmlAdapter
        Parameters:
        o - The object to be recorded. Specific XmlAdapter implementations will require this to be of a specific type; that binding is done in ConfigXmlManager.
        shared - true if the returned element should be the common XML and false if the returned element should be per-node.
        Returns:
        The XML representation Element
      • load

        public boolean load​(Element shared,
                            Element perNode)
        Description copied from class: AbstractXmlAdapter
        Create a set of configured objects from their XML description.
        Specified by:
        load in interface XmlAdapter
        Overrides:
        load in class AbstractXmlAdapter
        Parameters:
        shared - Top-level XML element containing the common, multi-node elements of the description
        perNode - Top-level XML element containing the private, single-node elements of the description
        Returns:
        true if successful
      • updateLookAndFeel

        public void updateLookAndFeel​(java.lang.String name,
                                      java.lang.String className)
        Change the look-and-feel to the specified class. Alert the user if there were problems loading the PLAF.
        Parameters:
        name - (String) the presentable name for the class
        className - (String) the className to be fed to the UIManager
      • load

        public void load​(Element element,
                         java.lang.Object o)
        Update static data from XML file
        Specified by:
        load in interface XmlAdapter
        Overrides:
        load in class AbstractXmlAdapter
        Parameters:
        element - Top level Element to unpack.
        o - ignored