12
12
import org.crosswire.common.util.LogicError;
17
* <table border='1' cellPadding='3' cellSpacing='0' width="100%">
18
* <tr><td bgColor='white'class='TableRowColor'><font size='-7'>
19
* Distribution Licence:<br />
20
* Project B is free software; you can redistribute it
21
* and/or modify it under the terms of the GNU General Public License,
22
* version 2 as published by the Free Software Foundation.<br />
23
* This program is distributed in the hope that it will be useful,
24
* but WITHOUT ANY WARRANTY; without even the implied warranty of
25
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26
* General Public License for more details.<br />
27
* The License is available on the internet
28
* <a href='http://www.gnu.org/copyleft/gpl.html'>here</a>, by writing to
29
* <i>Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
30
* MA 02111-1307, USA</i>, Or locally at the Licence link below.<br />
31
* The copyright to this program is held by it's authors.
32
* </font></td></tr></table>
33
* @see <a href='http://www.eireneh.com/servlets/Web'>Project B Home</a>
34
* @see <{docs.Licence}>
17
* <p><table border='1' cellPadding='3' cellSpacing='0'>
18
* <tr><td bgColor='white' class='TableRowColor'><font size='-7'>
20
* Distribution Licence:<br />
21
* JSword is free software; you can redistribute it
22
* and/or modify it under the terms of the GNU General Public License,
23
* version 2 as published by the Free Software Foundation.<br />
24
* This program is distributed in the hope that it will be useful,
25
* but WITHOUT ANY WARRANTY; without even the implied warranty of
26
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
27
* General Public License for more details.<br />
28
* The License is available on the internet
29
* <a href='http://www.gnu.org/copyleft/gpl.html'>here</a>, or by writing to:
30
* Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
31
* MA 02111-1307, USA<br />
32
* The copyright to this program is held by it's authors.
33
* </font></td></tr></table>
35
* @author Joe Walker [joe at eireneh dot com]
37
38
public class BookTreeNode extends BibleTreeNode
40
* This constructor is for when we are really a BookTreeNode
41
* This constructor is for when we are really a BookTreeNode
42
43
protected BookTreeNode(TreeNode parent, int book) throws NoSuchVerseException
44
45
this.parent = parent;
111
* Returns the parent <code>TreeNode</code> of the receiver.
112
* Returns the parent <code>TreeNode</code> of the receiver.
113
114
public TreeNode getParent()
119
* Returns the index of <code>node</code> in the receivers children.
120
* If the receiver does not contain <code>node</code>, -1 will be
120
* Returns the index of <code>node</code> in the receivers children.
121
* If the receiver does not contain <code>node</code>, -1 will be
123
124
public int getIndex(TreeNode node)
125
126
if (!(node instanceof ChapterTreeNode))