|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--webtester.packages.apps.configEditor
Provides a GUI interface to edit the configuration file.
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 |
private static java.io.File selectedFile
private static javax.swing.tree.DefaultTreeModel treeModel
private static java.lang.String sConfigFile
private static javax.swing.tree.DefaultMutableTreeNode top
private static javax.swing.JTree tree
private static final int iWidth
private static final int iHeight
private static final int iTextField
private static final int iDividerLocation
Constructor Detail |
public configEditor()
Method Detail |
static void createNodes(javax.swing.tree.DefaultMutableTreeNode top1, configHandler config)
top1
- the top level node of the treeconfig
- the configuration values read from the specified configuration fileprivate static boolean isTestCase(javax.swing.tree.TreePath currentSelection, configHandler config)
currentSelection
- the currently selected nodeconfig
- the configuration objects associated with the config file
public static void main(java.lang.String[] argv)
argv
- contains command-line arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |