webtester.packages.apps
Class configEditor

java.lang.Object
  |
  +--webtester.packages.apps.configEditor

public class configEditor
extends java.lang.Object

Provides a GUI interface to edit the configuration file.

Author:
Aaron DeLong

Field Summary
private static int iDividerLocation
          The divider location for the split pane.
private static int iHeight
          The default height of the application.
private static int iTextField
          Specifies the initial size for a text field.
private static int iWidth
          The default width of the application.
private static java.lang.String sConfigFile
          The configuration file being edited.
private static java.io.File selectedFile
          The last selected file.
private static javax.swing.tree.DefaultMutableTreeNode top
          The root node of the tree.
private static javax.swing.JTree tree
          The component which displays the tree to the user.
private static javax.swing.tree.DefaultTreeModel treeModel
          DefaultTreeModel instance used to dynamically modify the JTree.
 
Constructor Summary
configEditor()
           
 
Method Summary
(package private) static void createNodes(javax.swing.tree.DefaultMutableTreeNode top1, configHandler config)
          Uses the configuration objects to create a tree that appears in the left frame.
private static boolean isTestCase(javax.swing.tree.TreePath currentSelection, configHandler config)
          Determine if the selected node represents a test case.
static void main(java.lang.String[] argv)
          The main method, which is the entry point into the application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

selectedFile

private static java.io.File selectedFile
The last selected file.


treeModel

private static javax.swing.tree.DefaultTreeModel treeModel
DefaultTreeModel instance used to dynamically modify the JTree.


sConfigFile

private static java.lang.String sConfigFile
The configuration file being edited.


top

private static javax.swing.tree.DefaultMutableTreeNode top
The root node of the tree.


tree

private static javax.swing.JTree tree
The component which displays the tree to the user.


iWidth

private static final int iWidth
The default width of the application.

See Also:
Constant Field Values

iHeight

private static final int iHeight
The default height of the application.

See Also:
Constant Field Values

iTextField

private static final int iTextField
Specifies the initial size for a text field.

See Also:
Constant Field Values

iDividerLocation

private static final int iDividerLocation
The divider location for the split pane.

See Also:
Constant Field Values
Constructor Detail

configEditor

public configEditor()
Method Detail

createNodes

static void createNodes(javax.swing.tree.DefaultMutableTreeNode top1,
                        configHandler config)
Uses the configuration objects to create a tree that appears in the left frame.

Parameters:
top1 - the top level node of the tree
config - the configuration values read from the specified configuration file

isTestCase

private static boolean isTestCase(javax.swing.tree.TreePath currentSelection,
                                  configHandler config)
Determine if the selected node represents a test case.

Parameters:
currentSelection - the currently selected node
config - the configuration objects associated with the config file
Returns:
FALSE if the user has not selected a valid test case

main

public static void main(java.lang.String[] argv)
The main method, which is the entry point into the application.

Parameters:
argv - contains command-line arguments