public class RhinoParser extends DefaultParser
| Constructor and Description |
|---|
RhinoParser(Javascript js) |
| Modifier and Type | Method and Description |
|---|---|
int |
addCode(String value)
add functions to the javascript code to be executed within rhino
|
int |
execute(FormObject form,
int type,
String code,
int eventType,
char keyPressed)
execute javascript and reset forms values
|
void |
executeFunctions(String code,
FormObject ref,
AcroRenderer acro)
store and execute code
|
void |
executeJS(String code,
FormObject ref,
AcroRenderer acro)
should only be called from our Thread code and not by any other access, as it wont work properly
|
void |
flush()
make sure the contaxt has been exited
|
void |
flushJS()
should only be called from our Thread code and not by any other access, as it wont work properly
|
org.mozilla.javascript.Scriptable |
generateJStype(String textString,
boolean returnAsString)
typeToReturn
0 = String,
1 = Double,
-1 = guess
|
void |
setJavaScriptEnded()
NOT TO BE USED, is a dummy method for HTML only, WILL BE DELETED ONE DAY
|
closeFile, dispose, executeFunctions, handleAFCommands, reportError, setAcroRendererpublic RhinoParser(Javascript js)
public void flush()
flush in class DefaultParserpublic void flushJS()
public void setJavaScriptEnded()
public void executeFunctions(String code, FormObject ref, AcroRenderer acro)
public void executeJS(String code, FormObject ref, AcroRenderer acro)
public int addCode(String value)
addCode in interface ExpressionEngineaddCode in class DefaultParserpublic org.mozilla.javascript.Scriptable generateJStype(String textString, boolean returnAsString)
public int execute(FormObject form, int type, String code, int eventType, char keyPressed)
execute in interface ExpressionEngineexecute in class DefaultParserform - ie 1 0 Rtype - - defined in ActionHandler (ie K)code - - Javascript stringeventType - - type of event (Keystroke, focus)keyPressed - - if key event, key value , otherwsie spaceCopyright © 2017. All rights reserved.