|
||||||||||
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.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private 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 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 java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
MultiBookPane()
Setup the GUI |
Method Summary | |
---|---|
void |
addURLEventListener(URLEventListener listener)
Add a listener for when someone clicks on a browser 'link' |
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 |
Book |
getBook()
Accessor for the Book used in the current display, or null if we are not displaying anything. |
Component |
getComponent()
Accessor for the Swing component |
Key |
getKey()
The Book Key that we are displaying, or null if we are not displaying anything |
private void |
init()
GUI initialiser |
(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 |
private void |
readObject(ObjectInputStream is)
Serialization support. |
void |
refresh()
Cause the BookData to be re-displayed. |
void |
removeURLEventListener(URLEventListener listener)
Remove a listener for when someone clicks on a browser 'link' |
void |
selectBook(Book selectedBook)
|
(package private) void |
selected()
Something has been (un)selected in the tree |
void |
setBookData(Book book,
Key key)
Set the BookData to be displayed. |
void |
setKey(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 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 Logger log
private static final long serialVersionUID
Constructor Detail |
---|
public MultiBookPane()
Method Detail |
---|
private void init()
public void setBookData(Book book, Key key)
BookDataDisplay
setBookData
in interface BookDataDisplay
book
- The Book to read data fromkey
- The key to read from the given bookpublic void refresh()
BookDataDisplay
refresh
in interface BookDataDisplay
public Component getComponent()
BookDataDisplay
getComponent
in interface BookDataDisplay
public void copy()
BookDataDisplay
copy
in interface BookDataDisplay
public Key getKey()
BookDataDisplay
getKey
in interface BookDataDisplay
public void addURLEventListener(URLEventListener listener)
BookDataDisplay
addURLEventListener
in interface BookDataDisplay
listener
- The listener to addpublic void removeURLEventListener(URLEventListener listener)
BookDataDisplay
removeURLEventListener
in interface BookDataDisplay
listener
- The listener to removepublic Book getBook()
BookDataDisplay
getBook
in interface BookDataDisplay
public void setWord(String data)
public void setKey(Key key)
public void selectBook(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-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |