|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.bibledesktop.display.proxy.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 functionallity component by component.
for license details.
The copyright to this program is held by it's authors.
Field Summary | |
---|---|
private BookDataDisplay |
proxy
The component to which we proxy |
Constructor Summary | |
---|---|
ProxyBookDataDisplay(BookDataDisplay proxy)
Setup the proxy |
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 |
protected BookDataDisplay |
getProxy()
Accessor for the proxy |
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. |
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 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 void copy()
BookDataDisplay
copy
in interface BookDataDisplay
public Component getComponent()
BookDataDisplay
getComponent
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 String toString()
toString
in class Object
public Key getKey()
BookDataDisplay
getKey
in interface BookDataDisplay
public Book getBook()
BookDataDisplay
getBook
in interface BookDataDisplay
|
Copyright ยจ 2003-2006 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |