public class RhinoScriptHandler extends ScriptHandler implements ScriptHandlerIF
ScriptHandler.ScriptExceptionACTIVITY_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, BP_CLEAR, BP_SET, BREAK, CALCULATE, ERR_BadBreakContinue, ERR_FuncBuiltIn, ERR_FuncUnknown, ERR_OK, ERR_Syntax, executeReason_LAST, FEATURE_CAN_BREAK, FEATURE_CAN_HALT, FEATURE_CAN_SET_BREAKPOINT, FEATURE_CAN_STEP_INTO, FEATURE_CAN_STEP_OUT, FEATURE_CAN_STEP_OVER, FEATURE_IS_REMOTE, FEATURE_NONE, HALT, ObjectInteraction_End, ObjectInteraction_Start, PREDICATE, STEP_INTO, STEP_OUT, STEP_OVER, UNSPECIFIED, VALIDATE| Constructor and Description |
|---|
RhinoScriptHandler(AppModel appModel)
Instantiates a JavaScript script handler.
|
RhinoScriptHandler(AppModel appModel,
ScriptDebugger scriptDebugger)
Instantiates a JavaScript script handler.
|
RhinoScriptHandler(AppModel appModel,
ScriptDebugger scriptDebugger,
int javaScriptTimeout) |
| Modifier and Type | Method and Description |
|---|---|
Object |
argToVariant(Arg arg) |
RhinoScriptHandler |
clone()
Clones this JavaScript handler.
|
void |
executeOrSyntaxCheck(String sScript,
Arg oReturnCode,
int eReason,
boolean bSyntaxCheckOnly)
Executes or checks the syntax of the given script.
|
AppModel |
getAppModel() |
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.
|
void |
throwError(ExFull oError) |
Arg |
variantToArg(Object variant) |
boolean |
wasFatalError()
Determines the severity of an error is returned from execute().
|
createScriptHandler, debugBreakPoint, debugCommand, debugGetStack, debugGetVariables, execute, executeReasonToString, executeReasonToXFAEnum, getDebugger, getOption, removeReference, setDebugger, setOption, stringToExecuteReason, syntaxCheckpublic RhinoScriptHandler(AppModel appModel)
appModel - the application model.public RhinoScriptHandler(AppModel appModel, ScriptDebugger scriptDebugger)
appModel - an application model.scriptDebugger - an script debugger.public RhinoScriptHandler(AppModel appModel, ScriptDebugger scriptDebugger, int javaScriptTimeout)
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.public RhinoScriptHandler clone()
clone in class ScriptHandlerpublic LiveObject newLiveObject(RhinoScriptHandler handler, Obj xfaObject)
ScriptHandlerIFnewLiveObject in interface ScriptHandlerIFhandler - a Rhino script handler.xfaObject - the XFA object that is peered to this instance.public LiveComponent newLiveComponent(RhinoScriptHandler handler, Obj xfaObject)
ScriptHandlerIFnewLiveComponent in interface ScriptHandlerIFhandler - a Rhino script handler.xfaObject - the XFA object (app model) associated with the given script handler.public void executeOrSyntaxCheck(String sScript, Arg oReturnCode, int eReason, boolean bSyntaxCheckOnly)
ScriptHandlerexecuteOrSyntaxCheck in class ScriptHandlersScript - the script to execute.oReturnCode - the return value of the script.eReason - the reason for the execution of the script.bSyntaxCheckOnly - the flag to only check syntax when set.public AppModel getAppModel()
public String languageName()
ScriptHandlerlanguageName in class ScriptHandlerpublic void throwError(ExFull oError)
public boolean wasFatalError()
ScriptHandlerwasFatalError in class ScriptHandlerCopyright © 2010 - 2020 Adobe. All Rights Reserved