Class SortedTreeNode

  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byhades.manager.tree.SortedTreeNode
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode
Direct Known Subclasses:
AssemblerFileTreeNode, DesignFileTreeNode, DirectoryTreeNode, FileRootTreeNode, PythonFileTreeNode, ReadmeFileTreeNode, RootTreeNode, SimObjectTreeNode, TextFileTreeNode, ZipRootTreeNode

public class SortedTreeNode
extends javax.swing.tree.DefaultMutableTreeNode

SortedTreeNode: a mutable tree node which sorts its children alphabetically.

See Also:
Serialized Form

Nested Class Summary
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
Field Summary
(package private)  java.net.URL __url
(package private) static javax.swing.ImageIcon _icon
(package private) static boolean debug
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
Constructor Summary
SortedTreeNode(java.lang.Object userObject)
Method Summary
 void add(SortedTreeNode child)
          adds a TreeNode to the child list
 javax.swing.ImageIcon getIcon()
          this is a base class without icon: return the "unknown" icon
 java.net.URL getURL()
 void handleDoubleClick(BrowserFrame browser)
          handle a tree double click event on this node in the Colibri tree control.
 void handleTreeSelection(BrowserFrame browser)
          handle a tree selection event on this node in the Colibri tree control.
static javax.swing.ImageIcon loadIcon(java.lang.String resourcename)
static void msg(java.lang.String s)
          utility method to print a String, if 'debug' is true.
 void setURL(java.net.URL u)
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


static boolean debug


static javax.swing.ImageIcon _icon


java.net.URL __url
Constructor Detail


public SortedTreeNode()


public SortedTreeNode(java.lang.Object userObject)
Method Detail


public javax.swing.ImageIcon getIcon()
this is a base class without icon: return the "unknown" icon


public static javax.swing.ImageIcon loadIcon(java.lang.String resourcename)


public java.net.URL getURL()


public void setURL(java.net.URL u)


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


public void handleTreeSelection(BrowserFrame browser)
handle a tree selection event on this node in the Colibri tree control. This is a base class: we reset the browser's imageCanvas icon and all InfoPanel data...


public void handleDoubleClick(BrowserFrame browser)
handle a tree double click event on this node in the Colibri tree control. This is a base class: we do nothing...


public static void msg(java.lang.String s)
utility method to print a String, if 'debug' is true.