|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjmri.jmrit.XmlFile
jmri.jmrit.catalog.configurexml.DefaultCatalogTreeManagerXml
public class DefaultCatalogTreeManagerXml
Provides the abstract base and store functionality for configuring the CatalogTreeManager.
Typically, a subclass will just implement the load(Element catalogTree) class, relying on implementation here to load the individual CatalogTree objects.
| Field Summary |
|---|
| Fields inherited from class jmri.jmrit.XmlFile |
|---|
dtdLocation, xsltLocation |
| Constructor Summary | |
|---|---|
DefaultCatalogTreeManagerXml()
|
|
| Method Summary | |
|---|---|
boolean |
load(Element catalogTrees)
Create a CatalogTreeManager object of the correct class, then register and fill it. |
void |
load(Element element,
Object o)
|
void |
loadCatalogTrees(Element catalogTrees)
Utility method to load the individual CatalogTree objects. |
void |
loadNode(Element element,
CatalogTreeNode parent,
DefaultTreeModel model)
Recursively load a CatalogTree |
void |
readCatalogTrees()
|
void |
store(Element cat,
List<String> trees)
Default implementation for storing the contents of a CatalogTreeManager |
Element |
store(Object o)
This is invoked as part of the "store all" mechanism, which is not used for these objects. |
void |
storeNode(Element parent,
CatalogTreeNode node)
Recursively store a CatalogTree |
void |
writeCatalogTrees()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCatalogTreeManagerXml()
| Method Detail |
|---|
public void writeCatalogTrees()
throws IOException
IOException
public void store(Element cat,
List<String> trees)
cat - Element to load with contentstrees - List of contents
public void storeNode(Element parent,
CatalogTreeNode node)
public Element store(Object o)
public void readCatalogTrees()
public void load(Element element,
Object o)
throws Exception
Exceptionpublic boolean load(Element catalogTrees)
catalogTrees - Top level Element to unpack.
public void loadCatalogTrees(Element catalogTrees)
public void loadNode(Element element,
CatalogTreeNode parent,
DefaultTreeModel model)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||