|
||||||||||
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.JPanel
org.crosswire.bibledesktop.book.CommentaryPane
public class CommentaryPane
Builds a set of tabs from the list of Books returned by a filtered list of Books.
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
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
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 JComboBox |
cboBooks
|
private JComboBox |
cboChaps
|
protected JComboBox |
cboComments
|
private JComboBox |
cboVerse
|
private BookDataDisplay |
display
The BookData display component |
private BookFilter |
filter
To get us just the Commentaries |
protected Key |
key
Last displayed |
private BooksComboBoxModel |
mdlcomments
|
private JPanel |
pnlSelect
|
private JPanel |
pnlTop
|
private static long |
serialVersionUID
Serialization ID |
protected BibleComboBoxModelSet |
set
|
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 | |
---|---|
CommentaryPane()
Simple constructor that uses all the Books |
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 |
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()
Initialise the GUI |
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 |
setBookData(Book book,
Key key)
Set the BookData to be displayed. |
void |
setKey(Key key)
Accessor for the current passage |
protected void |
updateDisplay()
|
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected Key key
private BookFilter filter
private BookDataDisplay display
private BooksComboBoxModel mdlcomments
protected BibleComboBoxModelSet set
protected JComboBox cboComments
private JComboBox cboBooks
private JComboBox cboChaps
private JComboBox cboVerse
private JPanel pnlSelect
private JPanel pnlTop
private static final long serialVersionUID
Constructor Detail |
---|
public CommentaryPane()
Method Detail |
---|
private void init()
public Component getComponent()
BookDataDisplay
getComponent
in interface BookDataDisplay
protected void updateDisplay()
public void copy()
BookDataDisplay
copy
in interface BookDataDisplay
public Key getKey()
BookDataDisplay
getKey
in interface BookDataDisplay
public Book getBook()
BookDataDisplay
getBook
in interface BookDataDisplay
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 void setKey(Key key)
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 remove
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |