|
||||||||||
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.DictionaryPane
public class DictionaryPane
Builds a panel on which all the Dictionaries and their entries are visible.
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
|
private JComboBox |
cboVerse
|
private Book |
dict
|
private BookDataDisplay |
display
The display of OSIS data |
private BookFilter |
filter
|
private static Logger |
log
The log stream |
private JList |
lstDicts
|
private JList |
lstEntries
|
private BooksComboBoxModel |
mdlDicts
|
private JPanel |
pnlSelect
|
private JScrollPane |
scrDicts
|
private JScrollPane |
scrDisplay
|
private JScrollPane |
scrEntries
|
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 | |
---|---|
DictionaryPane()
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 |
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 |
protected void |
newDictionary()
Called when someone selects a new Dictionary |
protected void |
newEntry()
Called when someone selects a new entry from the current dictionary |
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 |
selectDictionary(Book book)
|
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. |
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 |
---|
private BookDataDisplay display
private BookFilter filter
private BooksComboBoxModel mdlDicts
private Book dict
protected BibleComboBoxModelSet set
private JComboBox cboBooks
private JComboBox cboChaps
private JComboBox cboVerse
private JPanel pnlSelect
private JScrollPane scrDicts
private JList lstDicts
private JSplitPane sptMain
private JScrollPane scrEntries
private JScrollPane scrDisplay
private JList lstEntries
private static final Logger log
private static final long serialVersionUID
Constructor Detail |
---|
public DictionaryPane()
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 selectDictionary(Book book)
protected void newDictionary()
protected void updateDisplay()
protected void newEntry()
|
Copyright ? 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |