Package org.jpedal.constants
Class Bookmark
java.lang.Object
org.jpedal.constants.Bookmark
Represents a bookmark (outline) item for a document.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
BookmarkCreate a new bookmark (outline).To create the root bookmark, use Bookmarks()- Parameters:
- title- the displayable title of the bookmark
- pageNumber- the page that the bookmark will navigate to
 
 
- 
- 
Method Details- 
getTitleGet the displayable title of the bookmark.
- 
setTitleSet the displayable title of the bookmark.- Parameters:
- title- the title
 
- 
getPageNumberpublic int getPageNumber()Get the page that the bookmark will navigate to.
- 
setPageNumberSet the page that the bookmark will navigate to.- Parameters:
- pageNumber- the page number
 
- 
getChildrenGet the list of child bookmarks.- Returns:
- a list
 
- 
addChildAdd a new child bookmark.- Parameters:
- child- the bookmark to add
- Returns:
- a reference to the added child
 
- 
addChildAdd a new child bookmark.- Parameters:
- title- the title
- pageNumber- the page number
- Returns:
- a reference to the added child
 
 
-