public class SubmitFormAction extends FormAction
| Modifier and Type | Field and Description |
|---|---|
int |
CANONICAL_FORMAT_BIT
(PDF 1.4) If set, any submitted field values representing dates shall be converted to the standard format
described in 7.9.4, “Dates.”
NOTE
The interpretation of a form field as a date is not specified explicitly in the field itself but only in the JavaScript code that processes it. |
int |
EMBED_FORM_BIT
(PDF 1.5) shall be used only when the form is being submitted in Forms Data Format (that is, when both the XFDF
and ExportFormat flags are clear).
|
int |
EXCL_F_KEY_BIT
(PDF 1.4) shall be used only when the form is being submitted in Forms Data Format (that is, when both the XFDF
and ExportFormat flags are clear).
|
int |
EXCL_NON_USER_ANNOTS_BIT
(PDF 1.4) shall be used only when the form is being submitted in Forms Data Format (that is, when both the XFDF
and ExportFormat flags are clear) and the IncludeAnnotations flag is set.
|
int |
EXPORT_FORMAT_BIT
Meaningful only if the SubmitPDF and XFDF flags are clear.
|
int |
GET_METHOD_BIT
If set, field names and values shall be submitted using an HTTP GET request.
|
int |
INCLUDE_ANNOTATIONS_BIT
(PDF 1.4) shall be used only when the form is being submitted in Forms Data Format (that is, when both the XFDF a
nd ExportFormat flags are clear).
|
int |
INCLUDE_APPEND_SAVES_BIT
(PDF 1.4) shall be used only when the form is being submitted in Forms Data Format (that is, when both the
XFDF and ExportFormat flags are clear).
|
int |
INCLUDE_EXCLUDE_BIT
If clear, the Fields array (see Table 236) specifies which fields to include in the submission.
|
int |
INCLUDE_NO_VALUE_FIELDS_BIT
If set, all fields designated by the Fields array and the Include/Exclude flag shall be submitted, regardless
of whether they have a value (V entry in the field dictionary).
|
int |
SUBMIT_COORDINATES_BIT
If set, the coordinates of the mouse click that caused the submit-form action shall be transmitted as part of
the form data.
|
int |
SUBMIT_PDF_BIT
(PDF 1.4) If set, the document shall be submitted as PDF, using the MIME content type application/pdf (described
in Internet RFC 2045, Multipurpose Internet Mail Extensions (MIME), Part One: Format of Internet Message Bodies;
see the Bibliography).
|
int |
XFDF_BIT
(PDF 1.4) shall be used only if the SubmitPDF flags are clear.
|
F_KEY, FIELDS_KEY, FLAGS_KEYACTION_TYPE, ACTION_TYPE_GOTO, ACTION_TYPE_GOTO_REMOTE, ACTION_TYPE_JAVA_SCRIPT, ACTION_TYPE_KEY, ACTION_TYPE_LAUNCH, ACTION_TYPE_NAMED, ACTION_TYPE_RESET_SUBMIT, ACTION_TYPE_SUBMIT_SUBMIT, ACTION_TYPE_URI, NEXT_KEYentries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY| Constructor and Description |
|---|
SubmitFormAction(Library l,
java.util.HashMap h) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
descendFormTree(java.lang.Object formNode,
java.util.HashMap<java.lang.String,java.lang.String> params)
Dive into the hierarchy to get the name value pairs of the fields.
|
int |
executeFormAction(int x,
int y)
Execute the form submission.
|
java.util.List |
getFields()
An array identifying which fields to reset or which to exclude from
resetting, depending on the setting of the Include/Exclude flag in the
Flags entry (see Table 239).
|
FileSpecification |
getFileSpecification() |
boolean |
isCanonicalFormat() |
boolean |
isEmbedForm() |
boolean |
isExcludeFKey() |
boolean |
isExcludeNonUserAnnots() |
boolean |
isExportFormat() |
boolean |
isGetMethod() |
boolean |
isIncludeAnnotations() |
boolean |
isIncludeAppendSaves() |
boolean |
isIncludeExclude() |
boolean |
isIncludeNoValueFields() |
boolean |
isSubmitCoordinates() |
boolean |
isSubmitPDF() |
boolean |
isXFDF() |
getFlagsbuildAction, getType, similargetEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toStringpublic int INCLUDE_EXCLUDE_BIT
public int INCLUDE_NO_VALUE_FIELDS_BIT
public int EXPORT_FORMAT_BIT
public int GET_METHOD_BIT
public int SUBMIT_COORDINATES_BIT
public int XFDF_BIT
public int INCLUDE_APPEND_SAVES_BIT
public int INCLUDE_ANNOTATIONS_BIT
public int SUBMIT_PDF_BIT
public int CANONICAL_FORMAT_BIT
public int EXCL_NON_USER_ANNOTS_BIT
public int EXCL_F_KEY_BIT
public int EMBED_FORM_BIT
public SubmitFormAction(Library l, java.util.HashMap h)
public java.util.List getFields()
public FileSpecification getFileSpecification()
public int executeFormAction(int x,
int y)
executeFormAction in class FormActionx - x-coordinate of the mouse event that actuated the submit.y - y-coordinate of the mouse event that actuated the submit.protected void descendFormTree(java.lang.Object formNode,
java.util.HashMap<java.lang.String,java.lang.String> params)
formNode - root form node.params - name value pars of form fields.public boolean isIncludeExclude()
INCLUDE_EXCLUDE_BITpublic boolean isIncludeNoValueFields()
INCLUDE_NO_VALUE_FIELDS_BITpublic boolean isExportFormat()
EXPORT_FORMAT_BITpublic boolean isGetMethod()
GET_METHOD_BITpublic boolean isSubmitCoordinates()
SUBMIT_COORDINATES_BITpublic boolean isXFDF()
SUBMIT_COORDINATES_BITpublic boolean isIncludeAppendSaves()
INCLUDE_APPEND_SAVES_BITpublic boolean isIncludeAnnotations()
INCLUDE_ANNOTATIONS_BITpublic boolean isSubmitPDF()
SUBMIT_PDF_BITpublic boolean isCanonicalFormat()
CANONICAL_FORMAT_BITpublic boolean isExcludeNonUserAnnots()
EXCL_NON_USER_ANNOTS_BITpublic boolean isExcludeFKey()
EXCL_F_KEY_BITpublic boolean isEmbedForm()
EMBED_FORM_BIT