Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.eireneh.bible.passage.swing
Class PassageTreeNode  view PassageTreeNode download PassageTreeNode.java

java.lang.Object
  extended bycom.eireneh.bible.passage.swing.PassageTreeNode
All Implemented Interfaces:
java.util.EventListener, com.eireneh.bible.passage.PassageListener, javax.swing.tree.TreeNode

public class PassageTreeNode
extends java.lang.Object
implements javax.swing.tree.TreeNode, com.eireneh.bible.passage.PassageListener

A PassageTreeNode extends TreeNode to Model a Passage.
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.

Version:
D5.I0.T0

Field Summary
protected  com.eireneh.bible.passage.Passage ref
          The Passage to be displayed
protected  javax.swing.JTree tree
          The Passage to be displayed
 
Constructor Summary
PassageTreeNode(com.eireneh.bible.passage.Passage ref, javax.swing.JTree tree)
           
 
Method Summary
 java.util.Enumeration children()
          Returns the children of the reciever as an Enumeration.
 boolean getAllowsChildren()
          Returns true if the receiver allows children.
 javax.swing.tree.TreeNode getChildAt(int index)
          Returns the child TreeNode at index i
 int getChildCount()
          Returns the number of children TreeNodes the receiver contains.
 int getIndex(javax.swing.tree.TreeNode node)
          Returns the index of node in the receivers children.
 javax.swing.tree.TreeNode getParent()
          Returns the parent TreeNode of the receiver.
 boolean isLeaf()
          Returns true if the receiver is a leaf.
 java.lang.String toString()
          Returns the children of the reciever as an Enumeration.
 void versesAdded(com.eireneh.bible.passage.PassageEvent ev)
          Sent after stuff has been added to the Passage.
 void versesChanged(com.eireneh.bible.passage.PassageEvent ev)
          Sent after verses have been symultaneously added and removed from the Passage.
 void versesRemoved(com.eireneh.bible.passage.PassageEvent ev)
          Sent after stuff has been removed from the Passage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ref

protected com.eireneh.bible.passage.Passage ref
The Passage to be displayed


tree

protected javax.swing.JTree tree
The Passage to be displayed

Constructor Detail

PassageTreeNode

public PassageTreeNode(com.eireneh.bible.passage.Passage ref,
                       javax.swing.JTree tree)
Method Detail

getChildAt

public javax.swing.tree.TreeNode getChildAt(int index)
Returns the child TreeNode at index i

Specified by:
getChildAt in interface javax.swing.tree.TreeNode

getChildCount

public int getChildCount()
Returns the number of children TreeNodes the receiver contains.

Specified by:
getChildCount in interface javax.swing.tree.TreeNode

getParent

public javax.swing.tree.TreeNode getParent()
Returns the parent TreeNode of the receiver.

Specified by:
getParent in interface javax.swing.tree.TreeNode

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

getAllowsChildren

public boolean getAllowsChildren()
Returns true if the receiver allows children.

Specified by:
getAllowsChildren in interface javax.swing.tree.TreeNode

isLeaf

public boolean isLeaf()
Returns true if the receiver is a leaf.

Specified by:
isLeaf in interface javax.swing.tree.TreeNode

versesAdded

public void versesAdded(com.eireneh.bible.passage.PassageEvent ev)
Sent after stuff has been added to the Passage. * More info about what and where can be had from the Event

Specified by:
versesAdded in interface com.eireneh.bible.passage.PassageListener

versesRemoved

public void versesRemoved(com.eireneh.bible.passage.PassageEvent ev)
Sent after stuff has been removed from the Passage. * More info about what and where can be had from the Event

Specified by:
versesRemoved in interface com.eireneh.bible.passage.PassageListener

versesChanged

public void versesChanged(com.eireneh.bible.passage.PassageEvent ev)
Sent after verses have been symultaneously added and removed from the Passage. * More info about what and where can be had from the Event

Specified by:
versesChanged in interface com.eireneh.bible.passage.PassageListener

children

public java.util.Enumeration children()
Returns the children of the reciever as an Enumeration.

Specified by:
children in interface javax.swing.tree.TreeNode

toString

public java.lang.String toString()
Returns the children of the reciever as an Enumeration.