JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support

org.jpedal.objects.javascript
Interface ExpressionEngine


public interface ExpressionEngine

allow user to handle expressions with own implementation


Method Summary
 int addCode(java.lang.String value)
          adding code for the javascript to call as needed
 void closeFile()
          called on close to do any cleanup
 void dispose()
           
 int execute(org.jpedal.objects.raw.FormObject ref, org.jpedal.objects.acroforms.rendering.AcroRenderer renderer, int type, java.lang.Object js, int eventType, char keyPressed)
           
 void executeFunctions(java.lang.String jsCode, org.jpedal.objects.acroforms.rendering.AcroRenderer acro)
           
 org.jpedal.objects.javascript.JSParser getJSParser()
           
 boolean reportError(int code, java.lang.Object[] args)
          return true if JPedal should do nothing, false if JPedal should execute command as well if code == ErrorCodes.JSInvalidRangeFormat then args[1] is the forrmatted message to be displayed
 

Method Detail

execute

int execute(org.jpedal.objects.raw.FormObject ref,
            org.jpedal.objects.acroforms.rendering.AcroRenderer renderer,
            int type,
            java.lang.Object js,
            int eventType,
            char keyPressed)
Parameters:
ref - ie 1 0 R
renderer - ref to acrorender so you can access objects
type - - defined in ActionHandler (ie K)
js - - Javascript string
eventType - - type of event (Keystroke, focus)
keyPressed - - if key event, key value , otherwsie space
Returns:
return code (ActionHandler.STOPPROCESSING to ignore JPedal handling)

closeFile

void closeFile()
called on close to do any cleanup


reportError

boolean reportError(int code,
                    java.lang.Object[] args)
return true if JPedal should do nothing, false if JPedal should execute command as well if code == ErrorCodes.JSInvalidRangeFormat then args[1] is the forrmatted message to be displayed


addCode

int addCode(java.lang.String value)
adding code for the javascript to call as needed


executeFunctions

void executeFunctions(java.lang.String jsCode,
                      org.jpedal.objects.acroforms.rendering.AcroRenderer acro)

dispose

void dispose()

getJSParser

org.jpedal.objects.javascript.JSParser getJSParser()

JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support

JPedal 4.74b27 Click here for Tutorials, code examples, help forums and support