hades.manager.tree
Class PythonFileTreeNode

java.lang.Object
  extended byjavax.swing.tree.DefaultMutableTreeNode
      extended byhades.manager.tree.SortedTreeNode
          extended byhades.manager.tree.PythonFileTreeNode
All Implemented Interfaces:
java.lang.Cloneable, javax.swing.tree.MutableTreeNode, java.io.Serializable, javax.swing.tree.TreeNode

public class PythonFileTreeNode
extends SortedTreeNode

PythonFileTreeNode: represent a Python source file in the browser tree.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.tree.DefaultMutableTreeNode
 
Field Summary
(package private) static javax.swing.ImageIcon _icon
           
 
Fields inherited from class hades.manager.tree.SortedTreeNode
__url, debug
 
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject
 
Constructor Summary
PythonFileTreeNode()
           
 
Method Summary
 javax.swing.ImageIcon getIcon()
          this is a base class without icon: return the "unknown" icon
 void handleTreeSelection(BrowserFrame browser)
          set the Browser imageCanvas icon to null.
 
Methods inherited from class hades.manager.tree.SortedTreeNode
add, getURL, handleDoubleClick, loadIcon, msg, setURL
 
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

_icon

static javax.swing.ImageIcon _icon
Constructor Detail

PythonFileTreeNode

public PythonFileTreeNode()
Method Detail

getIcon

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

Overrides:
getIcon in class SortedTreeNode

handleTreeSelection

public void handleTreeSelection(BrowserFrame browser)
set the Browser imageCanvas icon to null. load the text file and display in the Browser InfoPanel

Overrides:
handleTreeSelection in class SortedTreeNode