Package org.jpedal.constants
Class Bookmark
java.lang.Object
org.jpedal.constants.Bookmark
Represents a bookmark (outline) item for a document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd a new child bookmark.Add a new child bookmark.Returns the list of child bookmarks.intReturns the page that the bookmark will navigate to.getTitle()Returns the displayable title of the bookmark.setPageNumber(int pageNumber) Set the page that the bookmark will navigate to.Set the displayable title of the bookmark.
-
Constructor Details
-
Bookmark
Create a new bookmark (outline).To create the root bookmark, use
Bookmarks()- Parameters:
title- the displayable title of the bookmarkpageNumber- the page that the bookmark will navigate to
-
-
Method Details
-
getTitle
Returns the displayable title of the bookmark.- Returns:
- the displayable title of the bookmark
-
setTitle
Set the displayable title of the bookmark.- Parameters:
title- the title
-
getPageNumber
public int getPageNumber()Returns the page that the bookmark will navigate to.- Returns:
- the page that the bookmark will navigate to
-
setPageNumber
Set the page that the bookmark will navigate to.- Parameters:
pageNumber- the page number
-
getChildren
Returns the list of child bookmarks.- Returns:
- the list of child bookmarks
-
addChild
Add a new child bookmark.- Parameters:
child- the bookmark to add- Returns:
- a reference to the added child
-
addChild
Add a new child bookmark.- Parameters:
title- the titlepageNumber- the page number- Returns:
- a reference to the added child
-