|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface represents a Bookmark in a PDF document. A bookmark is essentially a node
on a tree that has a list of actions associated with it and a number of children.
The class implements the TreeNode interface so that it can be used directly
in a JTree.
| Method Summary | |
void |
addAction(Action action)
Adds an Action to this Bookmark |
Bookmark |
addChildBookmark(String title)
Add a child bookmark. |
Enumeration |
children()
Returns the children of the node as an Enumeration. |
Vector |
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. |
int |
getChildCount()
Returns the number of children that this node contains. |
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. |
void |
removeChildBookmark(int index)
Removes a child bookmark from the bookmark |
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. |
| Methods inherited from interface javax.swing.tree.TreeNode |
getAllowsChildren, getChildAt, getIndex, getParent, isLeaf |
| Method Detail |
public Vector getActions()
public void addAction(Action action)
throws PDFException
action - The new action
PDFException
public Bookmark addChildBookmark(String title)
throws PDFException
title - The title of the new child bookmark.
PDFException
public Bookmark insertChildBookmark(String title,
int index)
throws PDFException
title - The title of the new child bookmark.index - index where the new child bookmark will be inserted
PDFExceptionpublic int getChildCount()
getChildCount in interface TreeNodeTreeNode.getChildCount()public Enumeration children()
children in interface TreeNodepublic Bookmark getParentBookmark()
public Bookmark getChildBookmarkAt(int childIndex)
public int getBookmarkIndex(Bookmark bookmark)
public String toString()
public void setTitle(String title)
title - The new title.public String getTitle()
public Color getTextColor()
public void setTextColor(Color textColor)
textColor - The text color.public int getTextStyle()
public void setTextStyle(int textStyle)
textStyle - The text style.
public void removeChildBookmark(int index)
throws PDFException
index - index of the child bookmark to remove
PDFException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||