|
||||||||||
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.
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
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-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |