XFA4J

com.adobe.xfa.scripthandler.rhino
Class RhinoScriptHandler

java.lang.Object
  extended by com.adobe.xfa.ScriptHandler
      extended by com.adobe.xfa.scripthandler.rhino.RhinoScriptHandler
All Implemented Interfaces:
ScriptHandlerIF

public class RhinoScriptHandler
extends ScriptHandler
implements ScriptHandlerIF

A class to enable scripting support for the JavaScript language.


Field Summary
 
Fields inherited from class com.adobe.xfa.ScriptHandler
ACTIVITY_CHANGE, ACTIVITY_CLICK, ACTIVITY_DOCCLOSE, ACTIVITY_DOCREADY, ACTIVITY_ENTER, ACTIVITY_EXIT, ACTIVITY_FULL, ACTIVITY_INDEXCHANGE, ACTIVITY_INITIALIZE, ACTIVITY_MOUSEDOWN, ACTIVITY_MOUSEENTER, ACTIVITY_MOUSEEXIT, ACTIVITY_MOUSEUP, ACTIVITY_POSTEXECUTE, ACTIVITY_POSTOPEN, ACTIVITY_POSTPRINT, ACTIVITY_POSTSAVE, ACTIVITY_POSTSIGN, ACTIVITY_POSTSUBMIT, ACTIVITY_PREEXECUTE, ACTIVITY_PREOPEN, ACTIVITY_PREPRINT, ACTIVITY_PRESAVE, ACTIVITY_PRESIGN, ACTIVITY_PRESUBMIT, ACTIVITY_READY, ACTIVITY_VALIDATIONSTATE, CALCULATE, PREDICATE, UNSPECIFIED, VALIDATE
 
Constructor Summary
RhinoScriptHandler(AppModel appModel)
          Instantiates a JavaScript script handler.
RhinoScriptHandler(AppModel appModel, ScriptDebugger scriptDebugger, int javaScriptTimeout)
           
 
Method Summary
 java.lang.Object argToVariant(Arg arg)
           
 java.lang.String languageName()
          Gets the name of the scripting language supported by this script handler.
 LiveComponent newLiveComponent(RhinoScriptHandler handler, Obj xfaObject)
          Instantiates a new LiveComponent.
 LiveObject newLiveObject(RhinoScriptHandler handler, Obj xfaObject)
          Instantiates a new LiveObject.
 Arg variantToArg(java.lang.Object variant)
           
 
Methods inherited from class com.adobe.xfa.ScriptHandler
clone, execute
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RhinoScriptHandler

public RhinoScriptHandler(AppModel appModel)
Instantiates a JavaScript script handler.

Parameters:
appModel - the application model.

RhinoScriptHandler

public RhinoScriptHandler(AppModel appModel,
                          ScriptDebugger scriptDebugger,
                          int javaScriptTimeout)
Parameters:
appModel - the application's XFAAppModel.
scriptDebugger - the application's XFAScriptDebugger-derived class.
javaScriptTimeout - the maximum amount of time, in milliseconds, a single script is allowed to execute before it gets timed out. A value of '0' means infinite which also is the default.
Method Detail

newLiveObject

public LiveObject newLiveObject(RhinoScriptHandler handler,
                                Obj xfaObject)
Description copied from interface: ScriptHandlerIF
Instantiates a new LiveObject.

Specified by:
newLiveObject in interface ScriptHandlerIF
Parameters:
handler - a Rhino script handler.
xfaObject - the XFA object that is peered to this instance.
Returns:
the LiveObject.

newLiveComponent

public LiveComponent newLiveComponent(RhinoScriptHandler handler,
                                      Obj xfaObject)
Description copied from interface: ScriptHandlerIF
Instantiates a new LiveComponent.

Specified by:
newLiveComponent in interface ScriptHandlerIF
Parameters:
handler - a Rhino script handler.
xfaObject - the XFA object (app model) associated with the given script handler.
Returns:
the LiveComponent.

languageName

public java.lang.String languageName()
Description copied from class: ScriptHandler
Gets the name of the scripting language supported by this script handler.

Specified by:
languageName in class ScriptHandler
Returns:
the name of the scripting language.

argToVariant

public java.lang.Object argToVariant(Arg arg)

variantToArg

public Arg variantToArg(java.lang.Object variant)

XFA4J

© 2005 Adobe Systems Incorporated. All Rights Reserved.