Class 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 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 Detail

      • OpenRecent

        public OpenRecent()
        Create a new "Open Recent" menu with a default number of items
      • OpenRecent

        public OpenRecent​(int max)
        Create a new "Open Recent" menu with the specified number of items
    • Method Detail

      • opened

        public void opened​(PDFViewer viewer,
                           File file)
        This method is run by the PDFViewer when the specified file is opened.
        viewer - the viewer
        file - the File that was opened