public abstract class SharedViewer extends Object implements ViewerInt
| Modifier and Type | Field and Description |
|---|---|
static boolean |
closeCalled |
protected Values |
commonValues |
protected Commands |
currentCommands |
protected GUIFactory |
currentGUI |
static boolean |
exitOnClose |
static String |
PREFERENCES_BEAN |
static String |
PREFERENCES_DEFAULT |
static String |
PREFERENCES_NO_GUI |
static String |
PREFERENCES_NO_SIDE_BAR |
static String |
PREFERENCES_OPEN_AND_NAV_ONLY |
| Constructor and Description |
|---|
SharedViewer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addExternalHandler(Map<Integer,Object> newHandler,
int type)
Allows external helper classes to be added to JPedal to alter default functionality.
|
void |
dispose()
run with caution and only at end of usage if you really need
|
Object |
executeCommand(int commandID,
Object[] args)
Execute Jpedal functionality from outside of the library using this method.
|
PdfDecoderInt |
getPdfDecoder() |
GUIFactory |
getSwingGUI()
open the file passed in by user on startup (do not call directly)
USED by our tests
|
void |
handleArguments(String[] args)
Have the viewer handle program arguments
|
protected void |
init(ResourceBundle bundle)
setup the viewer
|
static boolean |
isFX() |
static boolean |
isProcessing() |
void |
loadProperties(InputStream is)
Should be called before setupViewer
|
void |
loadProperties(String props)
Should be called before setupViewer
|
void |
openDefaultFile(String defaultFile)
Allow user to open PDF file to display
|
void |
openDefaultFileAtPage(String defaultFile,
int page)
Allow user to open PDF file to display
|
void |
setRootContainer(Object rootContainer) |
void |
setupViewer()
initialise and run client (default as Application in own Frame)
|
public static final String PREFERENCES_DEFAULT
public static final String PREFERENCES_NO_GUI
public static final String PREFERENCES_NO_SIDE_BAR
public static final String PREFERENCES_OPEN_AND_NAV_ONLY
public static final String PREFERENCES_BEAN
protected Values commonValues
protected GUIFactory currentGUI
protected Commands currentCommands
public static boolean exitOnClose
public static boolean closeCalled
public GUIFactory getSwingGUI()
public void openDefaultFile(String defaultFile)
ViewerIntopenDefaultFile in interface ViewerIntdefaultFile - Allow user to open PDF file to displaypublic void openDefaultFileAtPage(String defaultFile, int page)
ViewerIntopenDefaultFileAtPage in interface ViewerIntdefaultFile - Allow user to open PDF file to displaypage - The page number on with the displayed file will be openpublic PdfDecoderInt getPdfDecoder()
public void setRootContainer(Object rootContainer)
setRootContainer in interface ViewerIntpublic void loadProperties(String props)
loadProperties in interface ViewerIntprops - the set propertiespublic void loadProperties(InputStream is)
is - input of loaded propertiespublic void setupViewer()
setupViewer in interface ViewerIntprotected void init(ResourceBundle bundle)
public void handleArguments(String[] args)
handleArguments in interface ViewerIntargs - :: Program arguments passed into the Viewer.public Object executeCommand(int commandID, Object[] args)
for full details see http://www.idrsolutions.com/access-pdf-viewer-features-from-your-code/
executeCommand in interface ViewerIntcommandID - :: static int value from Commands to spedify which command is wantedargs - :: arguements for the desired commandpublic static boolean isProcessing()
public void addExternalHandler(Map<Integer,Object> newHandler, int type)
addExternalHandler in interface ViewerIntnewHandler - Implementation of interface provided by IDR solutionstype - Defined value into org.jpedal.external.Options classpublic void dispose()
public static boolean isFX()
Copyright © 2017. All rights reserved.