|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jpedal.examples.simpleviewer.Commands
public class Commands
code to execute the actual commands
| Field Summary | |
|---|---|
static int |
ADD
|
static int |
ADDHEADERFOOTER
|
static int |
AUTOSCROLL
|
static int |
BACKPAGE
|
static int |
BITMAP
|
static int |
BUY
|
static int |
CASCADE
|
static int |
CONTINUOUS
|
static int |
CONTINUOUS_FACING
|
static int |
COPY
|
static int |
DELETE
|
static int |
DESELECTALL
|
static int |
DOCINFO
|
static int |
EXIT
|
static int |
FACING
|
static int |
FBACKPAGE
|
static int |
FFORWARDPAGE
|
static int |
FIND
|
static int |
FIRSTPAGE
|
static int |
FORWARDPAGE
|
static int |
FULLSCREEN
|
static int |
GOTO
|
static int |
HANDOUTS
|
static int |
HELP
|
static int |
HIGHLIGHT
|
static int |
IMAGES
|
static int |
INFO
|
static int |
LASTPAGE
|
static int |
NEXTDOCUMENT
|
static int |
NEXTRESULT
|
static int |
NUP
|
static int |
OPENFILE
|
static int |
OPENURL
|
static int |
PDF
|
static int |
PREFERENCES
|
static int |
PREVIOUSDOCUMENT
|
static int |
PREVIOUSRESULT
|
static int |
PRINT
|
static int |
QUALITY
combo boxes start at 250 |
static int |
ROTATE
|
static int |
ROTATION
|
static int |
RSS
|
static int |
SAVE
|
static int |
SAVEFORM
external/itext menu options start at 500 - add your own CONSTANT here and refer to action using name at ALL times |
static int |
SCALING
|
static int |
SCROLL
|
static int |
SECURITY
|
static int |
SELECTALL
|
static int |
SETCROP
|
static int |
SINGLE
|
static int |
SNAPSHOT
|
static int |
STAMPIMAGE
|
static int |
STAMPTEXT
|
static int |
TEXT
|
static int |
TILE
|
static int |
TIP
|
static int |
UPDATE
|
static int |
UPDATEGUILAYOUT
|
static int |
VISITWEBSITE
|
| Constructor Summary | |
|---|---|
Commands(Values commonValues,
SwingGUI currentGUI,
PdfDecoder decode_pdf,
GUIThumbnailPanel thumbnails,
PropertiesFile properties,
GUISearchWindow searchFrame,
Printer currentPrinter)
|
|
| Method Summary | |
|---|---|
void |
addToRecentDocuments(java.lang.String selectedFile)
|
boolean |
checkForUpdates(boolean showMessages)
|
void |
clearRecentDocuments()
|
java.lang.String |
copySelectedText()
routine to link GUI into text extraction functions |
void |
executeCommand(int ID,
java.lang.Object[] args)
main routine which executes code for current command Values can also be passed in so it can be called from your own code |
void |
extractSelectedScreenAsImage()
extract selected area as a rectangle and show onscreen |
void |
extractSelectedText()
routine to link GUI into text extraction functions |
void |
flush()
routine to remove all objects from temp store |
void |
gotoPage(java.lang.String page)
|
void |
handleUnsaveForms()
warns user forms unsaved and offers save option |
void |
openFile(java.lang.String selectedFile)
checks file can be opened (permission) |
boolean |
openingTransferedFiles()
|
void |
openTransferedFile(java.lang.String file)
|
void |
selectFile()
opens a pdf file and calls the display/decode routines |
void |
setPageProperties(java.lang.Object rotation,
java.lang.Object scaling)
|
void |
setPdfDecoder(PdfDecoder decode_pdf)
|
void |
updateRecentDocuments(java.lang.String[] recentDocs)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int INFO
public static final int BITMAP
public static final int IMAGES
public static final int TEXT
public static final int SAVE
public static final int PRINT
public static final int EXIT
public static final int AUTOSCROLL
public static final int DOCINFO
public static final int OPENFILE
public static final int FIND
public static final int SNAPSHOT
public static final int OPENURL
public static final int VISITWEBSITE
public static final int PREVIOUSDOCUMENT
public static final int NEXTDOCUMENT
public static final int PREVIOUSRESULT
public static final int NEXTRESULT
public static final int TIP
public static final int CASCADE
public static final int TILE
public static final int UPDATE
public static final int PREFERENCES
public static final int COPY
public static final int SELECTALL
public static final int DESELECTALL
public static final int UPDATEGUILAYOUT
public static final int FIRSTPAGE
public static final int FBACKPAGE
public static final int BACKPAGE
public static final int FORWARDPAGE
public static final int FFORWARDPAGE
public static final int LASTPAGE
public static final int GOTO
public static final int SINGLE
public static final int CONTINUOUS
public static final int CONTINUOUS_FACING
public static final int FACING
public static final int FULLSCREEN
public static final int RSS
public static final int HELP
public static final int BUY
public static final int QUALITY
public static final int ROTATION
public static final int SCALING
public static final int SAVEFORM
public static final int PDF
public static final int ROTATE
public static final int DELETE
public static final int ADD
public static final int SECURITY
public static final int ADDHEADERFOOTER
public static final int STAMPTEXT
public static final int STAMPIMAGE
public static final int SETCROP
public static final int NUP
public static final int HANDOUTS
public static final int HIGHLIGHT
public static final int SCROLL
| Constructor Detail |
|---|
public Commands(Values commonValues,
SwingGUI currentGUI,
PdfDecoder decode_pdf,
GUIThumbnailPanel thumbnails,
PropertiesFile properties,
GUISearchWindow searchFrame,
Printer currentPrinter)
| Method Detail |
|---|
public void addToRecentDocuments(java.lang.String selectedFile)
public void executeCommand(int ID,
java.lang.Object[] args)
public void openTransferedFile(java.lang.String file)
throws PdfException
PdfExceptionpublic boolean openingTransferedFiles()
public void handleUnsaveForms()
public void extractSelectedScreenAsImage()
public java.lang.String copySelectedText()
public void extractSelectedText()
public void openFile(java.lang.String selectedFile)
throws PdfException
PdfExceptionpublic void selectFile()
public void gotoPage(java.lang.String page)
public void updateRecentDocuments(java.lang.String[] recentDocs)
public final void flush()
public boolean checkForUpdates(boolean showMessages)
public void setPdfDecoder(PdfDecoder decode_pdf)
public void setPageProperties(java.lang.Object rotation,
java.lang.Object scaling)
public void clearRecentDocuments()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||