|
||||||||||
| 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.SubmitFormAction
public class SubmitFormAction
A Submit Form Action transmits the names and values of selected interactive Form Fields to a specified uniform resource locator (URL), presumably the address of a World Wide Web server that will process them and send back a response.
| Field Summary | |
|---|---|
static int |
ATT_ANNOTATIONS
Attribute which specifies if all annotations in the underlying PDF document, should be submitted or not. |
static int |
ATT_EMBEDFORM
Attribute which specifies that the URL entry of the submitted FDF will be a file specification containing an embedded file stream representing the PDF file from which the FDF is being submitted. |
static int |
ATT_EXCLUDE
Attribute which specifies that all the Form Fields present in the document should be submitted but the ones specified in the Fields Array of this action, and the ones with their NoExport Flags set. |
static int |
ATT_FKEY
Attribute which specifies if the submitted FDF should exclude the URL entry or not. |
static int |
ATT_HTMLFORMAT
Attribute which specifies if the data should be submitted in a HTML Form Format or in a Forms Data Format. |
static int |
ATT_HTTPGET
Attribute which specifies if the data should be submitted using a HTTP GET request or Post request. |
static int |
ATT_INCREMENTAL
Attribute which specifies if the submitted FDF file should includes the contents of all incremental updates. |
static int |
ATT_MOUSEPOS
Attribute which specifies if the coordinates of the mouse click that caused the submitform action are transmitted as part of the form data. |
static int |
ATT_NONUSERANNOT
Attribute which specifies if only those annotations whose names matches the name of the current user, as determined by the remote server to which the form is being submitted. |
static int |
ATT_PDFFORMAT
Attribute which specifies if the document is to be submitted in PDF format, using the MIME content type application/pdf (described in Internet RFC 2045, Multipurpose Internet Mail Extensions (MIME), Part One: Format of Internet Message Bodies). |
static int |
ATT_STDDATE
Attribute which specifies if any submitted field values representing dates should be converted to the standard format adopted by the PDF format. |
static int |
ATT_VALUELESS
Attribute which specifies if all fields designated by the Fields array and the Include/ Exclude flag are submitted, regardless of whether they have a value. |
static int |
ATT_XPDF
Attribute which specifies if field names and values are submitted in XFDF format. |
| Method Summary | |
|---|---|
static SubmitFormAction |
createInstance(PdfDocument doc)
Allows the creation of a new Action into the Specified document. |
AbstractField[] |
getFields()
Recovers the Form Fields which will be submitted or not depending on the attribute ATT_EXCLUDE. |
java.net.URL |
getURL()
Returns the URL which will be used to submit the data. |
boolean |
isAttributeSet(int attributeID)
Returns the current setting (set or not) of the specified attribute. |
void |
setAttribute(int attributeID,
boolean flag)
Sets/Clears the specified attribute. |
void |
setFields(AbstractField[] fields)
Sets the Form Fields which will be submitted or not depending on the attribute ATT_EXCLUDE. |
void |
setFields(java.lang.String[] fieldNames)
Sets the Form Fields which will be submitted or not depending on the attribute ATT_EXCLUDE. |
void |
setURL(java.net.URL url)
Sets the URL which will be used to submit the data. |
| 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_ANNOTATIONS
ATT_XPDFand ATT_HTMLFORMATattributes are clear).
public static final int ATT_EMBEDFORM
ATT_XPDFand ATT_HTMLFORMATattributes are clear).
public static final int ATT_EXCLUDE
public static final int ATT_FKEY
ATT_XPDFand
ATT_HTMLFORMATattributes are clear).
public static final int ATT_HTMLFORMAT
ATT_XPDFand
ATT_PDFFORMATattributes are clear).
public static final int ATT_HTTPGET
ATT_HTMLFORMATis set; if the attribute
ATT_HTMLFORMATis clear, this flag must also be clear.
public static final int ATT_INCREMENTAL
ATT_XPDFand ATT_HTMLFORMATattributes are clear).
public static final int ATT_MOUSEPOS
ATT_HTMLFORMATis set; if the
attribute ATT_HTMLFORMATis clear, this flag must also be
clear.
public static final int ATT_NONUSERANNOT
ATT_XPDFand ATT_HTMLFORMATattributes are
clear).
public static final int ATT_PDFFORMAT
ATT_HTTPGET.
public static final int ATT_STDDATE
public static final int ATT_VALUELESS
public static final int ATT_XPDF
ATT_PDFFORMATflag is clear.
| Method Detail |
|---|
public static SubmitFormAction 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 AbstractField[] getFields()
throws PdfException,
java.io.IOException
ATT_EXCLUDE.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public java.net.URL getURL()
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 boolean isAttributeSet(int attributeID)
throws java.io.IOException,
PdfException
attributeID - The attribute (one of the ATT_... constant of this class).
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void setAttribute(int attributeID,
boolean flag)
throws java.io.IOException,
PdfException
attributeID - The attribute (one of the ATT_... constant of this class) to
set/clear.flag - true to set it, false to clear it.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void setFields(AbstractField[] fields)
throws PdfException,
java.io.IOException
ATT_EXCLUDE.
fields - An array of the fields or null if all the Form Fields present
in the PDF document will be affected by this action.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void setFields(java.lang.String[] fieldNames)
throws PdfException,
java.io.IOException
ATT_EXCLUDE.
fieldNames - The names of the Form Field or null if all the Form Fields
present in the PDF document will be affected by this action.
PdfException - If a problem occured while parsing the document.
java.io.IOException - If a problem occured while parsing the file.
public void setURL(java.net.URL url)
throws PdfException,
java.io.IOException
url - The URL
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 | |||||||||