public interface BookDataDisplay extends org.crosswire.jsword.book.BookProvider, PropertyChangeListener
for license details.
Modifier and Type | Field and Description |
---|---|
static String |
COMPARE_BOOKS
Used by property change listeners to listen for when books should be
compared.
|
Modifier and Type | Method and Description |
---|---|
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
|
Component |
getComponent()
Accessor for the Swing component
|
org.crosswire.jsword.passage.Key |
getKey()
The Book Key that we are displaying, or null if we are not displaying
anything
|
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 |
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.
|
propertyChange
static final String COMPARE_BOOKS
void clearBookData()
setBookData(null, null)
.void setBookData(org.crosswire.jsword.book.Book[] books, org.crosswire.jsword.passage.Key key)
books
- The Books to read data fromkey
- The key to read from the given bookvoid setCompareBooks(boolean compare)
compare
- org.crosswire.jsword.passage.Key getKey()
void refresh()
void copy()
void addKeyChangeListener(KeyChangeListener listener)
listener
- void removeKeyChangeListener(KeyChangeListener listener)
listener
- void addURIEventListener(URIEventListener listener)
listener
- The listener to addvoid removeURIEventListener(URIEventListener listener)
listener
- The listener to removeComponent getComponent()