Class OutlinePanel
- java.lang.Object
-
- org.faceless.pdf2.viewer2.ViewerFeature
-
- org.faceless.pdf2.viewer2.SidePanelFactory
-
- org.faceless.pdf2.viewer2.feature.OutlinePanel
-
public class OutlinePanel extends SidePanelFactory
Create aSidePanel
that will display the document bookmarks, as returned byPDF.getBookmarks()
. The name of this feature is ShowHideBookmarksThis code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.
- Since:
- 2.8
-
-
Constructor Summary
Constructors Constructor Description OutlinePanel()
Create a new OutlinePanel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SidePanel
createSidePanel()
Create and return a newSidePanel
.boolean
isSidePanelRequired(DocumentPanel docpanel)
Determines whether this side panel is required for this PDF.-
Methods inherited from class org.faceless.pdf2.viewer2.SidePanelFactory
toString
-
Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, initialize, isEnabledByDefault, setFeatureName, teardown
-
-
-
-
Method Detail
-
isSidePanelRequired
public boolean isSidePanelRequired(DocumentPanel docpanel)
Description copied from class:SidePanelFactory
Determines whether this side panel is required for this PDF. By default this method returns true, but an example of where this wouldn't apply is for the Bookmarks panel on a PDF with no bookmarks. Note prior to 2.26, this method took a PDF instead of a DocumentPanel- Overrides:
isSidePanelRequired
in classSidePanelFactory
-
createSidePanel
public SidePanel createSidePanel()
Description copied from class:SidePanelFactory
Create and return a newSidePanel
.- Specified by:
createSidePanel
in classSidePanelFactory
-
-