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.Get the list of child bookmarks.intGet the page that the bookmark will navigate to.getTitle()Get 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
Get the displayable title of the bookmark. -
setTitle
Set the displayable title of the bookmark.- Parameters:
title- the title
-
getPageNumber
public int getPageNumber()Get the page that the bookmark will navigate to. -
setPageNumber
Set the page that the bookmark will navigate to.- Parameters:
pageNumber- the page number
-
getChildren
Get the list of child bookmarks.- Returns:
- a list
-
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
-