|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
com.fullspan.pwkeep.model.PwkTreeNode
public class PwkTreeNode
Represents a node in the PWKeep hierarchy of categories and items.
| Field Summary | |
|---|---|
static java.util.Comparator |
COMPARATOR
Comparator for case-insensitive alphabetical comparison/sorting based on the name of the PwkBean (category or item) stored in each node. |
| Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
| Constructor Summary | |
|---|---|
PwkTreeNode(PwkBean pwkBean,
boolean allowsChildren)
|
|
| Method Summary | |
|---|---|
PwkBean |
getBean()
Returns the PwkBean stored in this tree node. |
void |
sortChildren()
Sorts the immediate children of the current node without descending the tree and sorting lower levels. |
void |
sortChildren(boolean recurse)
Sorts the children of the current node, optionally descending the tree and sorting lower levels. |
| Methods inherited from class javax.swing.tree.DefaultMutableTreeNode |
|---|
add, breadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObject, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObject, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.util.Comparator COMPARATOR
PwkBean.getName()| Constructor Detail |
|---|
public PwkTreeNode(PwkBean pwkBean,
boolean allowsChildren)
| Method Detail |
|---|
public PwkBean getBean()
PwkBean stored in this tree node.
PwkBean stored in this nodepublic void sortChildren()
Equivalent to calling sortChildren(false)
public void sortChildren(boolean recurse)
Uses COMPARATOR to perform a case-insensitive sort
of the child nodes.
recurse - true to sort all levels of the tree below this node,
false to sort only the immediate children of this nodeCOMPARATOR
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||