hades.manager.tree
Class SortedTreeNode

java.lang.Object
  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()
           
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

debug

static boolean debug

_icon

static javax.swing.ImageIcon _icon

__url

java.net.URL __url
Constructor Detail

SortedTreeNode

public SortedTreeNode()

SortedTreeNode

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

getIcon

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


loadIcon

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

getURL

public java.net.URL getURL()

setURL

public void setURL(java.net.URL u)

add

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


handleTreeSelection

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...


handleDoubleClick

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...


msg

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