|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adobe.acrobat.PDFBookmark
A PDFBookmark corresponds to the PDF Outline (also called bookmark) structure. A bookmark allows a user to access views of a document by name. The activation of a bookmark typically brings up a new view. But it could also includes any PDF actions (e.g., play a sound - not yet supported in the Java version).
Viewer.getRootBookmark()
Method Summary | |
java.util.Vector |
getBookmarks()
Returns a vector of the descendants of this bookmark. |
java.lang.String |
getTitle()
Returns the title of the bookmark. |
boolean |
isLeaf()
Tests if the bookmark is a leaf node, i.e., has no descendants. |
boolean |
isOpen()
Tests if the bookmark should be initially displayed with all of its descendants showing or not. |
boolean |
isRoot()
Tests if the bookmark is the root bookmark. |
void |
performAction(Viewer viewer)
Activates the bookmark, i.e., the PDF action (or PDF destination) associated with this bookmark is activated. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public java.lang.String getTitle() throws java.lang.Exception
public boolean isRoot() throws java.lang.Exception
true
if this is the root bookmarkpublic boolean isOpen() throws java.lang.Exception
true
if this bookmark is "open"public boolean isLeaf() throws java.lang.Exception
true
if this bookmark is a leaf nodepublic void performAction(Viewer viewer) throws java.lang.Exception
viewer
- The viewer in which to display the results of the action.
Note that the PDF document associated with the viewer must be
the same as the one associated with this bookmark.public java.util.Vector getBookmarks() throws java.lang.Exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |