|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.app.action.ActionTools
public class ActionTools
Tool class for PDAction
related tasks.
Nested Class Summary | |
---|---|
static class |
ActionTools.ActionDisablement
Handle type for disable/enable action processing |
Field Summary | |
---|---|
static COSName |
DK_JavaScript
The key where we can find the static JavaScripts in the document catalog. |
Constructor Summary | |
---|---|
ActionTools()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final COSName DK_JavaScript
Constructor Detail |
---|
public ActionTools()
Method Detail |
---|
public static TriggerEvent annotationTriggerBlurred(PDAnnotation annotation)
public static TriggerEvent annotationTriggerFocus(PDAnnotation annotation)
public static TriggerEvent annotationTriggerKeystroke(PDAnnotation annotation, String change, boolean willCommit, int commitKey, boolean modifier, int selStart, int selEnd, boolean shift, String value)
public static TriggerEvent annotationTriggerMouseDown(PDAnnotation annotation)
public static TriggerEvent annotationTriggerMouseEnter(PDAnnotation annotation)
public static TriggerEvent annotationTriggerMouseExit(PDAnnotation annotation)
public static TriggerEvent annotationTriggerMouseUp(PDAnnotation annotation)
public static TriggerEvent annotationTriggerPageClose(PDAnnotation annotation)
public static TriggerEvent annotationTriggerPageInvisible(PDAnnotation annotation)
public static TriggerEvent annotationTriggerPageOpen(PDAnnotation annotation)
public static TriggerEvent annotationTriggerPageVisible(PDAnnotation annotation)
public static ActionTools.ActionDisablement disableActions(COSDocument doc, COSName actionType)
doc
to signal that action processing for
the type actionType
should be disabled. This flag is
honoured by the StandardActionProcessor
.
Specify null
as the actionType
to disable
processing of all actions.
doc
- The document for which action processing is switched off.actionType
- The type of actions no longer executed or null
for all action types.
public static void documentProcessModules(PDDocument doc)
public static TriggerEvent documentTriggerClose(PDDocument doc)
public static TriggerEvent documentTriggerDidPrint(PDDocument doc)
public static TriggerEvent documentTriggerDidSave(PDDocument doc)
public static TriggerEvent documentTriggerOpen(PDDocument doc)
public static TriggerEvent documentTriggerWillPrint(PDDocument doc)
public static TriggerEvent documentTriggerWillSave(PDDocument doc)
public static void enableActions(COSDocument doc, ActionTools.ActionDisablement disablement)
doc
to reestablish action processing
for the type actionType
. This flag is honoured by the
StandardActionProcessor
.
You must supply the handle from your call to "disableAction" in
disablement
.
doc
- The document for which action processing is switched off.disablement
- The handle from "disableActions"public static TriggerEvent fieldTriggerCalculate(PDAcroFormField field, String value, PDAcroFormField source)
public static TriggerEvent fieldTriggerFormat(PDAcroFormField field, boolean willCommit, int commitKey, String value)
public static TriggerEvent fieldTriggerValidate(PDAcroFormField field, String value)
public static boolean isEnabled(COSDocument doc, COSName actionType)
true
if execution of an action of type
actionType
should be allowed. This flag is honoured by the
StandardActionProcessor
.
doc
- The document under inspection.actionType
- The type of actions we want to execute.
true
if execution of an action of type
actionType
should be allowed.public static TriggerEvent pageTriggerClose(PDPage page)
public static TriggerEvent pageTriggerOpen(PDPage page)
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |