Class Bookmark
java.lang.Object
org.apache.fop.render.intermediate.extensions.Bookmark
This class is a bookmark element for use in the intermediate format.
-
Constructor Summary
ConstructorDescriptionBookmark
(String title, boolean show, AbstractAction action) Creates a new bookmark. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChildBookmark
(Bookmark bookmark) Adds a child bookmark.Returns the action performed when the bookmark is clicked.Returns a list of child bookmarks.getTitle()
Returns the bookmark's title.boolean
isShown()
Indicates whether the bookmark shall be shown initially.void
setAction
(AbstractAction action) Sets the action performed when the bookmark is clicked.
-
Constructor Details
-
Bookmark
Creates a new bookmark.- Parameters:
title
- the bookmark's titleshow
- true if the bookmark shall be shown, false for hiddenaction
- the action performed when the bookmark is clicked
-
-
Method Details
-
getTitle
Returns the bookmark's title.- Returns:
- the title
-
isShown
public boolean isShown()Indicates whether the bookmark shall be shown initially.- Returns:
- true if it shall be shown
-
getAction
Returns the action performed when the bookmark is clicked.- Returns:
- the action
-
setAction
Sets the action performed when the bookmark is clicked.- Parameters:
action
- the action
-
addChildBookmark
Adds a child bookmark.- Parameters:
bookmark
- the child bookmark
-
getChildBookmarks
Returns a list of child bookmarks.- Returns:
- the child bookmarks
-