|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.bibledesktop.passage.WholeBibleTreeNode
public final class WholeBibleTreeNode
A PassageTreeNode extends TreeNode to Model a Passage.
for license details.
The copyright to this program is held by it's authors.
Nested Class Summary | |
---|---|
class |
WholeBibleTreeNode.WholeBibleEnumeration
Iterate over the Books |
Field Summary | |
---|---|
private int |
level
The level of this node one of: LEVEL_[BIBLE|BOOK|CHAPTER|VERSE] |
protected static int |
LEVEL_BIBLE
|
protected static int |
LEVEL_BOOK
|
protected static int |
LEVEL_CHAPTER
|
protected static int |
LEVEL_VERSE
|
private TreeNode |
parent
Our parent tree node |
protected VerseRange |
range
The range that this node refers to |
Constructor Summary | |
---|---|
private |
WholeBibleTreeNode(TreeNode parent,
VerseRange range,
int level)
This constructor is for when we are really a BookTreeNode |
Method Summary | |
---|---|
Enumeration |
children()
|
boolean |
getAllowsChildren()
|
TreeNode |
getChildAt(int i)
Returns the child TreeNode at index i |
int |
getChildCount()
Returns the number of children TreeNode s the receiver
contains. |
int |
getIndex(TreeNode node)
Returns the index of node in the receivers children. |
protected static WholeBibleTreeNode |
getNode(TreeNode parent,
int b,
int c,
int v)
We could do some caching here if needs be. |
TreeNode |
getParent()
|
static WholeBibleTreeNode |
getRootNode()
The starrt point for all WholeBibleTreeNodes. |
VerseRange |
getVerseRange()
The current Passage number |
boolean |
isLeaf()
|
String |
toString()
How we appear in the Tree |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final int LEVEL_BIBLE
protected static final int LEVEL_BOOK
protected static final int LEVEL_CHAPTER
protected static final int LEVEL_VERSE
protected VerseRange range
private TreeNode parent
private int level
Constructor Detail |
---|
private WholeBibleTreeNode(TreeNode parent, VerseRange range, int level)
Method Detail |
---|
public static WholeBibleTreeNode getRootNode()
protected static WholeBibleTreeNode getNode(TreeNode parent, int b, int c, int v)
public VerseRange getVerseRange()
public TreeNode getParent()
getParent
in interface TreeNode
TreeNode.getParent()
public boolean getAllowsChildren()
getAllowsChildren
in interface TreeNode
TreeNode.getAllowsChildren()
public boolean isLeaf()
isLeaf
in interface TreeNode
TreeNode.isLeaf()
public String toString()
toString
in class Object
public TreeNode getChildAt(int i)
TreeNode
at index i
getChildAt
in interface TreeNode
public int getChildCount()
TreeNode
s the receiver
contains.
getChildCount
in interface TreeNode
public int getIndex(TreeNode node)
node
in the receivers children. If the
receiver does not contain node
, -1 will be returned.
getIndex
in interface TreeNode
public Enumeration children()
children
in interface TreeNode
TreeNode.children()
|
Copyright ? 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |