com.qoppa.pdfViewer.actions
Class SubmitFormAction

java.lang.Object
  extended by com.qoppa.pdfViewer.actions.Action
      extended by com.qoppa.pdfViewer.actions.SubmitFormAction

public class SubmitFormAction
extends Action

Action that submits a form.


Field Summary
static String ACTION_TYPE_DESCRIPTION
           
 
Constructor Summary
SubmitFormAction(URL submitURL, int flags)
          Constructs the action with a destination for the form and flags controlling the action.
 
Method Summary
 String getActionType()
          Returns the type of action.
 String getActionTypeDesc()
          Returns the action type description
 com.qoppa.pdf.loObjects.PDFArray getFields()
          Returns the fields that are associated with this submit action.
 int getFlags()
          Returns the flags representing the details of the action.
 URL getSubmitURL()
          Returns the destination of the action.
 void setFields(com.qoppa.pdf.loObjects.PDFArray fields)
          Sets the fields associated with the action.
 String toString()
          Returns the description of the action.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACTION_TYPE_DESCRIPTION

public static String ACTION_TYPE_DESCRIPTION
Constructor Detail

SubmitFormAction

public SubmitFormAction(URL submitURL,
                        int flags)
Constructs the action with a destination for the form and flags controlling the action.

Parameters:
submitURL - The destination for submitting forms.
flags - Flags determining details of the action.
Method Detail

getActionType

public String getActionType()
Description copied from class: Action
Returns the type of action.

Specified by:
getActionType in class Action
Returns:
The action type.

getActionTypeDesc

public String getActionTypeDesc()
Description copied from class: Action
Returns the action type description

Specified by:
getActionTypeDesc in class Action

getSubmitURL

public URL getSubmitURL()
Returns the destination of the action.

Returns:
The destination for submitting a form.

getFlags

public int getFlags()
Returns the flags representing the details of the action.

Returns:
represents the details of the action

getFields

public com.qoppa.pdf.loObjects.PDFArray getFields()
Returns the fields that are associated with this submit action. Depending on the flags, these can be the fields that are or aren't being sent.

Returns:
the fields associated with the action.

setFields

public void setFields(com.qoppa.pdf.loObjects.PDFArray fields)
Sets the fields associated with the action.

Parameters:
fields - associated with the submit action.

toString

public String toString()
Returns the description of the action.

Overrides:
toString in class Object