public class JobTree
extends javax.swing.tree.DefaultMutableTreeNode
| Modifier and Type | Class and Description |
|---|---|
static class |
JobTree.JobTreeNode |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAllowsChildren() |
static javax.swing.tree.DefaultMutableTreeNode |
getExplorerTree()
Build Job explorer tree
|
int |
getIndex(javax.swing.tree.TreeNode aChild)
Returns the index of the specified child in this node's child array.
|
static javax.swing.JPopupMenu |
getPopupStatus(JobTree.JobTreeNode jobNode)
popup menu when user right-clicks on job in explorer tree
|
void |
insert(javax.swing.tree.MutableTreeNode newChild,
int childIndex) |
boolean |
isLeaf() |
void |
remove(int childIndex) |
static void |
update(java.util.List<Job.Inform> jobs)
Update Job Tree to given list of Jobs.
|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toStringpublic static javax.swing.tree.DefaultMutableTreeNode getExplorerTree()
public static void update(java.util.List<Job.Inform> jobs)
jobs - given list of jobs.public static javax.swing.JPopupMenu getPopupStatus(JobTree.JobTreeNode jobNode)
public boolean isLeaf()
isLeaf in interface javax.swing.tree.TreeNodeisLeaf in class javax.swing.tree.DefaultMutableTreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface javax.swing.tree.TreeNodegetAllowsChildren in class javax.swing.tree.DefaultMutableTreeNodepublic void insert(javax.swing.tree.MutableTreeNode newChild,
int childIndex)
insert in interface javax.swing.tree.MutableTreeNodeinsert in class javax.swing.tree.DefaultMutableTreeNodepublic void remove(int childIndex)
remove in interface javax.swing.tree.MutableTreeNoderemove in class javax.swing.tree.DefaultMutableTreeNodepublic int getIndex(javax.swing.tree.TreeNode aChild)
-1. This method performs a linear search and is O(n)
where n is the number of children.getIndex in interface javax.swing.tree.TreeNodegetIndex in class javax.swing.tree.DefaultMutableTreeNodeaChild - the TreeNode to search for among this node's children-1 if the specified node is a not
a child of this nodejava.lang.IllegalArgumentException - if aChild
is null