org.faceless.pdf2
Class JSEngine

java.lang.Object
  extended by org.faceless.pdf2.JSEngine

public final class JSEngine
extends Object

This class handles the running of all JavaScript on the document. It's not required to read or edit the JavaScript actions the make up a document - it's used to actually run those actions, typically by an interactive application like the PDFViewer. This requires a JavaScript implementation, which means at least Java 1.6 or the use of Mozilla Rhino.

Although this class is public, we recommend the end user steers clear of calling it directly, as it's method signatures are liable to change without notice. The only classes outside this package that require access are in the PDF Viewer.

Since:
2.9

Constructor Summary
JSEngine(JSCoreMethods core)
          Create a new JSEngine
 
Method Summary
 String getImplementationDescription()
           
 String getImplementationType()
           
 boolean runEvent(JSEvent event)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSEngine

public JSEngine(JSCoreMethods core)
Create a new JSEngine

Parameters:
core - the JSCoreMethods implementation to use
Method Detail

getImplementationDescription

public String getImplementationDescription()

getImplementationType

public String getImplementationType()

runEvent

public boolean runEvent(JSEvent event)


Copyright © 2001-2004 Big Faceless Organization