apps.configurexml
Class SystemConsoleConfigPanelXml

java.lang.Object
  extended by jmri.configurexml.AbstractXmlAdapter
      extended by apps.configurexml.SystemConsoleConfigPanelXml
All Implemented Interfaces:
XmlAdapter

public class SystemConsoleConfigPanelXml
extends AbstractXmlAdapter

Handle XML persistance of SystemConsoleConfigPanel objects.


This file is part of JMRI.

JMRI is free software; you can redistribute it and/or modify it under the terms of version 2 of the GNU General Public License as published by the Free Software Foundation. See the "COPYING" file for a copy of this license.

JMRI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Author:
Matthew Harris copyright (c) 2010
See Also:
SystemConsoleConfigPanel

Constructor Summary
SystemConsoleConfigPanelXml()
           
 
Method Summary
 boolean load(Element e)
          Update static data from XML file
 void load(Element element, Object o)
          Update static data from XML file
 boolean loadDeferred()
          Object should be loaded after basic GUI constructed
 Element store(Object o)
          Arrange for console settings to be stored
 
Methods inherited from class jmri.configurexml.AbstractXmlAdapter
creationErrorEncountered, getConfigXmlManager, loadOrder, setConfigXmlManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemConsoleConfigPanelXml

public SystemConsoleConfigPanelXml()
Method Detail

store

public Element store(Object o)
Arrange for console settings to be stored

Parameters:
o - Object to store, of type SystemConsole
Returns:
Element containing the complete info

loadDeferred

public boolean loadDeferred()
Object should be loaded after basic GUI constructed

Specified by:
loadDeferred in interface XmlAdapter
Overrides:
loadDeferred in class AbstractXmlAdapter
Returns:
true to defer loadng
See Also:
AbstractXmlAdapter.loadDeferred(), XmlAdapter.loadDeferred()

load

public boolean load(Element e)
Update static data from XML file

Parameters:
e - Top level Element to unpack.
Returns:
true if successful

load

public void load(Element element,
                 Object o)
Update static data from XML file

Parameters:
element - Top level Element to unpack.
o - ignored


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads