|
||||||||||
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 | |
---|---|
private static class |
WholeBibleTreeNode.Level
Levels at which this node stands. |
private class |
WholeBibleTreeNode.WholeBibleEnumeration
Iterate over the Books |
Field Summary | |
---|---|
private WholeBibleTreeNode.Level |
level
The level of this node one of: LEVEL_[BIBLE|BOOK|CHAPTER|VERSE] |
private TreeNode |
parent
Our parent tree node |
private VerseRange |
range
The range that this node refers to |
private NumberShaper |
shaper
Change the number representation as needed |
private Versification |
v11n
|
Constructor Summary | |
---|---|
private |
WholeBibleTreeNode(TreeNode parent,
VerseRange range,
WholeBibleTreeNode.Level level)
This constructor is for when we are really a BookTreeNode |
Method Summary | |
---|---|
Enumeration<TreeNode> |
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,
BibleBook b,
int c,
int v)
We could do some caching here if needs be. |
TreeNode |
getParent()
|
static WholeBibleTreeNode |
getRootNode()
The start 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 |
---|
private Versification v11n
private NumberShaper shaper
private VerseRange range
private TreeNode parent
private WholeBibleTreeNode.Level level
Constructor Detail |
---|
private WholeBibleTreeNode(TreeNode parent, VerseRange range, WholeBibleTreeNode.Level level)
Method Detail |
---|
public static WholeBibleTreeNode getRootNode()
protected static WholeBibleTreeNode getNode(TreeNode parent, BibleBook 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
, 0 will be returned.
getIndex
in interface TreeNode
public Enumeration<TreeNode> children()
children
in interface TreeNode
TreeNode.children()
|
Copyright ? 2003-2011 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |