jsystem.treeui.publisher
Class ElementNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byjsystem.treeui.publisher.ElementNode
All Implemented Interfaces:
Cloneable, MutableTreeNode, Serializable, TreeNode
Direct Known Subclasses:
TestStepNode

public class ElementNode
extends DefaultMutableTreeNode

See Also:
Serialized Form

Field Summary
protected  String name
           
static int TEST_FAIL
           
static int TEST_IGNORE
           
static int TEST_PASS
           
static int TYPE_PACKAGE
           
static int TYPE_ROOT
           
static int TYPE_STEP
           
static int TYPE_TEST
           
protected  int viewMode
           
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
ElementNode(Element element, MutableTreeNode parent, int viewMode)
           
 
Method Summary
 Element getElement()
           
 String getName()
           
 int getStatus()
           
 int getType()
           
 int getViewMode()
           
 void initChildrens()
           
protected  void initStatus()
           
 void recalcStatus()
           
 void removeElement(ElementNode n)
           
 void setElement(Element element)
           
 void setName(String name)
           
 void setStatus(int status)
           
 void setType(int type)
           
 void setViewMode(int viewMode)
           
 String toString()
           
 
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE_ROOT

public static final int TYPE_ROOT
See Also:
Constant Field Values

TYPE_PACKAGE

public static final int TYPE_PACKAGE
See Also:
Constant Field Values

TYPE_TEST

public static final int TYPE_TEST
See Also:
Constant Field Values

TYPE_STEP

public static final int TYPE_STEP
See Also:
Constant Field Values

TEST_PASS

public static final int TEST_PASS
See Also:
Constant Field Values

TEST_FAIL

public static final int TEST_FAIL
See Also:
Constant Field Values

TEST_IGNORE

public static final int TEST_IGNORE
See Also:
Constant Field Values

viewMode

protected int viewMode

name

protected String name
Constructor Detail

ElementNode

public ElementNode(Element element,
                   MutableTreeNode parent,
                   int viewMode)
Method Detail

initStatus

protected void initStatus()

removeElement

public void removeElement(ElementNode n)

initChildrens

public void initChildrens()

recalcStatus

public void recalcStatus()

toString

public String toString()

getViewMode

public int getViewMode()
Returns:
Returns the viewMode.

setViewMode

public void setViewMode(int viewMode)
Parameters:
viewMode - The viewMode to set.

getStatus

public int getStatus()
Returns:
Returns the status.

setStatus

public void setStatus(int status)
Parameters:
status - The status to set.

getType

public int getType()
Returns:
Returns the type.

setType

public void setType(int type)
Parameters:
type - The type to set.

getElement

public Element getElement()
Returns:
Returns the element.

setElement

public void setElement(Element element)
Parameters:
element - The element to set.

getName

public String getName()
Returns:
Returns the name.

setName

public void setName(String name)
Parameters:
name - The name to set.