java.lang.Object | ||
↳ | com.pdftron.pdf.widget.base.BaseObservable | |
↳ | com.pdftron.pdf.utils.cache.BookmarksCache |
Cache used to hold update-to-date state of the bookmark list.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BookmarksCache() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean |
containsBookmark(int pageNum)
Checks whether the specified page contains a bookmark.
| ||||||||||
List<UserBookmarkItem> | getBookmarkItems() | ||||||||||
void | setBookmarkItems(List<UserBookmarkItem> bookmarkItems) | ||||||||||
void |
updateCache(PDFViewCtrl pdfViewCtrl, boolean isReadOnly)
Updates the cache with bookmarks from the given PDFViewCtrl
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.pdf.widget.base.BaseObservable
| |||||||||||
From class
java.lang.Object
|
Checks whether the specified page contains a bookmark. If the document is read only, then will check user bookmarks, otherwise check PDF bookmarks.
pageNum | The page to check for bookmarks |
---|
Updates the cache with bookmarks from the given PDFViewCtrl
pdfViewCtrl | The PDFViewCtrl |
---|---|
isReadOnly | Whether the document is read only |