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.
Distribution Licence:
JSword is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License,
version 2 as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
The License is available on the internet
here, or by writing to:
Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA
The copyright to this program is held by it's authors.
|
- Version:
- $Id: KeyTreeNode.java,v 1.3 2004/08/16 22:09:21 joe Exp $
- Author:
- Joe Walker [joe at eireneh dot com]
- See Also:
Licence
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 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