|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
com.sun.electric.tool.user.ui.JobTree
public class JobTree
Class defines Job information in the explorer tree.
Nested Class Summary | |
---|---|
static class |
JobTree.JobTreeNode
|
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Method Summary | |
---|---|
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> jobs)
Update Job Tree to given list of Jobs. |
Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static javax.swing.tree.DefaultMutableTreeNode getExplorerTree()
public static void update(java.util.List<Job> 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 node
java.lang.IllegalArgumentException
- if aChild
is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |