|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crosswire.bibledesktop.display.ProxyBookDataDisplay
public class ProxyBookDataDisplay
An implementation of BookDataDisplay that simply proxies all requests to an underlying BookDataDisplay.
Useful for chaining a few BookDataDisplays together to add functionality component by component.
for license details.| Field Summary | |
|---|---|
private BookDataDisplay |
proxy
The component to which we proxy |
| Fields inherited from interface org.crosswire.bibledesktop.display.BookDataDisplay |
|---|
COMPARE_BOOKS |
| Constructor Summary | |
|---|---|
ProxyBookDataDisplay(BookDataDisplay proxy)
Setup the proxy |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private BookDataDisplay proxy
| Constructor Detail |
|---|
public ProxyBookDataDisplay(BookDataDisplay proxy)
| Method Detail |
|---|
protected BookDataDisplay getProxy()
public void addKeyChangeListener(KeyChangeListener listener)
BookDataDisplay
addKeyChangeListener in interface BookDataDisplaypublic void removeKeyChangeListener(KeyChangeListener listener)
BookDataDisplay
removeKeyChangeListener in interface BookDataDisplaypublic void propertyChange(PropertyChangeEvent evt)
propertyChange in interface PropertyChangeListenerpublic void addURIEventListener(URIEventListener listener)
BookDataDisplay
addURIEventListener in interface BookDataDisplaylistener - The listener to addpublic void removeURIEventListener(URIEventListener listener)
BookDataDisplay
removeURIEventListener in interface BookDataDisplaylistener - The listener to removepublic void copy()
BookDataDisplay
copy in interface BookDataDisplaypublic Component getComponent()
BookDataDisplay
getComponent in interface BookDataDisplaypublic void clearBookData()
BookDataDisplaysetBookData(null, null).
clearBookData in interface BookDataDisplay
public void setBookData(org.crosswire.jsword.book.Book[] books,
org.crosswire.jsword.passage.Key key)
BookDataDisplay
setBookData in interface BookDataDisplaybooks - The Books to read data fromkey - The key to read from the given bookpublic void setCompareBooks(boolean compare)
BookDataDisplay
setCompareBooks in interface BookDataDisplaypublic void refresh()
BookDataDisplay
refresh in interface BookDataDisplaypublic String toString()
toString in class Objectpublic org.crosswire.jsword.passage.Key getKey()
BookDataDisplay
getKey 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
|
Copyright ยจ 2003-2015 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||