lhmc.files
Class SortedTreeNode

java.lang.Object
  extended by javax.swing.tree.DefaultMutableTreeNode
      extended by lhmc.files.SortedTreeNode
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, javax.swing.tree.MutableTreeNode, javax.swing.tree.TreeNode

public class SortedTreeNode
extends javax.swing.tree.DefaultMutableTreeNode

SortedTreeNode: a mutable tree node with alphabetically sorted children

See Also:
Serialized Form

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

SortedTreeNode

public SortedTreeNode(int fileType)
Constructs a SortedTreeNode, specifying the filesystem location.

Parameters:
fileType - remote or local file type

SortedTreeNode

public SortedTreeNode(java.lang.Object userObject)
Constructs a SortedTreeNode with a root node as an argument.

Parameters:
userObject - the object root node.
Method Detail

getIndex

public int getIndex()
Gets the index of the sortedTreeNode.

Returns:
the index of the treeNode.

setIndex

public void setIndex(int index)
Gets the index of the sortedTreeNode.

Parameters:
index - the index of the treeNode.

add

public void add(SortedTreeNode child)
Adds a TreeNode to the child list.

Parameters:
child - the SortedTreeNode to add.