|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
qat.gui.TestTree
Nested Class Summary |
Nested classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary |
Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
TestTree()
This constructor creates the tree |
Method Summary | |
void |
addChangeListener(javax.swing.event.ChangeListener c)
This add a listener interested in recieiveing events whenever a node of this tree changes. |
void |
addTreeSelectionListener(javax.swing.event.TreeSelectionListener l)
|
void |
collapseLevel()
|
void |
expandAll()
|
void |
expandLevel()
|
void |
fireChangeEvent(TestTreeNode node)
|
java.util.ArrayList |
getAllNodes()
This method returns all the TestTreeNode in the tree. |
java.util.ArrayList |
getAllNodes(TestTreeNode node)
This method returns all the TestTreeNode starting at the node parameter. |
java.util.ArrayList |
getAllTestNodes()
This method returns all the TestTreeNodes in the test tree. |
java.util.ArrayList |
getAllTestNodes(TestTreeNode node)
This method returns all the TestTreeNodes starting at the node parameter. |
java.util.ArrayList |
getAllTests()
This method returns all the tests in the test tree. |
java.util.ArrayList |
getAllTests(TestTreeNode node)
This method returns all the tests starting at the node parameter. |
java.util.ArrayList |
getAllTestsByParent()
This method returns all the tests in the test tree on a per node basis. |
java.util.Properties |
getDefaultProperties()
|
java.lang.String[] |
getKeyWordList()
|
TestTreeNode |
getNode(TestSpecification test)
This method returns the TestTreeNode matching the test parameter. |
TestTreeNode |
getNode(javax.swing.tree.TreePath tree)
This method returns the TestTreeNode matching the TreePath parameter. |
QAT |
getParentQAT()
|
java.lang.String |
getProjectRoot()
|
TestTreeNode |
getRoot()
|
java.util.ArrayList |
getSelectedTestNodes()
This method returns an array of all selected TestTreeNodes. |
java.util.ArrayList |
getSelectedTests()
This method returns an array of all selected TestSpecifications. |
TestSpecification |
getTestSpecification(java.lang.String testSpecPath)
This method will return the test which has a matching testSpecPath, which should be unique for each test. |
javax.swing.JTree |
getTree()
Returns the tree object used by TestTree. |
javax.swing.tree.TreePath |
getTreePath(TestTreeNode node)
|
void |
loadNewTestDir(java.lang.String dirPath,
StatusWindow status)
This method clears all the tests currently in the tree, and load all tests & subdirectorys contained within the specified path. |
void |
loadNode(java.io.ObjectInputStream in,
TestTreeNode parent)
|
void |
loadTests(java.io.ObjectInputStream in)
This method loads the test tree from file. |
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
nodeChanged(TestTreeNode node)
|
TestSpecification |
parseTest(TestSpecification test,
ParserInterface parser)
|
void |
parseTestNode(TestTreeNode node,
ParserInterface parser)
|
void |
parseTestsFrom(TestTreeNode thisRoot,
StatusWindow status)
This method is called to re-check if any new tests exist in the directory thisRoot, or if any have been deleted. |
void |
pauseListeners()
When we select tests by keyword selection, it is neccesary to remove all registered selection listeners to prevent each trace file being loaded as the tests are selected. |
void |
removeAllNodes()
|
void |
removeChangeListener(javax.swing.event.ChangeListener c)
|
void |
resetSelectedTestStatus()
This method resets the status of all selected tests to NOTRUN. |
void |
resumeListeners()
This method re-adds all required selection listeners to this tree. |
void |
saveNode(java.io.ObjectOutputStream out,
TestTreeNode node)
|
void |
saveTests(java.io.ObjectOutputStream out)
This method writes out the test tree to file. |
void |
selectAll()
Selects all the nodes in the tree, and expands the entire tree so that all the selected nodes are visible. |
void |
selectAllWithStatus(int status)
|
void |
selectNode(TestTreeNode node)
Searches for the node in the tree matching test, and sets it to selected. |
void |
selectTest(TestSpecification test)
Searches for the node in the tree matching test, and sets it to selected. |
void |
setDefaultProperties(java.util.Properties p)
|
void |
setParentQAT(QAT q)
This method gives us a handle to the parent QAT to pass on to the NodePopup Menu, so we can use it's runSingleTest method and have access to the GUI from the NodeMenu. |
boolean |
setTest(TestSpecification test)
This method searchs the tree starting at node, until a TestSpecification name matches the parameter test, and then replaces it with test. |
void |
sortTree()
This method sorts all of the nodes in this tree. |
void |
treeCollapsed(javax.swing.event.TreeExpansionEvent event)
|
void |
treeExpanded(javax.swing.event.TreeExpansionEvent event)
|
void |
unSelectAll()
Unselects all the nodes in the tree. |
Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getAccessibleContext, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, paramString, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update, updateUI |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TestTree()
Method Detail |
public void addChangeListener(javax.swing.event.ChangeListener c)
public void removeChangeListener(javax.swing.event.ChangeListener c)
public void fireChangeEvent(TestTreeNode node)
public void addTreeSelectionListener(javax.swing.event.TreeSelectionListener l)
public void pauseListeners()
public void resumeListeners()
public void setDefaultProperties(java.util.Properties p)
public java.util.Properties getDefaultProperties()
public TestTreeNode getRoot()
public java.lang.String getProjectRoot()
public TestSpecification getTestSpecification(java.lang.String testSpecPath)
public java.lang.String[] getKeyWordList()
public void loadNewTestDir(java.lang.String dirPath, StatusWindow status)
public void removeAllNodes()
public void parseTestsFrom(TestTreeNode thisRoot, StatusWindow status)
public TestTreeNode getNode(javax.swing.tree.TreePath tree)
public TestTreeNode getNode(TestSpecification test)
public javax.swing.tree.TreePath getTreePath(TestTreeNode node)
public javax.swing.JTree getTree()
public void selectNode(TestTreeNode node)
public void selectTest(TestSpecification test)
public void selectAll()
public void unSelectAll()
public void selectAllWithStatus(int status)
public void expandAll()
public void expandLevel()
public void collapseLevel()
public java.util.ArrayList getSelectedTests()
public java.util.ArrayList getSelectedTestNodes()
public boolean setTest(TestSpecification test)
test
- - the test we will replace the one in the list with
public java.util.ArrayList getAllTestNodes()
public java.util.ArrayList getAllTests()
public java.util.ArrayList getAllTestsByParent()
public java.util.ArrayList getAllTestNodes(TestTreeNode node)
node
- - the root to start building the test list from.
public java.util.ArrayList getAllTests(TestTreeNode node)
node
- - the root to start building the test list from.
public java.util.ArrayList getAllNodes()
public java.util.ArrayList getAllNodes(TestTreeNode node)
node
- - the root to start building the test list from.
public void parseTestNode(TestTreeNode node, ParserInterface parser)
public TestSpecification parseTest(TestSpecification test, ParserInterface parser)
public void resetSelectedTestStatus()
public void nodeChanged(TestTreeNode node)
public void saveTests(java.io.ObjectOutputStream out) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void saveNode(java.io.ObjectOutputStream out, TestTreeNode node) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void loadTests(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void loadNode(java.io.ObjectInputStream in, TestTreeNode parent) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public void setParentQAT(QAT q)
public QAT getParentQAT()
public void sortTree()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void treeExpanded(javax.swing.event.TreeExpansionEvent event)
treeExpanded
in interface javax.swing.event.TreeExpansionListener
public void treeCollapsed(javax.swing.event.TreeExpansionEvent event)
treeCollapsed
in interface javax.swing.event.TreeExpansionListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |