|
XFA4J | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.adobe.xfa.ScriptHandler
com.adobe.xfa.scripthandler.rhino.RhinoScriptHandler
public class RhinoScriptHandler
A class to enable scripting support for the JavaScript language.
| Field Summary |
|---|
| 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 |
|---|
public RhinoScriptHandler(AppModel appModel)
appModel - the application model.
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.| Method Detail |
|---|
public LiveObject newLiveObject(RhinoScriptHandler handler,
Obj xfaObject)
ScriptHandlerIF
newLiveObject in interface ScriptHandlerIFhandler - a Rhino script handler.xfaObject - the XFA object that is peered to this instance.
public LiveComponent newLiveComponent(RhinoScriptHandler handler,
Obj xfaObject)
ScriptHandlerIF
newLiveComponent in interface ScriptHandlerIFhandler - a Rhino script handler.xfaObject - the XFA object (app model) associated with the given script handler.
public java.lang.String languageName()
ScriptHandler
languageName in class ScriptHandlerpublic java.lang.Object argToVariant(Arg arg)
public Arg variantToArg(java.lang.Object variant)
|
XFA4J | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||