|
|||||||||
| Home >> All >> com >> eireneh >> bible >> [ book overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.eireneh.bible.book
Class AbstractBible

java.lang.Objectcom.eireneh.bible.book.AbstractBible
- Direct Known Subclasses:
- VersewiseBible
- public abstract class AbstractBible
- extends java.lang.Object
- implements Bible
- extends java.lang.Object
An AbstractBible implements a few of the more generic methods of Bible, and takes care of a BookConfig object.
|
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:
- T2.I7.D8
| Field Summary | |
protected com.eireneh.util.EventListenerList |
listeners
The list of listeners |
protected int |
percent
The current progress |
| Constructor Summary | |
AbstractBible()
|
|
| Method Summary | |
void |
addProgressListener(ProgressListener li)
Add a progress listener to the list of things wanting to know whenever we make some progress |
protected void |
fireProgressMade(java.lang.String name,
int percent)
Called to fire a ProgressEvent to all the Listeners, but only if there is actual progress since last time. |
void |
generate(Bible version)
Read from the given source version to generate ourselves. |
org.jdom.Element |
getElement(com.eireneh.bible.passage.Passage ref)
Retrieval: Use JDOM to retrieve some Bible data |
com.eireneh.config.Config |
getProperties()
What configuration options are available? A null return from this IS valid, and means, there is nothing to configure. |
java.net.URL |
getPropertiesURL()
If there is something to configure, and the config options are worth saving to disk (this may not be the case for read-only options) then this is where to save the stuff to. |
java.lang.String |
getText(com.eireneh.bible.passage.VerseRange range)
Retrieval: Create an String for the specified Verses. |
void |
removeProgressListener(ProgressListener li)
Remove a progress listener from the list of things wanting to know whenever we make some progress |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.eireneh.bible.book.Bible |
findPassage, getDocument, getDriver, getName, getStartsWith, getVersion, listWords |
| Field Detail |
listeners
protected com.eireneh.util.EventListenerList listeners
- The list of listeners
percent
protected int percent
- The current progress
| Constructor Detail |
AbstractBible
public AbstractBible()
| Method Detail |
getText
public java.lang.String getText(com.eireneh.bible.passage.VerseRange range) throws BookException
getElement
public org.jdom.Element getElement(com.eireneh.bible.passage.Passage ref) throws BookException
- Retrieval: Use JDOM to retrieve some Bible data
- Specified by:
getElementin interfaceBible
getProperties
public com.eireneh.config.Config getProperties() throws BookException
- What configuration options are available? A null return from this
IS valid, and means, there is nothing to configure.
- Specified by:
getPropertiesin interfaceBible
getPropertiesURL
public java.net.URL getPropertiesURL()
- If there is something to configure, and the config options are
worth saving to disk (this may not be the case for read-only
options) then this is where to save the stuff to.
- Specified by:
getPropertiesURLin interfaceBible
generate
public void generate(Bible version) throws BookException
- Read from the given source version to generate ourselves. This
method is called in place of init(). It should periodically call
Thread.currentThread().isInterrupted()to check that it is safe to continue, and clear up if not.
addProgressListener
public void addProgressListener(ProgressListener li)
- Add a progress listener to the list of things wanting
to know whenever we make some progress
- Specified by:
addProgressListenerin interfaceBible
removeProgressListener
public void removeProgressListener(ProgressListener li)
- Remove a progress listener from the list of things wanting
to know whenever we make some progress
- Specified by:
removeProgressListenerin interfaceBible
fireProgressMade
protected void fireProgressMade(java.lang.String name, int percent)
- Called to fire a ProgressEvent to all the Listeners, but only if
there is actual progress since last time.
|
|||||||||
| Home >> All >> com >> eireneh >> bible >> [ book overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.eireneh.bible.book.AbstractBible