public class AlertNode extends DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor and Description |
---|
AlertNode(int risk,
String nodeName) |
AlertNode(int risk,
String nodeName,
Comparator<AlertNode> childComparator) |
Modifier and Type | Method and Description |
---|---|
void |
add(MutableTreeNode newChild) |
int |
findIndex(AlertNode aChild) |
AlertNode |
getChildAt(int index) |
int |
getIndex(TreeNode aChild) |
String |
getNodeName() |
AlertNode |
getParent() |
int |
getRisk() |
Alert |
getUserObject() |
void |
insert(MutableTreeNode newChild,
int childIndex) |
void |
setRisk(int risk) |
void |
setUserObject(Object userObject) |
String |
toString() |
breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObjectPath, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent
public AlertNode(int risk, String nodeName)
public AlertNode(int risk, String nodeName, Comparator<AlertNode> childComparator)
public void setUserObject(Object userObject)
setUserObject
in interface MutableTreeNode
setUserObject
in class DefaultMutableTreeNode
public Alert getUserObject()
getUserObject
in class DefaultMutableTreeNode
public AlertNode getChildAt(int index)
getChildAt
in interface TreeNode
getChildAt
in class DefaultMutableTreeNode
public AlertNode getParent()
getParent
in interface TreeNode
getParent
in class DefaultMutableTreeNode
public void add(MutableTreeNode newChild)
add
in class DefaultMutableTreeNode
public void insert(MutableTreeNode newChild, int childIndex)
insert
in interface MutableTreeNode
insert
in class DefaultMutableTreeNode
public int getIndex(TreeNode aChild)
getIndex
in interface TreeNode
getIndex
in class DefaultMutableTreeNode
public int findIndex(AlertNode aChild)
public String toString()
toString
in class DefaultMutableTreeNode
public String getNodeName()
public void setRisk(int risk)
public int getRisk()