java.lang.Object
com.eireneh.bible.passage.swing.BibleTreeNode
com.eireneh.bible.passage.swing.BookTreeNode
com.eireneh.bible.passage.swing.ChapterTreeNode
com.eireneh.bible.passage.swing.VerseTreeNode
- All Implemented Interfaces:
- javax.swing.tree.TreeNode
- public class VerseTreeNode
- extends ChapterTreeNode
PassageTableModel.
Distribution Licence:
Project B 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, by writing to
Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA, Or locally at the Licence link below.
The copyright to this program is held by it's authors.
|
|
Field Summary |
protected int |
verse
The Verse that this node referrs to |
verse
protected int verse
- The Verse that this node referrs to
VerseTreeNode
protected VerseTreeNode(javax.swing.tree.TreeNode parent,
int book,
int Passage,
int verse)
throws com.eireneh.bible.passage.NoSuchVerseException
- This constructor is for when we are really a BookTreeNode
setPassage
public void setPassage(com.eireneh.bible.passage.Passage ref,
boolean filter)
- This constructor is for when we are really a BookTreeNode
- Overrides:
setPassage in class ChapterTreeNode
getChildAt
public javax.swing.tree.TreeNode getChildAt(int i)
- Returns the child
TreeNode at index i
- Specified by:
getChildAt in interface javax.swing.tree.TreeNode- Overrides:
getChildAt in class ChapterTreeNode
getChildCount
public int getChildCount()
- Returns the number of children
TreeNodes the receiver
contains.
- Specified by:
getChildCount in interface javax.swing.tree.TreeNode- Overrides:
getChildCount in class BibleTreeNode
getIndex
public int getIndex(javax.swing.tree.TreeNode node)
- Returns the index of
node in the receivers children.
If the receiver does not contain node, -1 will be
returned.
- Specified by:
getIndex in interface javax.swing.tree.TreeNode- Overrides:
getIndex in class ChapterTreeNode
toString
public java.lang.String toString()
- How we appear in the Tree
- Overrides:
toString in class ChapterTreeNode
getVerse
public int getVerse()
- The current Passage number