public interface Bookmark extends TreeNode
TreeNode interface so that it can be used directly 
 in a JTree.| Modifier and Type | Method and Description | 
|---|---|
void | 
addAction(com.qoppa.pdf.actions.Action action)
Adds an Action to this Bookmark 
 | 
Bookmark | 
addChildBookmark(String title)
Add a child bookmark. 
 | 
Vector<com.qoppa.pdf.actions.Action> | 
getActions()
Gets the list of actions for this Bookmark. 
 | 
int | 
getBookmarkIndex(Bookmark bookmark)
Returns the index of the bookmark node in the node's children. 
 | 
Bookmark | 
getChildBookmarkAt(int childIndex)
Returns the child bookmark at the given index. 
 | 
Vector<Bookmark> | 
getChildren()
Returns the children of the node as a Vector. 
 | 
Bookmark | 
getParentBookmark()
Returns the parent node / Bookmark. 
 | 
Color | 
getTextColor()
Returns the text color that should be used when showing this bookmark. 
 | 
int | 
getTextStyle()
Returns the text style to use when displaying the bookmark. 
 | 
String | 
getTitle()
Gets this bookmarks title. 
 | 
Bookmark | 
insertChildBookmark(String title,
                   int index)
Insert a child bookmark at the given index in the node's children. 
 | 
boolean | 
isOpen()
Returns whether this item is opened or closed when the document is opened. 
 | 
void | 
removeChildBookmark(int index)
Removes a child bookmark from the bookmark 
 | 
void | 
setActions(Vector<com.qoppa.pdf.actions.Action> actions)
Sets the list of actions for this Bookmark. 
 | 
void | 
setOpen(boolean isOpen)
Sets the item as either open or closed when the document is opened. 
 | 
void | 
setTextColor(Color textColor)
Sets the text color to use when displaying this bookmark. 
 | 
void | 
setTextStyle(int textStyle)
Sets the text style to use when displaying this bookmark. 
 | 
void | 
setTitle(String title)
Sets this bookmarks title. 
 | 
String | 
toString()
Returns the title or name of the bookmark. 
 | 
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeafVector<com.qoppa.pdf.actions.Action> getActions()
void addAction(com.qoppa.pdf.actions.Action action)
        throws PDFException
action - The new actionPDFExceptionvoid setActions(Vector<com.qoppa.pdf.actions.Action> actions) throws PDFException
actions - A Vector containing the actions to execute when this bookmark
 is clicked.PDFExceptionBookmark addChildBookmark(String title) throws PDFException
title - The title of the new child bookmark.PDFExceptionBookmark insertChildBookmark(String title, int index) throws PDFException
title - The title of the new child bookmark.index - index where the new child bookmark will be insertedPDFExceptionBookmark getParentBookmark()
Bookmark getChildBookmarkAt(int childIndex)
int getBookmarkIndex(Bookmark bookmark)
String toString()
void setTitle(String title)
title - The new title.String getTitle()
Color getTextColor()
void setTextColor(Color textColor)
textColor - The text color.int getTextStyle()
void setTextStyle(int textStyle)
textStyle - The text style.void removeChildBookmark(int index)
                  throws PDFException
index - index of the child bookmark to removePDFExceptionvoid setOpen(boolean isOpen)
      throws PDFException
PDFExceptionboolean isOpen()