|
|||||||||
| 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 number
public 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 number
public 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 comparison
public 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 separate
public 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 = SSN
public 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 | ||||||||