public class DefaultParser extends Object implements ExpressionEngine
| Constructor and Description |
|---|
DefaultParser() |
| Modifier and Type | Method and Description |
|---|---|
int |
addCode(String value)
adding code for the javascript to call as needed
|
void |
closeFile()
called on close to do any cleanup
|
void |
dispose() |
int |
execute(FormObject form,
int type,
String code,
int eventType,
char keyPressed)
execute javascript and reset forms values
|
void |
executeFunctions(String jsCode,
FormObject formObject) |
void |
flush()
make sure the contaxt has been exited
|
protected int |
handleAFCommands(FormObject formObject,
String command,
String js,
String[] args,
int eventType,
char keyPressed)
java implementation to provide these functions
|
boolean |
reportError(int code,
Object[] args)
return true if JPedal should do nothing, false if JPedal should execute command as well
|
void |
setAcroRenderer(AcroRenderer acro) |
public int execute(FormObject form, int type, String code, int eventType, char keyPressed)
execute in interface ExpressionEngineform - ie 1 0 Rtype - - defined in ActionHandler (ie K)code - - Javascript stringeventType - - type of event (Keystroke, focus)keyPressed - - if key event, key value , otherwsie spaceprotected int handleAFCommands(FormObject formObject, String command, String js, String[] args, int eventType, char keyPressed)
command - js - args - eventType - keyPressed - public void closeFile()
ExpressionEnginecloseFile in interface ExpressionEnginepublic boolean reportError(int code,
Object[] args)
ExpressionEngineif code == ErrorCodes.JSInvalidRangeFormat then args[1] is the forrmatted message to be displayed
reportError in interface ExpressionEnginepublic int addCode(String value)
ExpressionEngineaddCode in interface ExpressionEnginepublic void executeFunctions(String jsCode, FormObject formObject)
executeFunctions in interface ExpressionEnginepublic void dispose()
dispose in interface ExpressionEnginepublic void setAcroRenderer(AcroRenderer acro)
setAcroRenderer in interface ExpressionEnginepublic void flush()
Copyright © 2017. All rights reserved.