| com.pspdfkit.ui.outline.BookmarkViewAdapter |
Known Indirect Subclasses
|
Bookmarks adapter for the PdfOutlineView. This interface handles interaction with actual bookmark data for this view as well as events triggered
on the view (for example, bookmark taps, edits, etc.).
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
addBookmarkListener(BookmarkProvider.BookmarkListener listener)
Adds this view to bookmark change events via
BookmarkProvider.BookmarkListener interface. | ||||||||||
| abstract List<Bookmark> |
getBookmarks()
Called to retrieve the list of bookmarks to display.
| ||||||||||
| abstract boolean |
isBookmarkAddButtonEnabled()
Called to determine bookmark add button enabled state.
| ||||||||||
| abstract void |
onBookmarkAdd()
Called when add button has been clicked in this view.
| ||||||||||
| abstract void |
onBookmarkClicked(Bookmark bookmark)
Called when user taps on a bookmark outside editing mode.
| ||||||||||
| abstract void |
onBookmarkNameSet(Bookmark bookmark, String name)
Called when bookmark should be renamed.
| ||||||||||
| abstract void |
onBookmarkPositionSet(Bookmark bookmark, int position)
Called when bookmark has been reordered in this view.
| ||||||||||
| abstract boolean |
onBookmarkRemove(Bookmark bookmark)
Called when user deleted the bookmark from list.
| ||||||||||
| abstract void |
removeBookmarkListener(BookmarkProvider.BookmarkListener listener)
Removes this view from bookmark change events via
BookmarkProvider.BookmarkListener interface. | ||||||||||
Adds this view to bookmark change events via BookmarkProvider.BookmarkListener interface.
Should be passed through to a BookmarkProvider.
Passing null is not allowed, and will result in an exception.
| listener | BookmarkProvider.BookmarkListener that should be notified. Must be non-null. |
|---|
Called to retrieve the list of bookmarks to display.
Called to determine bookmark add button enabled state.
true if add button should be enabled, false if it should be disabled.
Called when add button has been clicked in this view.
Called when user taps on a bookmark outside editing mode.
| bookmark | Bookmark that was tapped. |
|---|
Called when bookmark should be renamed.
| bookmark | Bookmark that has been selected for rename. |
|---|---|
| name | New bookmark name. |
Called when bookmark has been reordered in this view.
| bookmark | Bookmark that has been reordered. |
|---|---|
| position | New bookmark position. |
Called when user deleted the bookmark from list.
| bookmark | Bookmark that was deleted. |
|---|
true if the bookmark should be actually deleted, false if it should be left on the list.
Removes this view from bookmark change events via BookmarkProvider.BookmarkListener interface.
Should be passed through to a BookmarkProvider.
Upon calling this method the listener will no longer be notified of any changes.
If the listener has not been added, this method will be a no-op.
Adding null is not allowed,and will result in an exception.
| listener | BookmarkProvider.BookmarkListener that should be removed. Must be non-null. |
|---|