com.pushtotest.testmaker.XML2Swing
Class XML2Swing

java.lang.Object
  extended by com.pushtotest.testmaker.XML2Swing.XML2Swing

public class XML2Swing
extends java.lang.Object

XML2Swing Parses an XML document and creates a Swing graphical interface to display and edit the document contents.


Constructor Summary
XML2Swing(java.lang.String thefilename, javax.swing.JPanel thepanel, javax.swing.JFrame theframe)
          The constructor does everything.
 
Method Summary
 void changeXML(org.jdom.Element element, int operation, java.lang.String thestring)
          Called by the action handler for the Add Element, Add Attribute, Remove buttons *
 void saveAsXML(java.io.File thefile)
          Save the XML data to a new file
 void saveXML()
          Saves the XML data back to the XML file
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XML2Swing

public XML2Swing(java.lang.String thefilename,
                 javax.swing.JPanel thepanel,
                 javax.swing.JFrame theframe)
The constructor does everything.

Method Detail

changeXML

public void changeXML(org.jdom.Element element,
                      int operation,
                      java.lang.String thestring)
Called by the action handler for the Add Element, Add Attribute, Remove buttons *


saveAsXML

public void saveAsXML(java.io.File thefile)
               throws java.io.IOException
Save the XML data to a new file

Throws:
java.io.IOException

saveXML

public void saveXML()
             throws java.io.IOException
Saves the XML data back to the XML file

Throws:
java.io.IOException