|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.tree.DefaultMutableTreeNode
lhmc.files.SortedTreeNode
public class SortedTreeNode
SortedTreeNode: a mutable tree node with alphabetically sorted children
Field Summary |
---|
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
SortedTreeNode(int fileType)
Constructs a SortedTreeNode, specifying the filesystem location. |
|
SortedTreeNode(java.lang.Object userObject)
Constructs a SortedTreeNode with a root node as an argument. |
Method Summary | |
---|---|
void |
add(SortedTreeNode child)
Adds a TreeNode to the child list. |
int |
getIndex()
Gets the index of the sortedTreeNode. |
void |
setIndex(int index)
Gets the index of the sortedTreeNode. |
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 |
Constructor Detail |
---|
public SortedTreeNode(int fileType)
fileType
- remote or local file typepublic SortedTreeNode(java.lang.Object userObject)
userObject
- the object root node.Method Detail |
---|
public int getIndex()
public void setIndex(int index)
index
- the index of the treeNode.public void add(SortedTreeNode child)
child
- the SortedTreeNode to add.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |