|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.bibledesktop.passage.BibleTreeNode
public class BibleTreeNode
BibleTreeNode.
|
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. |
Licence| Nested Class Summary | |
|---|---|
class |
BibleTreeNode.NodeEnumeration
The Enumerate over an array |
| Field Summary | |
|---|---|
protected TreeNode[] |
kids
The ChapterTreeNodes that we have created |
protected Passage |
ref
If we are only displaying some of the verses |
| Constructor Summary | |
|---|---|
BibleTreeNode()
|
|
| Method Summary | |
|---|---|
Enumeration |
children()
Returns the children of the reciever as an Enumeration. |
boolean |
getAllowsChildren()
Returns true if the receiver allows children. |
TreeNode |
getChildAt(int i)
Returns the child TreeNode at index i |
int |
getChildCount()
Returns the number of children TreeNodes the receiver
contains. |
int |
getIndex(TreeNode node)
Returns the index of node in the receivers children. |
TreeNode |
getParent()
Returns the parent TreeNode of the receiver. |
boolean |
isLeaf()
Returns true if the receiver is a leaf. |
void |
setPassage(Passage ref,
boolean filter)
|
String |
toString()
Returns the children of the reciever as an Enumeration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Passage ref
protected TreeNode[] kids
| Constructor Detail |
|---|
public BibleTreeNode()
| Method Detail |
|---|
public void setPassage(Passage ref,
boolean filter)
public TreeNode getChildAt(int i)
TreeNode at index i
getChildAt in interface TreeNodepublic int getChildCount()
TreeNodes the receiver
contains.
getChildCount in interface TreeNodepublic TreeNode getParent()
TreeNode of the receiver.
getParent in interface TreeNodepublic int getIndex(TreeNode node)
node in the receivers children.
If the receiver does not contain node, -1 will be
returned.
getIndex in interface TreeNodepublic boolean getAllowsChildren()
getAllowsChildren in interface TreeNodepublic boolean isLeaf()
isLeaf in interface TreeNodepublic Enumeration children()
children in interface TreeNodepublic String toString()
toString in class Object
|
Copyright ? 2003-2004 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||