|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfclown.objects.PdfObjectWrapper<PdfDictionary>
org.pdfclown.documents.interaction.actions.Action
org.pdfclown.documents.interaction.actions.JavaScript
@PDF(value=PDF13) public final class JavaScript
'Cause a script to be compiled and executed by the JavaScript interpreter' action [PDF:1.6:8.6.4].
Constructor Summary | |
---|---|
JavaScript(Document context,
String script)
Creates a new action within the given document context. |
Method Summary | |
---|---|
JavaScript |
clone(Document context)
Gets a clone of the object, registered inside the given document context. |
PdfString |
getName()
Gets the object name. |
PdfDirectObject |
getNamedBaseObject()
Gets the object name, if available; otherwise, behaves like getBaseObject() . |
String |
getScript()
Gets the JavaScript script to be executed. |
void |
setScript(String value)
|
Methods inherited from class org.pdfclown.documents.interaction.actions.Action |
---|
getActions, setActions, wrap |
Methods inherited from class org.pdfclown.objects.PdfObjectWrapper |
---|
checkCompatibility, delete, equals, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pdfclown.objects.IPdfObjectWrapper |
---|
getBaseObject |
Constructor Detail |
---|
public JavaScript(Document context, String script)
Method Detail |
---|
public JavaScript clone(Document context)
PdfObjectWrapper
clone
in class Action
context
- Which document the clone has to be registered in.public String getScript()
public void setScript(String value)
getScript()
public PdfString getName()
IPdfNamedObjectWrapper
As names are tipically loosely-coupled with their corresponding PDF objects, name retrieval implies a costly reverse lookup into the document's name tree.
getName
in interface IPdfNamedObjectWrapper
public PdfDirectObject getNamedBaseObject()
IPdfNamedObjectWrapper
getBaseObject()
.
getNamedBaseObject
in interface IPdfNamedObjectWrapper
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |