org.crosswire.bibledesktop.passage
Class KeyTreeNode
java.lang.Object
org.crosswire.bibledesktop.passage.KeyTreeNode
- All Implemented Interfaces:
- TreeNode
public class KeyTreeNode
- extends Object
- implements TreeNode
An implementation of TreeNode that reads from Keys and KeyLists.
- Author:
- Joe Walker [joe at eireneh dot com]
- See Also:
for license details.
The copyright to this program is held by it's authors.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
key
private Key key
parent
private TreeNode parent
KeyTreeNode
public KeyTreeNode(Key key,
TreeNode parent)
- Simple ctor
getChildCount
public int getChildCount()
- Specified by:
getChildCount
in interface TreeNode
getAllowsChildren
public boolean getAllowsChildren()
- Specified by:
getAllowsChildren
in interface TreeNode
isLeaf
public boolean isLeaf()
- Specified by:
isLeaf
in interface TreeNode
children
public Enumeration<Key> children()
- Specified by:
children
in interface TreeNode
getParent
public TreeNode getParent()
- Specified by:
getParent
in interface TreeNode
getChildAt
public TreeNode getChildAt(int index)
- Specified by:
getChildAt
in interface TreeNode
getIndex
public int getIndex(TreeNode node)
- Specified by:
getIndex
in interface TreeNode
getKey
public Key getKey()
- Accessor for the key