|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |
java.lang.objectcom.spire.pdf.actions.pdfjavascript
public class pdfjavascript
the adobe built-in javascript
constructor summary | |
---|---|
pdfjavascript()
|
method summary | |
---|---|
static java.lang.string |
getdateformatstring(java.lang.string cformat)
get a afdate_formatex string |
static java.lang.string |
getdatekeystrokestring(java.lang.string cformat)
get a afdate_keystrokeex string |
static java.lang.string |
getnumberformatstring(int ndec,
int sepstyle,
int negstyle,
int currstyle,
java.lang.string strcurrency,
boolean bcurrencyprepend)
get a afnumber_format string |
static java.lang.string |
getnumberkeystrokestring(int ndec,
int sepstyle,
int negstyle,
int currstyle,
java.lang.string strcurrency,
boolean bcurrencyprepend)
get a afnumber_keystroke string |
static java.lang.string |
getpercentformatstring(int ndec,
int sepstyle)
get a afpercent_format string |
static java.lang.string |
getpercentkeystrokestring(int ndec,
int sepstyle)
get a afpercent_keystroke string |
static java.lang.string |
getrangevalidatestring(boolean bgreaterthan,
float ngreaterthan,
boolean blessthan,
float nlessthan)
get a afrange_validate string |
static java.lang.string |
getsimplecalculatestring(java.lang.string cfunction,
java.lang.string... cfields)
get a afsimple_calculate string |
static java.lang.string |
getspecialformatstring(int psf)
get a afspecial_format string |
static java.lang.string |
getspecialkeystrokestring(int psf)
get a afspecial_format string |
static java.lang.string |
gettimeformatstring(int ptf)
get a aftime_format string |
static java.lang.string |
gettimekeystrokestring(int ptf)
get a aftime_keystroke string |
constructor detail |
---|
public pdfjavascript()
method detail |
---|
public static java.lang.string getnumberformatstring(int ndec, int sepstyle, int negstyle, int currstyle, java.lang.string strcurrency, boolean bcurrencyprepend)
ndec
- the number of places after the decimal pointsepstyle
- the integer denoting whether to use a separator or not. if sepstyle=0, use commas. if sepstyle=1, do not separate.negstyle
- the formatting used for negative numbers: 0 = minusblack, 1 = red, 2 = parensblack, 3 = parensredcurrstyle
- the currency style - not usedstrcurrency
- the currency symbolbcurrencyprepend
- true to prepend the currency symbol; false to display on the end of the numberpublic static java.lang.string getnumberkeystrokestring(int ndec, int sepstyle, int negstyle, int currstyle, java.lang.string strcurrency, boolean bcurrencyprepend)
ndec
- the number of places after the decimal pointsepstyle
- the integer denoting whether to use a separator or not. if sepstyle=0, use commas. if sepstyle=1, do not separate.negstyle
- the formatting used for negative numbers: 0 = minusblack, 1 = red, 2 = parensblack, 3 = parensredcurrstyle
- the currency style - not usedstrcurrency
- the currency symbolbcurrencyprepend
- true to prepend the currency symbol; false to display on the end of the numberpublic static java.lang.string getrangevalidatestring(boolean bgreaterthan, float ngreaterthan, boolean blessthan, float nlessthan)
bgreaterthan
- indicate the use of the greater than comparisonngreaterthan
- the value to be used in the greater than comparisonblessthan
- indicate the use of the less than comparisonnlessthan
- the value to be used in the less than comparisonpublic static java.lang.string getpercentformatstring(int ndec, int sepstyle)
ndec
- the number of places after the decimal pointsepstyle
- the integer denoting whether to use a separator or not. if sepstyle=0, use commas. if sepstyle=1, do not separatepublic static java.lang.string getpercentkeystrokestring(int ndec, int sepstyle)
ndec
- the number of places after the decimal pointsepstyle
- the integer denoting whether to use a separator or not. if sepstyle=0, use commas. if sepstyle=1, do not separatepublic static java.lang.string getdateformatstring(java.lang.string cformat)
cformat
- must be one of: "m/d", "m/d/yy", "mm/dd/yy", "mm/yy", "d-mmm", "d-mmm-yy", "dd-mmm-yy", "yymm-dd", "mmm-yy", "mmmm-yy", "mmm d, yyyy", "mmmm d, yyyy", "m/d/yy h:mm tt", "m/d/yy hh:mm"public static java.lang.string getdatekeystrokestring(java.lang.string cformat)
cformat
- must be one of: "m/d", "m/d/yy", "mm/dd/yy", "mm/yy", "d-mmm", "d-mmm-yy", "dd-mmm-yy", "yymm-dd", "mmm-yy", "mmmm-yy", "mmm d, yyyy", "mmmm d, yyyy", "m/d/yy h:mm tt", "m/d/yy hh:mm"public static java.lang.string gettimeformatstring(int ptf)
ptf
- the time format: 0 = 24hr_mm [ 14:30 ], 1 = 12hr_mm [ 2:30 pm ], 2 = 24hr_mm_ss [ 14:30:15 ], 3 = 12hr_mm_ss [ 2:30:15 pm ]public static java.lang.string gettimekeystrokestring(int ptf)
ptf
- the time format: 0 = 24hr_mm [ 14:30 ], 1 = 12hr_mm [ 2:30 pm ], 2 = 24hr_mm_ss [ 14:30:15 ], 3 = 12hr_mm_ss [ 2:30:15 pm ]public static java.lang.string getspecialformatstring(int psf)
psf
- the type of formatting to use:0 = zip code, 1 = zip 4, 2 = phone, 3 = ssnpublic static java.lang.string getspecialkeystrokestring(int psf)
psf
- the type of formatting to use:0 = zip code, 1 = zip 4, 2 = phone, 3 = ssnpublic static java.lang.string getsimplecalculatestring(java.lang.string cfunction, java.lang.string... cfields)
cfunction
- must be one of "avg", "sum", "prd", "min", "max"cfields
- the name list of the fields to use in the calculation
|
|||||||||
prev class next class | frames no frames | ||||||||
summary: nested | field | constr | method | detail: field | constr | method |