|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.qoppa.pdf.Bookmark
This class represents a Bookmark in a PDF document. The class 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 |
abstract Bookmark |
addChild(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. |
boolean |
getAllowsChildren()
Returns true if the node allows children. |
TreeNode |
getChildAt(int childIndex)
Returns the child at the given index. |
int |
getChildCount()
Returns the number of children that this node contains. |
int |
getIndex(TreeNode node)
Returns the index of node in the node's children. |
TreeNode |
getParent()
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. |
boolean |
isLeaf()
Returns true if the receiver is a leaf. |
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 class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public Vector getActions()
public void addAction(Action action)
throws PDFException
action - The new action
PDFException
public abstract Bookmark addChild(String title)
throws PDFException
title - The title of the new child bookmark.
PDFExceptionpublic int getChildCount()
getChildCount in interface TreeNodeTreeNode.getChildCount()public boolean getAllowsChildren()
getAllowsChildren in interface TreeNodeTreeNode.getAllowsChildren()public boolean isLeaf()
isLeaf in interface TreeNodeTreeNode.isLeaf()public Enumeration children()
children in interface TreeNodeTreeNode.children()public TreeNode getParent()
getParent in interface TreeNodeTreeNode.getParent()public TreeNode getChildAt(int childIndex)
getChildAt in interface TreeNodeTreeNode.getChildAt(int)public int getIndex(TreeNode node)
getIndex in interface TreeNodeTreeNode.getIndex(javax.swing.tree.TreeNode)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.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||