Class OpenRecent
- java.lang.Object
-
- org.faceless.pdf2.viewer2.ViewerFeature
-
- org.faceless.pdf2.viewer2.feature.OpenRecent
-
public class OpenRecent extends ViewerFeature
This feature adds a most-recently-used menu listing the n most recently opened documents. Actuating the menu opens the associated document in the viewer. The name of this feature is OpenRecentThis 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.10.4
-
-
Constructor Summary
Constructors Constructor Description OpenRecent()
Create a new "Open Recent" menu with a default number of itemsOpenRecent(int max)
Create a new "Open Recent" menu with the specified number of items
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initialize(PDFViewer viewer)
Called when the feature is first added to a viewervoid
opened(PDFViewer viewer, File file)
This method is run by the PDFViewer when the specified file is opened.-
Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getFeatureURLProperty, getName, isEnabledByDefault, setFeatureName, teardown, toString
-
-
-
-
Method Detail
-
initialize
public void initialize(PDFViewer viewer)
Description copied from class:ViewerFeature
Called when the feature is first added to a viewer- Overrides:
initialize
in classViewerFeature
-
-