instrument/JTree API Documentation

org.pvv.bcd.instrument.JTree
Interface XmlNodeFactory

All Known Implementing Classes:
DefaultNodeFactory

public interface XmlNodeFactory

Implement this interface if you want your user objects to be able to be built from XML.


Method Summary
 javax.swing.tree.TreeNode createNode(java.lang.String title, java.lang.String contents)
          Creates a new node based on information read from an XML file.
 

Method Detail

createNode

public javax.swing.tree.TreeNode createNode(java.lang.String title,
                                            java.lang.String contents)
Creates a new node based on information read from an XML file. The title is plain text. The contents is also plain text, but interpretation is up to the implementing class. Therefore, it could be parsed as base64, or XML, or whatever.
Parameters:
title - Title to use in tree. Plain text only.
contents - Contents of the tree node, encoded as text.

instrument/JTree API Documentation