|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.crosswire.jsword.book.basic.DefaultBookmark
public class DefaultBookmark
A Bookmark remembers a particular view of one or more Books. What is viewed regarding a book set is either a SearchRequest or a key lookup request.
for license details.
The copyright to this program is held by it's authors.
,
Serialized FormField Summary | |
---|---|
private List |
books
The list of books. |
private String |
lookupRequest
The lookup request. |
private SearchRequest |
searchRequest
The search request. |
private static long |
serialVersionUID
Serialization ID |
Constructor Summary | |
---|---|
DefaultBookmark()
Create an empty default bookmark |
Method Summary | |
---|---|
void |
addBook(Book book)
Add a Book to this Bookmark. |
Object |
clone()
This needs to be declared here so that it is visible as a method on a derived Bookmark. |
BookData |
getBookData()
Convert this Bookmark into a BookData by converting the SearchReqeust or lookup request into a key list. |
List |
getBooks()
Return the ordered set of books. |
String |
getLookupRequest()
Get the lookup request. |
SearchRequest |
getSearchRequest()
Get the SearchRequest for this Bookmark. |
void |
setLookupRequest(String request)
Set the lookup request for this Bookmark. |
void |
setSearchRequest(SearchRequest request)
Set the SearchRequest for this Bookmark. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private List books
private String lookupRequest
private SearchRequest searchRequest
private static final long serialVersionUID
Constructor Detail |
---|
public DefaultBookmark()
Method Detail |
---|
public void addBook(Book book)
Bookmark
addBook
in interface Bookmark
book
- the Book to add.public List getBooks()
Bookmark
getBooks
in interface Bookmark
public void setSearchRequest(SearchRequest request)
Bookmark
setSearchRequest
in interface Bookmark
request
- the SearchRequestpublic SearchRequest getSearchRequest()
Bookmark
getSearchRequest
in interface Bookmark
public void setLookupRequest(String request)
Bookmark
setLookupRequest
in interface Bookmark
request
- the lookup request.public String getLookupRequest()
Bookmark
getLookupRequest
in interface Bookmark
public BookData getBookData()
Bookmark
getBookData
in interface Bookmark
public Object clone()
clone
in interface Bookmark
clone
in class Object
|
Copyright ยจ 2003-2007 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |