| Modifier and Type | Field and Description |
|---|---|
static int |
AFDate |
static int |
AFNumber |
static int |
AFPercent |
static int |
AFRange |
static int |
AFSimple |
static int |
AFSpecial |
static int |
AFTime |
static int |
CALCULATE |
boolean |
DECIMAL_IS_COMMA |
static int |
FORMAT |
static int |
KEYSTROKE |
static int |
UNKNOWN |
static int |
VALIDATE |
| Constructor and Description |
|---|
JSFunction(AcroRenderer acro,
FormObject formObject) |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
applyRegexp(String text,
String[] patterns)
apply one of more matching patterns and return where a match
|
static String[] |
convertToArray(String js)
turn javascript string into values in an array
|
static void |
debug(String str) |
int |
execute(String js,
String[] args,
int type,
int eventType,
char keyPressed) |
static int |
getStaticDecimalCount() |
static int |
getStaticGapFormat() |
String |
getValue() |
protected static boolean |
isNotNumber(String nextVal) |
String |
parseJSvariables(String arg) |
static void |
setValidDataFormat(int gapFormat,
int decCount)
sets generic values for the gap format and the decimal count
int gapFormat: 0 Comma separated, period decimal point 1 No separator, period decimal point 2 Period separated, comma decimal point 3 No separator, comma decimal point int decCount - the number of decimal places after the decimal point. |
protected static String |
stripQuotes(String arg) |
public static final int AFDate
public static final int AFNumber
public static final int AFPercent
public static final int AFRange
public static final int AFSimple
public static final int AFSpecial
public static final int AFTime
public static final int UNKNOWN
public static final int KEYSTROKE
public static final int VALIDATE
public static final int FORMAT
public static final int CALCULATE
public boolean DECIMAL_IS_COMMA
public JSFunction(AcroRenderer acro, FormObject formObject)
public static void setValidDataFormat(int gapFormat,
int decCount)
if either is -1 it is ignored
public static int getStaticGapFormat()
public static int getStaticDecimalCount()
public static void debug(String str)
protected static String applyRegexp(String text, String[] patterns)
public static String[] convertToArray(String js)
protected static boolean isNotNumber(String nextVal)
public String getValue()
Copyright © 2017. All rights reserved.