Interface ScriptingHandler


  • public interface ScriptingHandler
    • Method Detail

      • keyboard

        java.lang.String keyboard​(PDActionJavaScript javaScriptAction,
                                  java.lang.String value)
        Handle the fields keyboard event action.
        Parameters:
        javaScriptAction - the keyboard event action script
        value - the current field value
        Returns:
        the resulting field value
      • format

        java.lang.String format​(PDActionJavaScript javaScriptAction,
                                java.lang.String value)
        Handle the fields format event action.
        Parameters:
        javaScriptAction - the format event action script
        value - the current field value
        Returns:
        the formatted field value
      • validate

        boolean validate​(PDActionJavaScript javaScriptAction,
                         java.lang.String value)
        Handle the fields validate event action.
        Parameters:
        javaScriptAction - the validate event action script
        value - the current field value
        Returns:
        the result of the validity check
      • calculate

        java.lang.String calculate​(PDActionJavaScript javaScriptAction,
                                   java.lang.String value)
        Handle the fields calculate event action.
        Parameters:
        javaScriptAction - the calculate event action script
        value - the current field value
        Returns:
        the result of the field calculation