intarsys PDF library API

de.intarsys.pdf.pd
Class PDActionJavaScript

java.lang.Object
  extended by de.intarsys.pdf.cos.COSBasedObject
      extended by de.intarsys.pdf.pd.PDObject
          extended by de.intarsys.pdf.pd.PDAction
              extended by de.intarsys.pdf.pd.PDActionJavaScript
All Implemented Interfaces:
ICOSObjectListener, IAttributeSupport

public class PDActionJavaScript
extends PDAction

The JavaScript action.

When executed the action executes a user defined JavaScript.


Nested Class Summary
static class PDActionJavaScript.MetaClass
          The meta class implementation
 
Field Summary
static COSName CN_ActionType_JavaScript
           
static COSName DK_JS
           
static PDActionJavaScript.MetaClass META
          The meta class instance
 
Fields inherited from class de.intarsys.pdf.pd.PDAction
CN_Type_Action, DK_Next, DK_S
 
Fields inherited from class de.intarsys.pdf.pd.PDObject
DK_Subtype, DK_Type
 
Method Summary
 COSName cosGetExpectedActionType()
          The action type expected for a PDAction of the instantiated class.
static PDActionJavaScript createNew(String script)
           
static String decodeSource(COSObject cosSource)
           
 String getJavaScript()
           
 void setJavaScript(String newJavaScript)
           
 
Methods inherited from class de.intarsys.pdf.pd.PDAction
addNext, cosGetActionType, getNext, removeNext
 
Methods inherited from class de.intarsys.pdf.pd.PDObject
cosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericChildren, getGenericParent, setGenericParent, toString
 
Methods inherited from class de.intarsys.pdf.cos.COSBasedObject
changed, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, invalidateCaches, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CN_ActionType_JavaScript

public static final COSName CN_ActionType_JavaScript

DK_JS

public static final COSName DK_JS

META

public static final PDActionJavaScript.MetaClass META
The meta class instance

Method Detail

createNew

public static PDActionJavaScript createNew(String script)

decodeSource

public static String decodeSource(COSObject cosSource)

cosGetExpectedActionType

public COSName cosGetExpectedActionType()
Description copied from class: PDAction
The action type expected for a PDAction of the instantiated class.

Specified by:
cosGetExpectedActionType in class PDAction
Returns:
The action type expected for a PDAction of the instantiated class.

getJavaScript

public String getJavaScript()

setJavaScript

public void setJavaScript(String newJavaScript)

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.