org.pdfbox.pdmodel.interactive.action.type
Class PDAction
java.lang.Object
org.pdfbox.pdmodel.interactive.action.type.PDAction
- COSObjectable, PDDestinationOrAction
public abstract class PDAction
extends java.lang.Object
This represents an action that can be executed in a PDF document.
COSDictionary | getCOSDictionary() - Convert this standard java object to a COS object.
|
COSBase | getCOSObject() - Convert this standard java object to a COS object.
|
List | getNext() - This will get the next action, or sequence of actions, to be performed after this one.
|
String | getSubType() - This will get the type of action that the actions dictionary describes.
|
String | getType() - This will get the type of PDF object that the actions dictionary describes.
|
void | setNext(List next) - This will set the next action, or sequence of actions, to be performed after this one.
|
void | setSubType(String s) - This will set the type of action that the actions dictionary describes.
|
void | setType(String type) - This will set the type of PDF object that the actions dictionary describes.
|
TYPE
public static final String TYPE
The type of PDF object.
PDAction
public PDAction()
Default constructor.
PDAction
public PDAction(COSDictionary a)
Constructor.
a
- The action dictionary.
getCOSDictionary
public COSDictionary getCOSDictionary()
Convert this standard java object to a COS object.
- The cos object that matches this Java object.
getCOSObject
public COSBase getCOSObject()
Convert this standard java object to a COS object.
- getCOSObject in interface COSObjectable
- The cos object that matches this Java object.
getNext
public List getNext()
This will get the next action, or sequence of actions, to be performed after this one.
The value is either a single action dictionary or an array of action dictionaries
to be performed in order.
- The Next action or sequence of actions.
getSubType
public String getSubType()
This will get the type of action that the actions dictionary describes.
If present, must be Action for an action dictionary.
- The S entry of actions dictionary.
getType
public String getType()
This will get the type of PDF object that the actions dictionary describes.
If present must be Action for an action dictionary.
setNext
public void setNext(List next)
This will set the next action, or sequence of actions, to be performed after this one.
The value is either a single action dictionary or an array of action dictionaries
to be performed in order.
next
- The Next action or sequence of actions.
setSubType
public void setSubType(String s)
This will set the type of action that the actions dictionary describes.
If present, must be Action for an action dictionary.
s
- The new type of action.
setType
public void setType(String type)
This will set the type of PDF object that the actions dictionary describes.
If present must be Action for an action dictionary.
type
- The new Type for the PDF object.