public class TreeNode
extends java.lang.Object
WorkitemTree. Holds the nested workitem and
the calculated color of the item| Constructor | Description |
|---|---|
TreeNode(java.lang.String rootName) |
Instantiates a new tree node.
|
TreeNode(IWorkitem workitem,
TreeNode parentNode) |
Instantiates a new tree node.
|
TreeNode(IWorkitem workitem,
TreeNode parentNode,
java.awt.Color color) |
Instantiates a new tree node.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getChildCount() |
Gets the child count.
|
java.util.List<TreeNode> |
getChildren() |
Gets the children.
|
java.awt.Color |
getColor() |
Gets the color.
|
java.lang.String |
getHtmlColor() |
Gets the html color.
|
TreeNode |
getParent() |
Gets the parent.
|
IWorkitem |
getWorkitem() |
Gets the workitem.
|
void |
setColor(java.awt.Color color) |
Sets the color.
|
public TreeNode(java.lang.String rootName)
rootName - the root namepublic TreeNode(IWorkitem workitem, TreeNode parentNode, java.awt.Color color)
workitem - the workitemparentNode - the parent nodecolor - the colorpublic java.lang.String getHtmlColor()
public java.awt.Color getColor()
public void setColor(java.awt.Color color)
color - the new colorpublic IWorkitem getWorkitem()
public TreeNode getParent()
public java.util.List<TreeNode> getChildren()
public int getChildCount()