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, toString
public 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.TreeNode
isLeaf
in class javax.swing.tree.DefaultMutableTreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface javax.swing.tree.TreeNode
getAllowsChildren
in class javax.swing.tree.DefaultMutableTreeNode
public void insert(javax.swing.tree.MutableTreeNode newChild, int childIndex)
insert
in interface javax.swing.tree.MutableTreeNode
insert
in class javax.swing.tree.DefaultMutableTreeNode
public void remove(int childIndex)
remove
in interface javax.swing.tree.MutableTreeNode
remove
in class javax.swing.tree.DefaultMutableTreeNode
public 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.TreeNode
getIndex
in class javax.swing.tree.DefaultMutableTreeNode
aChild
- 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