jsystem.treeui
Class Node

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byjsystem.treeui.Node
All Implemented Interfaces:
Cloneable, MutableTreeNode, Serializable, TreeNode
Direct Known Subclasses:
DirectoryNode, JarEntryNode, JarNode, RootNode, TestCaseNode, TestNode

public abstract class Node
extends DefaultMutableTreeNode

See Also:
Serialized Form

Field Summary
static int DEFAULT
           
static int ERROR
           
static int FAIL
           
protected  boolean isSelected
           
protected static Logger log
           
static int RUNNING
           
protected static NodeSelectionChange selectionChange
           
static int SUCCESS
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
Node(Node parent, Object userObject)
           
 
Method Summary
 void cleanLeafsWithoutTests()
           
 Enumeration getAllChildren()
           
protected  Object getRootUserObject()
           
 int getStatus()
           
protected  int getTestsCount()
           
protected  void initChildren(Object[] child)
           
 boolean isClassPath()
           
 boolean isSelected()
           
protected  void loadDefaultSelection(TestSelector selector)
           
 void returnSelectedToDefault()
           
 void setClassPath(boolean isClassPath)
           
 void setSelected(boolean status)
           
 void setStatus(int status)
           
 void toggleSelection()
           
 
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

selectionChange

protected static NodeSelectionChange selectionChange

log

protected static Logger log

DEFAULT

public static final int DEFAULT
See Also:
Constant Field Values

SUCCESS

public static final int SUCCESS
See Also:
Constant Field Values

FAIL

public static final int FAIL
See Also:
Constant Field Values

RUNNING

public static final int RUNNING
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

isSelected

protected boolean isSelected
Constructor Detail

Node

public Node(Node parent,
            Object userObject)
Method Detail

returnSelectedToDefault

public void returnSelectedToDefault()

initChildren

protected void initChildren(Object[] child)
                     throws Exception
Throws:
Exception

getRootUserObject

protected Object getRootUserObject()

getTestsCount

protected int getTestsCount()

cleanLeafsWithoutTests

public void cleanLeafsWithoutTests()

getAllChildren

public Enumeration getAllChildren()

isSelected

public boolean isSelected()

setSelected

public void setSelected(boolean status)

toggleSelection

public void toggleSelection()

getStatus

public int getStatus()

setStatus

public void setStatus(int status)

loadDefaultSelection

protected void loadDefaultSelection(TestSelector selector)

isClassPath

public boolean isClassPath()
Returns:
Returns the isClassPath.

setClassPath

public void setClassPath(boolean isClassPath)
Parameters:
isClassPath - The isClassPath to set.