public class OpenFile extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
isPDf |
| Constructor and Description |
|---|
OpenFile() |
| Modifier and Type | Method and Description |
|---|---|
static void |
executeOpenFile(Object[] args,
Values commonValues,
GUISearchWindow searchFrame,
GUIFactory currentGUI,
PdfDecoderInt decode_pdf,
PropertiesFile properties,
GUIThumbnailPanel thumbnails) |
static void |
executeOpenURL(Object[] args,
Values commonValues,
GUISearchWindow searchFrame,
GUIFactory currentGUI,
PdfDecoderInt decode_pdf,
PropertiesFile properties,
GUIThumbnailPanel thumbnails) |
static String[] |
getSupportedExtensionsFilterDescriptions() |
static String[][] |
getSupportedExtensionsFilterValues() |
static boolean |
isSupportedFileExtension(String filename)
Utility method to check if the filename ends in an extension that the Viewer can handle
|
static void |
open(String file,
Values commonValues,
GUISearchWindow searchFrame,
GUIFactory currentGUI,
PdfDecoderInt decode_pdf,
PropertiesFile properties,
GUIThumbnailPanel thumbnails) |
static void |
openFile(String selectedFile,
Values commonValues,
GUISearchWindow searchFrame,
GUIFactory currentGUI,
PdfDecoderInt decode_pdf,
PropertiesFile properties,
GUIThumbnailPanel thumbnails)
checks file can be opened (permission)
|
static boolean |
openUpFile(String selectedFile,
Values commonValues,
GUISearchWindow searchFrame,
GUIFactory currentGUI,
PdfDecoderInt decode_pdf,
PropertiesFile properties,
GUIThumbnailPanel thumbnails)
initial method called to open a new PDF
|
static void |
processPage(Values commonValues,
PdfDecoderInt decode_pdf,
GUIFactory currentGUI,
GUIThumbnailPanel thumbnails)
decode and display selected page
|
static void |
selectFile(Values commonValues,
GUISearchWindow searchFrame,
GUIFactory currentGUI,
PdfDecoderInt decode_pdf,
PropertiesFile properties,
GUIThumbnailPanel thumbnails)
opens a pdf file and calls the display/decode routines
|
public static void executeOpenURL(Object[] args, Values commonValues, GUISearchWindow searchFrame, GUIFactory currentGUI, PdfDecoderInt decode_pdf, PropertiesFile properties, GUIThumbnailPanel thumbnails)
public static void executeOpenFile(Object[] args, Values commonValues, GUISearchWindow searchFrame, GUIFactory currentGUI, PdfDecoderInt decode_pdf, PropertiesFile properties, GUIThumbnailPanel thumbnails)
public static void open(String file, Values commonValues, GUISearchWindow searchFrame, GUIFactory currentGUI, PdfDecoderInt decode_pdf, PropertiesFile properties, GUIThumbnailPanel thumbnails)
public static void openFile(String selectedFile, Values commonValues, GUISearchWindow searchFrame, GUIFactory currentGUI, PdfDecoderInt decode_pdf, PropertiesFile properties, GUIThumbnailPanel thumbnails)
PdfExceptionpublic static boolean openUpFile(String selectedFile, Values commonValues, GUISearchWindow searchFrame, GUIFactory currentGUI, PdfDecoderInt decode_pdf, PropertiesFile properties, GUIThumbnailPanel thumbnails) throws PdfException
PdfExceptionpublic static void selectFile(Values commonValues, GUISearchWindow searchFrame, GUIFactory currentGUI, PdfDecoderInt decode_pdf, PropertiesFile properties, GUIThumbnailPanel thumbnails)
public static void processPage(Values commonValues, PdfDecoderInt decode_pdf, GUIFactory currentGUI, GUIThumbnailPanel thumbnails)
public static boolean isSupportedFileExtension(String filename)
filename - String representing name of the file to openpublic static String[][] getSupportedExtensionsFilterValues()
public static String[] getSupportedExtensionsFilterDescriptions()
Copyright © 2017. All rights reserved.