Package jmri.jmrix.configurexml
Class JmrixConfigPaneXml
java.lang.Object
jmri.configurexml.AbstractXmlAdapter
jmri.jmrix.configurexml.JmrixConfigPaneXml
- All Implemented Interfaces:
XmlAdapter
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
-
Nested Class Summary
Nested classes/interfaces inherited from class jmri.configurexml.AbstractXmlAdapter
AbstractXmlAdapter.EnumIO<T extends Enum<T>>, AbstractXmlAdapter.EnumIoMapped<T extends Enum<T>>, AbstractXmlAdapter.EnumIoNames<T extends Enum<T>>, AbstractXmlAdapter.EnumIoNamesNumbers<T extends Enum<T>>, AbstractXmlAdapter.EnumIoOrdinals<T extends Enum<T>> -
Field Summary
Fields inherited from class jmri.configurexml.AbstractXmlAdapter
STR_FALSE, STR_NO, STR_TRUE, STR_YES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidUpdate static data from XML filebooleanload(org.jdom2.Element shared, org.jdom2.Element perNode) Create a set of configured objects from their XML description.org.jdom2.ElementForward to the configurexml class for the specific object type.org.jdom2.ElementStore the object in XMLvoidupdateLookAndFeel(String name, String className) Change the look-and-feel to the specified class.Methods inherited from class jmri.configurexml.AbstractXmlAdapter
getAttributeBooleanValue, getAttributeDoubleValue, getAttributeFloatValue, getAttributeIntegerValue, getExceptionHandler, handleException, load, load, loadDeferred, loadOrder, setExceptionHandler
-
Constructor Details
-
JmrixConfigPaneXml
public JmrixConfigPaneXml()
-
-
Method Details
-
store
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
Description copied from class:AbstractXmlAdapterStore the object in XML- Specified by:
storein interfaceXmlAdapter- Overrides:
storein classAbstractXmlAdapter- 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
Description copied from class:AbstractXmlAdapterCreate a set of configured objects from their XML description.- Specified by:
loadin interfaceXmlAdapter- Overrides:
loadin classAbstractXmlAdapter- Parameters:
shared- Top-level XML element containing the common, multi-node elements of the descriptionperNode- Top-level XML element containing the private, single-node elements of the description- Returns:
- true if successful
-
updateLookAndFeel
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 classclassName- (String) the className to be fed to the UIManager
-
load
Update static data from XML file- Specified by:
loadin interfaceXmlAdapter- Overrides:
loadin classAbstractXmlAdapter- Parameters:
element- Top level Element to unpack.o- ignored
-