com.hdcookbook.grin.test.bigjdk
Class ShowNode
java.lang.Object
com.hdcookbook.grin.test.bigjdk.ShowNode
- All Implemented Interfaces:
- javax.swing.tree.TreeNode
public class ShowNode
- extends java.lang.Object
- implements javax.swing.tree.TreeNode
This is a Swing TreeNode that represents a node in the show graph.
It's used for the tree-browsing UI of GrinView.
- Author:
- Bill Foote (http://jovial.com)
- See Also:
GrinView
Constructor Summary |
ShowNode(SEShow show,
java.lang.String showName)
Create a show tree, that is, a top-level ShowNode for a show. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ShowNode
public ShowNode(SEShow show,
java.lang.String showName)
- Create a show tree, that is, a top-level ShowNode for a show.
children
public java.util.Enumeration children()
- Specified by:
children
in interface javax.swing.tree.TreeNode
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interface javax.swing.tree.TreeNode
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interface javax.swing.tree.TreeNode
getChildAt
public javax.swing.tree.TreeNode getChildAt(int i)
- Specified by:
getChildAt
in interface javax.swing.tree.TreeNode
getIndex
public int getIndex(javax.swing.tree.TreeNode node)
- Specified by:
getIndex
in interface javax.swing.tree.TreeNode
getParent
public javax.swing.tree.TreeNode getParent()
- Specified by:
getParent
in interface javax.swing.tree.TreeNode
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interface javax.swing.tree.TreeNode
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object