public class

BookmarksCache

extends BaseObservable
java.lang.Object
   ↳ com.pdftron.pdf.widget.base.BaseObservable
     ↳ com.pdftron.pdf.utils.cache.BookmarksCache

Class Overview

Cache used to hold update-to-date state of the bookmark list.

Summary

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

Public Constructors

public BookmarksCache ()

Public Methods

public boolean containsBookmark (int pageNum)

Checks whether the specified page contains a bookmark. If the document is read only, then will check user bookmarks, otherwise check PDF bookmarks.

Parameters
pageNum The page to check for bookmarks
Returns
  • whether the specified page contains a bookmark

public List<UserBookmarkItem> getBookmarkItems ()

public void setBookmarkItems (List<UserBookmarkItem> bookmarkItems)

public void updateCache (PDFViewCtrl pdfViewCtrl, boolean isReadOnly)

Updates the cache with bookmarks from the given PDFViewCtrl

Parameters
pdfViewCtrl The PDFViewCtrl
isReadOnly Whether the document is read only