public class JpedalDefaultJavascript extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
calculate |
boolean |
runtimeHighlight |
static boolean |
testingSetStaticDate |
static boolean |
testingStopAlertBoxes
added to make the testing be more predictable
|
static String |
viewerType
added for js so that the js can figure out which type of viewer we implement
|
static int |
viewerVersion
added for js so that the js can figure out which version of viewer we implement
|
| Constructor and Description |
|---|
JpedalDefaultJavascript(org.mozilla.javascript.Scriptable scopeItem,
org.mozilla.javascript.Context contextItem) |
| Modifier and Type | Method and Description |
|---|---|
static void |
beep(int type)
tells the system to beep at the user
|
static Map<String,String> |
crackURL(String cURL)
Breaks a URL into its component parts.
|
org.mozilla.javascript.Scriptable |
printd(int index,
org.mozilla.javascript.Scriptable obj)
sorts the date into a prerequisite format based on the index.
|
org.mozilla.javascript.Scriptable |
printd(String format,
org.mozilla.javascript.Scriptable obj)
sorts the date into the string format specified
|
org.mozilla.javascript.Scriptable |
printf(String cFormat,
String[] args)
sorts the arguments passed in into a string defined by the template given in cFormat, %(char) says
what type it should be in.
|
static double |
z(String format,
double value)
formats the given value into the required format
|
public static boolean testingStopAlertBoxes
public static boolean testingSetStaticDate
public static final String viewerType
public static final int viewerVersion
public static int calculate
public boolean runtimeHighlight
public JpedalDefaultJavascript(org.mozilla.javascript.Scriptable scopeItem,
org.mozilla.javascript.Context contextItem)
public org.mozilla.javascript.Scriptable printd(String format, org.mozilla.javascript.Scriptable obj)
longMonth = "mmmm", shortMonth = "mmm", lead0NumberedMonth = "mm", nonLead0NumberedMonth = "m", longDay = "dddd", shortDay= "ddd", lead0NumberedDay = "dd", nonLead0NumberedDay = "d", longYear = "yyyy", shortYear = "yy", lead024Hour = "HH", nonLead024Hour = "H", lead012Hour = "hh", nonLead012Hour ="h", lead0Mins = "MM", nonLead0Mins = "M", lead0Secs = "ss", nonLead0Secs = "s", amPm = "tt", singleDigitAmPm = "t", escapeChar = "\";
returns a javascript string.
public org.mozilla.javascript.Scriptable printd(int index,
org.mozilla.javascript.Scriptable obj)
currently does not work corretly with javascript method calls,
if this method was commented in, it would be called, even for calls to printd(String,Scritable)
returns a javascript string.
public org.mozilla.javascript.Scriptable printf(String cFormat, String[] args)
see page 720 of 'Javascript for Acrobat API reference'
public static Map<String,String> crackURL(String cURL)
public static double z(String format, double value)
public static void beep(int type)
Copyright © 2017. All rights reserved.