java.lang.Object | |
↳ | com.pspdfkit.bookmarks.Bookmark |
Represents a bookmark in a PDF document.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Bookmark(int pageIndex)
Creates a new bookmark pointing to a page with generated UUID.
| |||||||||||
Bookmark(String name, int pageIndex)
Creates a new bookmark pointing to a page with generated UUID.
| |||||||||||
Bookmark(String uuid, String name, int pageIndex)
Creates a new bookmark pointing to a page.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized void |
clearDirty()
Marks bookmark not dirty.
| ||||||||||
synchronized int | compareTo(Bookmark bookmark) | ||||||||||
boolean | equals(Object o) | ||||||||||
synchronized String |
getName()
Returns a human-readable description of this bookmark.
| ||||||||||
Integer |
getPageIndex()
Returns page index of the page this bookmark can point to.
| ||||||||||
synchronized Integer |
getSortKey()
Returns an integer determining sort order for this bookmark.
| ||||||||||
String |
getUuid()
Returns UUID of this bookmark.
| ||||||||||
int | hashCode() | ||||||||||
synchronized boolean |
isDirty()
Returns true if this bookmark was changed since document was saved.
| ||||||||||
synchronized void |
setName(String name)
Sets a human-readable description of this bookmark.
| ||||||||||
synchronized void |
setSortKey(int sortKey)
Sets an integer to determine bookmark sort order.
| ||||||||||
synchronized String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Creates a new bookmark pointing to a page with generated UUID.
pageIndex | 0-indexed page index to which this bookmark points to. |
---|
Creates a new bookmark pointing to a page with generated UUID.
name | Human readable name of the bookmark to be displayed in the UI. May be null . |
---|---|
pageIndex | 0-indexed page index to which this bookmark points to. |
Creates a new bookmark pointing to a page.
uuid | Unique ID of the bookmark in the document. A document cannot contain multiple bookmarks with the same UUID. |
---|---|
name | Human readable name of the bookmark to be displayed in the UI. May be null . |
pageIndex | 0-indexed page index to which this bookmark points to. |
Marks bookmark not dirty.
Returns a human-readable description of this bookmark.
null
if there is none.
Returns page index of the page this bookmark can point to. For stored bookmarks which don't
have a page target this returns null
.
null
if it has a non-page target.
Returns an integer determining sort order for this bookmark. Can be null
.
null
if none is set.
Returns true if this bookmark was changed since document was saved.
true
if the bookmark was modified, false
if it wasn't.
Sets a human-readable description of this bookmark.
name | A human-readable description or null to set none.
|
---|
Sets an integer to determine bookmark sort order. If none is set, page number is used for sorting.
sortKey | Integer to determine sort order. |
---|