|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.configurexml.AbstractXmlAdapter
jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML
jmri.jmrit.display.layoutEditor.configurexml.LayoutBlockManagerXml
public class LayoutBlockManagerXml
Provides the functionality for configuring a LayoutBlockManager
| Constructor Summary | |
|---|---|
LayoutBlockManagerXml()
|
|
| Method Summary | |
|---|---|
boolean |
load(Element layoutblocks)
Create a LayoutBlockManager object of the correct class, then register and fill it. |
void |
load(Element element,
Object o)
Create a set of configured objects from their XML description, using an auxiliary object. |
void |
loadLayoutBlocks(Element layoutblocks)
Utility method to load the individual LayoutBlock objects. |
protected void |
replaceLayoutBlockManager()
Replace the current LayoutBlockManager, if there is one, with one newly created during a load operation. |
void |
setStoreElementClass(Element layoutblocks)
Subclass provides implementation to create the correct top element, including the type information. |
Element |
store(Object o)
Implementation for storing the contents of a LayoutBlockManager |
| Methods inherited from class jmri.managers.configurexml.AbstractNamedBeanManagerConfigXML |
|---|
getSystemName, getUserName, getUserName, loadCommon, storeCommon |
| Methods inherited from class jmri.configurexml.AbstractXmlAdapter |
|---|
creationErrorEncountered, getConfigXmlManager, loadDeferred, loadOrder, setConfigXmlManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LayoutBlockManagerXml()
| Method Detail |
|---|
public Element store(Object o)
o - Object to store, of type LayoutBlockManager
public void setStoreElementClass(Element layoutblocks)
layoutblocks - The top-level element being created
public void load(Element element,
Object o)
XmlAdapterFor example, the auxilary object o might be a manager or GUI of some type that needs to be informed as each object is created.
element - Top-level XML element containing the descriptiono - Implementation-specific Object needed for the conversionpublic boolean load(Element layoutblocks)
layoutblocks - Top level Element to unpack.
public void loadLayoutBlocks(Element layoutblocks)
layoutblocks - Element containing the layoutblock elements to load.protected void replaceLayoutBlockManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||