|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectPdfObjectContainer
com.crionics.jpdf.action.AbstractAction
com.crionics.jpdf.action.LaunchAction
public class LaunchAction
A launch action launches an application or opens or prints a document.
There are optional entries which allow to include platform-specific parameters for launching a designated application. The current PDF specification only allows parameters for the Windows platform.
| Field Summary | |
|---|---|
static int |
ATT_ARGUMENTS
Attribute used to identify the parameters to be passed to the application if the entry ATT_FILENAMEdesignate an application and not a
document. |
static int |
ATT_DEFAULTDIR
Attribute used to identify a parameter as the default directory in standard DOS syntax. |
static int |
ATT_FILENAME
Attribute used to identify a parameter as the file name of the application to be launched or the document to be opened or printed, in standard Windows pathname format. |
static int |
ATT_OPERATION
Attribute used to identify the operation to launch. |
static java.lang.String |
OP_OPEN
Operation specifying that the document should be opened. |
static java.lang.String |
OP_PRINT
Operation specifying that the document should be printed. |
| Method Summary | |
|---|---|
static LaunchAction |
createInstance(PdfDocument doc)
Allows the creation of a new Action into the Specified document. |
java.lang.String |
getFilename()
Returns the application to be launched or the document to be opened or printed. |
java.lang.String |
getWinAttributes(int attribute)
Allows to recover Windows specific launch attributes (one of the ATT_... ). |
boolean |
isDisplayedInNewWindow()
Determines if the related PDF document should be opened in a new window or not. |
void |
setDisplayedInNewWindow(boolean flag)
Allows to specify of the related PDF document should be opened in a new window or not. |
void |
setFilename(java.lang.String filename)
Sets the application to be launched or the document to be opened or printed. |
void |
setWinAttributes(int attribute,
java.lang.String value)
Allows to Sets Windows specific launch attributes (one of the ATT_... ). |
| Methods inherited from class com.crionics.jpdf.action.AbstractAction |
|---|
getNextAction, hasNextAction, setNextAction |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ATT_ARGUMENTS
ATT_FILENAMEdesignate an application and not a
document.
public static final int ATT_DEFAULTDIR
public static final int ATT_FILENAME
public static final int ATT_OPERATION
public static final java.lang.String OP_OPEN
public static final java.lang.String OP_PRINT
| Method Detail |
|---|
public static LaunchAction createInstance(PdfDocument doc)
throws PdfException,
java.io.IOException
The usage of this method requires the acquision of the Module jPDF Creator or jPDF Template
doc - The Document into which the Action should be created.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public java.lang.String getFilename()
throws PdfException,
java.io.IOException
getWinAttributes(int)
getWinAttributes(int).
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public java.lang.String getWinAttributes(int attribute)
throws PdfException,
java.io.IOException
attribute - The attribute to recover (one of the ATT_... ).
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public boolean isDisplayedInNewWindow()
throws PdfException,
java.io.IOException
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void setDisplayedInNewWindow(boolean flag)
throws PdfException,
java.io.IOException
flag - true to open the document in a new window, false otherwise.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void setFilename(java.lang.String filename)
throws PdfException,
java.io.IOException
filename - The filename of the application/document to be launched,
opened or printed.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void setWinAttributes(int attribute,
java.lang.String value)
throws PdfException,
java.io.IOException
ATT_FILENAMEattribute which is
required, all the others are optionals.
attribute - The attribute to set (one of the ATT_... ).value - A string containing the attibute value to set (see the
description of one of the ATT_... parameters), or null
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||