|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.faceless.pdf2.viewer2.ViewerFeature
org.faceless.pdf2.viewer2.feature.OpenRecent
public class OpenRecent
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 OpenRecent
This 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.
Constructor Summary | |
---|---|
OpenRecent()
Create a new "Open Recent" menu with a default number of items |
|
OpenRecent(int max)
Create a new "Open Recent" menu with the specified number of items |
Method Summary | |
---|---|
void |
initialize(PDFViewer viewer)
Called when the feature is first added to a viewer |
void |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OpenRecent()
public OpenRecent(int max)
Method Detail |
---|
public void initialize(PDFViewer viewer)
ViewerFeature
initialize
in class ViewerFeature
public void opened(PDFViewer viewer, File file)
viewer
- the viewerfile
- the File that was opened
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |