|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JSplitPane
org.crosswire.bibledesktop.book.MultiBookPane
public class MultiBookPane
Builds a panel on which all the non-Bible books and their entries are visible.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JSplitPane |
---|
JSplitPane.AccessibleJSplitPane |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private org.crosswire.jsword.book.Book |
book
|
private JList |
bookList
|
private Component |
commentaryPicker
|
private JList |
dictionaryKeyList
|
private Component |
dictionaryKeyScroller
|
private BookDataDisplay |
display
The display of OSIS data |
private Component |
genBookKeyScroller
|
private JTree |
genBookKeyTree
|
private static org.slf4j.Logger |
log
The log stream |
private static long |
serialVersionUID
Serialization ID |
protected BibleComboBoxModelSet |
set
|
private JSplitPane |
sptMain
|
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface org.crosswire.bibledesktop.display.BookDataDisplay |
---|
COMPARE_BOOKS |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
MultiBookPane()
Setup the GUI |
Method Summary | |
---|---|
void |
addKeyChangeListener(KeyChangeListener listener)
Add a listener for when the key changes. |
void |
addURIEventListener(URIEventListener listener)
Add a listener for when someone clicks on a browser 'link' |
void |
clearBookData()
Clear any BookData that is displayed. |
void |
copy()
Copy the selection to the clipboard |
private Component |
createBookPicker()
Create a book picker of all non-bibles |
private Component |
createCommentaryPicker()
Build a tree for a GenBook |
private Component |
createDictionaryPicker()
Build a tree for a GenBook |
private Component |
createGenBookPicker()
Build a tree for a GenBook |
org.crosswire.jsword.book.Book[] |
getBooks()
|
Component |
getComponent()
Accessor for the Swing component |
org.crosswire.jsword.book.Book |
getFirstBook()
|
org.crosswire.jsword.passage.Key |
getKey()
The Book Key that we are displaying, or null if we are not displaying anything |
private void |
init()
GUI initializer |
(package private) void |
newBook()
Called when someone selects a new Dictionary |
(package private) void |
newEntry()
Called when someone selects a new entry from the current dictionary |
void |
propertyChange(PropertyChangeEvent evt)
|
private void |
readObject(ObjectInputStream is)
Serialization support. |
void |
refresh()
Cause the BookData to be re-displayed. |
void |
removeKeyChangeListener(KeyChangeListener listener)
Remove a listener for when the key changes. |
void |
removeURIEventListener(URIEventListener listener)
Remove a listener for when someone clicks on a browser 'link' |
void |
selectBook(org.crosswire.jsword.book.Book selectedBook)
|
(package private) void |
selected()
Something has been (un)selected in the tree |
void |
setBookData(org.crosswire.jsword.book.Book[] books,
org.crosswire.jsword.passage.Key key)
Set the BookData to be displayed. |
void |
setCompareBooks(boolean compare)
Establish whether books in the book array should be compared. |
void |
setKey(org.crosswire.jsword.passage.Key key)
Accessor for the current passage |
void |
setWord(String data)
See if the current dictionary has a mention of the word in question. |
(package private) void |
updateDisplay()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private transient BookDataDisplay display
private transient org.crosswire.jsword.book.Book book
protected transient BibleComboBoxModelSet set
private Component commentaryPicker
private Component genBookKeyScroller
private JTree genBookKeyTree
private JList bookList
private JSplitPane sptMain
private Component dictionaryKeyScroller
private JList dictionaryKeyList
private static final org.slf4j.Logger log
private static final long serialVersionUID
Constructor Detail |
---|
public MultiBookPane()
Method Detail |
---|
private void init()
public void clearBookData()
BookDataDisplay
setBookData(null, null)
.
clearBookData
in interface BookDataDisplay
public void setBookData(org.crosswire.jsword.book.Book[] books, org.crosswire.jsword.passage.Key key)
BookDataDisplay
setBookData
in interface BookDataDisplay
books
- The Books to read data fromkey
- The key to read from the given bookpublic void setCompareBooks(boolean compare)
BookDataDisplay
setCompareBooks
in interface BookDataDisplay
public void refresh()
BookDataDisplay
refresh
in interface BookDataDisplay
public Component getComponent()
BookDataDisplay
getComponent
in interface BookDataDisplay
public void copy()
BookDataDisplay
copy
in interface BookDataDisplay
public org.crosswire.jsword.passage.Key getKey()
BookDataDisplay
getKey
in interface BookDataDisplay
public void addKeyChangeListener(KeyChangeListener listener)
BookDataDisplay
addKeyChangeListener
in interface BookDataDisplay
public void removeKeyChangeListener(KeyChangeListener listener)
BookDataDisplay
removeKeyChangeListener
in interface BookDataDisplay
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener
public void addURIEventListener(URIEventListener listener)
BookDataDisplay
addURIEventListener
in interface BookDataDisplay
listener
- The listener to addpublic void removeURIEventListener(URIEventListener listener)
BookDataDisplay
removeURIEventListener
in interface BookDataDisplay
listener
- The listener to removepublic org.crosswire.jsword.book.Book[] getBooks()
getBooks
in interface org.crosswire.jsword.book.BookProvider
public org.crosswire.jsword.book.Book getFirstBook()
getFirstBook
in interface org.crosswire.jsword.book.BookProvider
public void setWord(String data)
public void setKey(org.crosswire.jsword.passage.Key key)
public void selectBook(org.crosswire.jsword.book.Book selectedBook)
private Component createBookPicker()
private Component createCommentaryPicker()
private Component createDictionaryPicker()
private Component createGenBookPicker()
final void newBook()
final void updateDisplay()
final void newEntry()
void selected()
private void readObject(ObjectInputStream is) throws IOException, ClassNotFoundException
is
-
IOException
ClassNotFoundException
|
Copyright ยจ 2003-2013 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |