public class Bookmark extends Object
Bookmarks are arranged and navigated in a parent/child node hierarchy, similar to an HTML DOM.
Constructor and Description |
---|
Bookmark(String text,
int pageIndex,
String parentBookmarkText,
BookmarkDestinations destinationType,
String nextBookmarkText,
String previousBookmarkText)
Instantiates a new Bookmark.
|
Modifier and Type | Method and Description |
---|---|
Bookmark |
AddChildBookmark(String text,
int pageIndex)
Add a new bookmark as a first child of this bookmark.
|
void |
addNextBookmark(String text,
int pageIndex)
Add a new bookmark after this bookmark
|
void |
AddPreviousBookmark(String text,
int pageIndex)
Add a new bookmark before this bookmark
|
BookmarkManager |
getBookmarkManager()
Gets bookmark manager.
|
BookmarkDestinations |
getDestinationType()
Gets destination type.
|
String |
getNextBookmarkText()
Gets next bookmark text.
|
int |
getPageIndex()
Gets page index.
|
String |
getParentBookmarkText()
Gets parent bookmark text.
|
String |
getPreviousBookmarkText()
Gets previous bookmark text.
|
String |
getText()
Gets text.
|
void |
setText(String value)
Sets text.
|
public Bookmark(@Nonnull String text, int pageIndex, @Nullable String parentBookmarkText, BookmarkDestinations destinationType, @Nullable String nextBookmarkText, @Nullable String previousBookmarkText)
text
- the display text of the bookmarkpageIndex
- the zero based page number that the bookmark links to.parentBookmarkText
- the text of parent bookmark which contains this bookmark. Null if it is root bookmark.destinationType
- the type of destination represented by the bookmarknextBookmarkText
- the text of next bookmark at the current level, if any. Null if it is last bookmark.previousBookmarkText
- the previous bookmark at the current level, if any. Null if it is first bookmark.public final BookmarkDestinations getDestinationType()
public final String getNextBookmarkText()
public final int getPageIndex()
public final BookmarkManager getBookmarkManager()
BookmarkManager
public final void addNextBookmark(String text, int pageIndex)
text
- the display text of the bookmarkpageIndex
- the zero based page number that the bookmark links to.public final String getParentBookmarkText()
public final String getText()
public final void setText(String value)
value
- the valuepublic final void AddPreviousBookmark(String text, int pageIndex)
text
- the display text of the bookmarkpageIndex
- the zero based page number that the bookmark links to.public final String getPreviousBookmarkText()
public final Bookmark AddChildBookmark(String text, int pageIndex)
To add a bookmark as a second child, please navigate to the childBookmark object and call AddNextBookmark.
text
- the display text of the bookmarkpageIndex
- the zero based page number that the bookmark links to.Copyright © 2022–2023 Iron Software. All rights reserved.