|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.Defaults
public class Defaults
Handles the current default Books.
This is used whenever the user works with one Book at a time and many parts of the system want to know what the current is.
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 | |
---|---|
private static class |
Defaults.DefaultsBookListener
To keep us up to date with changes in the available Books |
Field Summary | |
---|---|
private static String |
BIBLE_KEY
|
private static DefaultBook |
bibleDeft
The default Bible |
private static String |
COMMENTARY_KEY
|
private static DefaultBook |
commentaryDeft
The default Commentary |
private static String |
DICTIONARY_KEY
|
private static DefaultBook |
dictionaryDeft
The default Dictionary |
private static String |
GREEKDEF_KEY
|
private static DefaultBook |
greekDefinitionsDeft
The default Greek Definitions Dictinary. |
private static String |
GREEKPARSE_KEY
|
private static DefaultBook |
greekParseDeft
The default Greek Parse Dictinary. |
private static String |
HEBREWDEF_KEY
|
private static DefaultBook |
hebrewDefinitionsDeft
The default Hebrew Definitions Dictionary. |
private static String |
HEBREWPARSE_KEY
|
private static DefaultBook |
hebrewParseDeft
The default Hebrew Parse Dictinary. |
private static String |
READINGS_KEY
|
Constructor Summary | |
---|---|
private |
Defaults()
Prevent construction |
Method Summary | |
---|---|
protected static void |
checkAllPreferable()
Go through all of the current books checking to see if we need to replace the current defaults with one of these. |
protected static void |
checkPreferable(Book book)
Determine whether this Book become the default. |
static Book |
getBible()
|
static String |
getBibleByName()
|
static Book |
getCommentary()
|
static String |
getCommentaryByName()
|
protected static DefaultBook |
getDefaultBible()
|
protected static DefaultBook |
getDefaultCommentary()
|
protected static DefaultBook |
getDefaultDictionary()
|
protected static DefaultBook |
getDefaultGreekDefinitions()
|
protected static DefaultBook |
getDefaultGreekParse()
|
protected static DefaultBook |
getDefaultHebrewDefinitions()
|
protected static DefaultBook |
getDefaultHebrewParse()
|
static Book |
getDictionary()
|
static String |
getDictionaryByName()
|
private static String[] |
getFullNameArray(BookFilter filter)
Convert a filter into an array of names of Books that pass the filter. |
static Book |
getGreekDefinitions()
|
static String |
getGreekDefinitionsByName()
|
static Book |
getGreekParse()
|
static String |
getGreekParseByName()
|
static Book |
getHebrewDefinitions()
|
static String |
getHebrewDefinitionsByName()
|
static Book |
getHebrewParse()
|
static String |
getHebrewParseByName()
|
static void |
refreshBooks()
|
static void |
setBible(Book book)
|
static void |
setBibleByName(String name)
|
static void |
setCommentary(Book book)
|
static void |
setCommentaryByName(String name)
|
static void |
setDictionary(Book book)
|
static void |
setDictionaryByName(String name)
|
static void |
setGreekDefinitions(Book book)
|
static void |
setGreekDefinitionsByName(String name)
|
static void |
setGreekParse(Book book)
|
static void |
setGreekParseByName(String name)
|
static void |
setHebrewDefinitions(Book book)
|
static void |
setHebrewDefinitionsByName(String name)
|
static void |
setHebrewParse(Book book)
|
static void |
setHebrewParseByName(String name)
|
protected static void |
unsetBible()
|
protected static void |
unsetCommentary()
|
protected static void |
unsetDictionary()
|
protected static void |
unsetGreekDefinitions()
|
protected static void |
unsetGreekParse()
|
protected static void |
unsetHebrewDefinitions()
|
protected static void |
unsetHebrewParse()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final String BIBLE_KEY
private static final String COMMENTARY_KEY
private static final String DICTIONARY_KEY
private static final String READINGS_KEY
private static final String GREEKDEF_KEY
private static final String HEBREWDEF_KEY
private static final String GREEKPARSE_KEY
private static final String HEBREWPARSE_KEY
private static DefaultBook bibleDeft
private static DefaultBook commentaryDeft
private static DefaultBook dictionaryDeft
private static DefaultBook greekParseDeft
private static DefaultBook hebrewParseDeft
private static DefaultBook greekDefinitionsDeft
private static DefaultBook hebrewDefinitionsDeft
Constructor Detail |
---|
private Defaults()
Method Detail |
---|
public static void setBible(Book book)
protected static void unsetBible()
public static Book getBible()
public static String getBibleByName()
public static void setBibleByName(String name)
public static void setCommentary(Book book)
protected static void unsetCommentary()
public static Book getCommentary()
public static String getCommentaryByName()
public static void setCommentaryByName(String name)
public static void setDictionary(Book book)
protected static void unsetDictionary()
public static Book getDictionary()
public static String getDictionaryByName()
public static void setDictionaryByName(String name)
public static void setGreekDefinitions(Book book)
protected static void unsetGreekDefinitions()
public static Book getGreekDefinitions()
public static String getGreekDefinitionsByName()
public static void setGreekDefinitionsByName(String name)
public static void setHebrewDefinitions(Book book)
protected static void unsetHebrewDefinitions()
public static Book getHebrewDefinitions()
public static String getHebrewDefinitionsByName()
public static void setHebrewDefinitionsByName(String name)
public static void setGreekParse(Book book)
protected static void unsetGreekParse()
public static Book getGreekParse()
public static String getGreekParseByName()
public static void setGreekParseByName(String name)
public static void setHebrewParse(Book book)
protected static void unsetHebrewParse()
public static Book getHebrewParse()
public static String getHebrewParseByName()
public static void setHebrewParseByName(String name)
protected static DefaultBook getDefaultBible()
protected static DefaultBook getDefaultCommentary()
protected static DefaultBook getDefaultDictionary()
protected static DefaultBook getDefaultGreekDefinitions()
protected static DefaultBook getDefaultHebrewDefinitions()
protected static DefaultBook getDefaultGreekParse()
protected static DefaultBook getDefaultHebrewParse()
public static void refreshBooks()
protected static void checkAllPreferable()
protected static void checkPreferable(Book book)
private static String[] getFullNameArray(BookFilter filter)
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |