org.faceless.pdf2.viewer2.feature
Class FormSubmitActionHandler

java.lang.Object
  extended by org.faceless.pdf2.viewer2.ViewerFeature
      extended by org.faceless.pdf2.viewer2.ActionHandler
          extended by org.faceless.pdf2.viewer2.feature.FormSubmitActionHandler

public class FormSubmitActionHandler
extends ActionHandler

Create a handler to handler "FormSubmit" actions.

The following initialization parameters can be specified to configure this feature.
timeoutThe connection timeout value in milliseconds (0 is infinite)
readTimeoutThe read timeout value in milliseconds (0 is infinite)
The name of this feature is FormSubmitActionHandler

This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.

Since:
2.8.3

Constructor Summary
FormSubmitActionHandler()
          Create a new FormSubmitActionHandler
 
Method Summary
static FormSubmitActionHandler getInstance()
          Deprecated. since 2.11 just calls the public constructor
 void initialize(PDFViewer viewer)
          Called when the feature is first added to a viewer
 boolean matches(DocumentPanel panel, PDFAction action)
          Return true if this ActionFactory can handle the specified PDFAction
 void run(DocumentPanel docpanel, PDFAction action)
          Run the specified action
 void setReadTimeout(int timeout)
          Set the timeout in milliseconds that should be used when reading from a URL.
 void setTimeout(int timeout)
          Set the timeout in milliseconds that should be used when connecting to a URL.
 
Methods inherited from class org.faceless.pdf2.viewer2.ActionHandler
toString
 
Methods inherited from class org.faceless.pdf2.viewer2.ViewerFeature
getAllEnabledFeatures, getAllFeatures, getCustomJavaScript, getFeatureProperty, getName, isEnabledByDefault
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FormSubmitActionHandler

public FormSubmitActionHandler()
Create a new FormSubmitActionHandler

Since:
2.11
Method Detail

getInstance

public static FormSubmitActionHandler getInstance()
Deprecated. since 2.11 just calls the public constructor

Return a FormSubmitActionHandler


matches

public boolean matches(DocumentPanel panel,
                       PDFAction action)
Description copied from class: ActionHandler
Return true if this ActionFactory can handle the specified PDFAction

Specified by:
matches in class ActionHandler

initialize

public void initialize(PDFViewer viewer)
Description copied from class: ViewerFeature
Called when the feature is first added to a viewer

Overrides:
initialize in class ViewerFeature

setTimeout

public void setTimeout(int timeout)
Set the timeout in milliseconds that should be used when connecting to a URL. A value of 0 (the default) means infinite.

Parameters:
timeout - the number of milliseconds to wait while connecting to a URL before timing out

setReadTimeout

public void setReadTimeout(int timeout)
Set the timeout in milliseconds that should be used when reading from a URL. A value of 0 (the default) means infinite.

Parameters:
timeout - the number of milliseconds to wait while reading from a URL before timing out

run

public void run(DocumentPanel docpanel,
                PDFAction action)
Description copied from class: ActionHandler
Run the specified action

Specified by:
run in class ActionHandler
Parameters:
docpanel - the DocumentPanel running the action
action - the action


Copyright © 2001-2009 Big Faceless Organization