public class ProxyBookDataDisplay extends Object implements BookDataDisplay
Useful for chaining a few BookDataDisplays together to add functionality component by component.
for license details.| Modifier and Type | Field and Description |
|---|---|
private BookDataDisplay |
proxy
The component to which we proxy
|
COMPARE_BOOKS| Constructor and Description |
|---|
ProxyBookDataDisplay(BookDataDisplay proxy)
Setup the proxy
|
| 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
|
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
|
protected BookDataDisplay |
getProxy()
Accessor for the proxy
|
void |
propertyChange(PropertyChangeEvent evt) |
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.
|
String |
toString() |
private BookDataDisplay proxy
public ProxyBookDataDisplay(BookDataDisplay proxy)
protected BookDataDisplay getProxy()
public void addKeyChangeListener(KeyChangeListener listener)
BookDataDisplayaddKeyChangeListener in interface BookDataDisplaypublic void removeKeyChangeListener(KeyChangeListener listener)
BookDataDisplayremoveKeyChangeListener in interface BookDataDisplaypublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic void addURIEventListener(URIEventListener listener)
BookDataDisplayaddURIEventListener in interface BookDataDisplaylistener - The listener to addpublic void removeURIEventListener(URIEventListener listener)
BookDataDisplayremoveURIEventListener in interface BookDataDisplaylistener - The listener to removepublic void copy()
BookDataDisplaycopy in interface BookDataDisplaypublic Component getComponent()
BookDataDisplaygetComponent in interface BookDataDisplaypublic void clearBookData()
BookDataDisplaysetBookData(null, null).clearBookData in interface BookDataDisplaypublic void setBookData(org.crosswire.jsword.book.Book[] books,
org.crosswire.jsword.passage.Key key)
BookDataDisplaysetBookData in interface BookDataDisplaybooks - The Books to read data fromkey - The key to read from the given bookpublic void setCompareBooks(boolean compare)
BookDataDisplaysetCompareBooks in interface BookDataDisplaypublic void refresh()
BookDataDisplayrefresh in interface BookDataDisplaypublic org.crosswire.jsword.passage.Key getKey()
BookDataDisplaygetKey in interface BookDataDisplaypublic org.crosswire.jsword.book.Book[] getBooks()
getBooks in interface org.crosswire.jsword.book.BookProviderpublic org.crosswire.jsword.book.Book getFirstBook()
getFirstBook in interface org.crosswire.jsword.book.BookProvider