|
JPedal Java PDF library 4.10b16 API Documentation - http://www.jpedal.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpedal.examples.simpleviewer.SimpleViewer
public class SimpleViewer
Fully featured GUI viewer and demonstration of JPedal's capabilities
This class provides the framework for the Viewer and calls other classes which provide the following
functions:-
Values commonValues - repository for general settings
Printer currentPrinter - All printing functions and access methods to see if printing active
PdfDecoder decode_pdf - PDF library and panel
ThumbnailPanel thumbnails - provides a thumbnail pane down the left side of page - thumbnails can be clicked on to goto page
PropertiesFile properties - saved values stored between sessions
SwingGUI currentGUI - all Swing GUI functions
SearchWindow searchFrame (not GPL) - search Window to search pages and goto references on any page
Commands currentCommands - parses and executes all options
SwingMouseHandler mouseHandler - handles all mouse and related activity
| Field Summary | |
|---|---|
SwingGUI |
currentGUI
general GUI functions |
static boolean |
exitOnClose
tell software to exit on close - default is true |
static java.lang.String |
file
used internally - please do not use |
static java.lang.String |
PREFERENCES_BEAN
|
static java.lang.String |
PREFERENCES_CONTENTEXTRACTOR
|
static java.lang.String |
PREFERENCES_DEFAULT
Location of Preferences Files |
static java.lang.String |
PREFERENCES_NO_GUI
|
static java.lang.String |
PREFERENCES_NO_SIDE_BAR
|
static java.lang.String |
PREFERENCES_OPEN_AND_NAV_ONLY
|
static java.lang.String |
PREFERENCES_PDFHELP
|
static java.lang.String |
PREFERENCES_TABLEZONER
|
static boolean |
showMessages
control if messages appear |
| Constructor Summary | |
|---|---|
SimpleViewer()
setup and run client |
|
SimpleViewer(java.awt.Container rootContainer,
java.lang.String preferencesPath)
setup and run client passing in parameter that points to the preferences file we should use. |
|
SimpleViewer(int modeOfOperation)
setup and run client passing in paramter to show if running as applet, webstart or JSP (only applet has any effect at present) |
|
SimpleViewer(java.lang.String prefs)
setup and run client passing in paramter that points to the preferences file we should use. |
|
| Method Summary | |
|---|---|
void |
addExternalHandler(java.lang.Object newHandler,
int type)
Allows external helper classes to be added to JPedal to alter default functionality. |
void |
dispose()
|
void |
executeCommand(int commandID,
java.lang.Object[] args)
Execute Jpedal functionality from outside of the library using this method. |
SearchList |
getSearchResults()
|
SwingGUI |
getSwingGUI()
open the file passed in by user on startup (do not call directly) |
boolean |
isProcessing()
|
static void |
main(java.lang.String[] args)
main method to run the software as standalone application |
void |
openDefaultFile(java.lang.String defaultFile)
|
void |
openDefaultFileAtPage(java.lang.String defaultFile,
int page)
|
void |
setRootContainer(java.awt.Container rootContainer)
|
void |
setupViewer()
initialise and run client (default as Application in own Frame) |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static boolean showMessages
public SwingGUI currentGUI
public static final java.lang.String PREFERENCES_DEFAULT
public static final java.lang.String PREFERENCES_TABLEZONER
public static final java.lang.String PREFERENCES_CONTENTEXTRACTOR
public static final java.lang.String PREFERENCES_NO_GUI
public static final java.lang.String PREFERENCES_NO_SIDE_BAR
public static final java.lang.String PREFERENCES_OPEN_AND_NAV_ONLY
public static final java.lang.String PREFERENCES_PDFHELP
public static final java.lang.String PREFERENCES_BEAN
public static boolean exitOnClose
public static java.lang.String file
| Constructor Detail |
|---|
public SimpleViewer()
public SimpleViewer(int modeOfOperation)
public SimpleViewer(java.lang.String prefs)
public SimpleViewer(java.awt.Container rootContainer,
java.lang.String preferencesPath)
| Method Detail |
|---|
public SwingGUI getSwingGUI()
public void openDefaultFile(java.lang.String defaultFile)
defaultFile - Allow user to open PDF file to display
public void openDefaultFileAtPage(java.lang.String defaultFile,
int page)
defaultFile - Allow user to open PDF file to displaypublic void setRootContainer(java.awt.Container rootContainer)
public void setupViewer()
public static void main(java.lang.String[] args)
public void executeCommand(int commandID,
java.lang.Object[] args)
commandID - :: static int value from Commands to spedify which command is wantedargs - :: arguements for the desired commandpublic SearchList getSearchResults()
public boolean isProcessing()
public void addExternalHandler(java.lang.Object newHandler,
int type)
newHandler - type - public void dispose()
|
JPedal Java PDF library 4.10b16 API Documentation - http://www.jpedal.org | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||