public class JSCoreMethods
extends java.lang.Object
Constructor and Description |
---|
JSCoreMethods() |
Modifier and Type | Method and Description |
---|---|
void |
AFDate_Format(JSEvent event,
int pdf) |
void |
AFDate_FormatEx(JSEvent event,
java.lang.String format)
An implementation of the
AFDate_Format JavaScript method |
void |
AFDate_KeystrokeEx(JSEvent event,
java.lang.String format)
Implementation of the
AFDate_KeystrokeEx JavaScript method |
java.lang.String |
AFMergeChange(JSEvent event)
merges the last change with the uncommitted change
|
void |
AFNumber_Format(JSEvent event,
int dec,
int sep,
int neg,
int dummy,
java.lang.String cursym,
boolean curfirst)
An implementation of the
AFNumber_Format JavaScript method |
java.util.Date |
AFParseDateEx(java.lang.String value,
java.lang.String format)
Attempts to parse a string containing some form of date; returns null
on failure or a Date object on success.
|
void |
AFPercent_Format(JSEvent event,
int dec,
int sep)
An implementation of the
AFPercent_Format JavaScript method |
void |
AFSpecial_Format(JSEvent event,
int psf)
An implementation of the
AFSpecial_Format JavaScript method |
void |
AFSpecial_Keystroke(JSEvent event,
int psf) |
int |
appAlert(java.lang.String message,
int nIcon,
int nType,
java.lang.String cTitle,
java.lang.Object oDoc,
java.lang.Object oCheckbox)
An implementation of the
App.alert() JavaScript method |
void |
appBeep()
An implementation of the
App.beep() JavaScript method |
java.lang.String |
appResponse(java.lang.String message,
java.lang.String cTitle,
java.lang.String cDefault,
boolean bPassword,
java.lang.String cLabel)
An implementation of the
App.response() JavaScript method |
java.lang.String |
appViewerType()
An implementation of the
App.viewerType JavaScript property |
java.lang.String |
appViewerVariation()
An implementation of the
App.viewerVariation JavaScript property |
int |
appViewerVersion()
An implementation of the
App.viewerVersion JavaScript property |
java.lang.Object[] |
colorFromAWT(java.awt.Paint paint)
Convert an AWT Color to a PDF color
|
java.awt.Color |
colorToAWT(java.lang.Object[] pdfcolor)
Convert a PDF Color to an AWT color
|
void |
consoleClear()
An implementation of the
Console.clear() JavaScript method. |
void |
consoleHide()
An implementation of the
Console.hide() JavaScript method. |
void |
consolePrintln(java.lang.String s)
An implementation of the
Console.println() JavaScript method. |
void |
consoleShow()
/**
An implementation of the
Console.show() JavaScript method. |
boolean |
getAppFocusRect()
An implementation of the
App.focusRect JavaScript property (getter) |
boolean |
getAppRuntimeHighlight()
An implementation of the
App.runtimeHighlight JavaScript property (getter) |
java.awt.Color |
getAppRuntimeHighlightColor()
An implementation of the
App.runtimeHighlightColor JavaScript property (getter) |
java.lang.String |
getCustomJavaScript(java.lang.String type,
java.lang.String name)
Return an additional Script to be run on the
App/Init event. |
java.lang.String |
getImplementation() |
void |
notifyForRedraw(java.lang.Object o)
Called when a PDF object has had it's state changed and needs to be rebuilt
|
void |
reportThrowable(java.lang.Throwable e,
java.lang.String filename,
int linenumber)
Print a
Throwable to the Console |
void |
setAppFocusRect(boolean value)
An implementation of the
App.focusRect JavaScript property (setter) |
void |
setAppRuntimeHighlight(boolean value)
An implementation of the
App.runtimeHighlight JavaScript property (setter) |
void |
setAppRuntimeHighlightColor(java.awt.Color value)
An implementation of the
App.runtimeHighlightColor JavaScript property (setter) |
void |
throwCustomException(java.lang.String type,
java.lang.String message) |
public java.lang.String getImplementation()
public java.lang.String getCustomJavaScript(java.lang.String type, java.lang.String name)
App/Init
event.
The default implementation returns null
, which means no extra
JavaScript is run.public void reportThrowable(java.lang.Throwable e, java.lang.String filename, int linenumber)
Throwable
to the Consolepublic void throwCustomException(java.lang.String type, java.lang.String message) throws org.faceless.pdf2.JSCoreMethods.CustomException
org.faceless.pdf2.JSCoreMethods.CustomException
public final void AFNumber_Format(JSEvent event, int dec, int sep, int neg, int dummy, java.lang.String cursym, boolean curfirst)
AFNumber_Format
JavaScript methodpublic final void AFPercent_Format(JSEvent event, int dec, int sep)
AFPercent_Format
JavaScript methodpublic final void AFSpecial_Format(JSEvent event, int psf)
AFSpecial_Format
JavaScript methodpublic final void AFDate_FormatEx(JSEvent event, java.lang.String format)
AFDate_Format
JavaScript methodpublic final void AFDate_Format(JSEvent event, int pdf)
public final void AFDate_KeystrokeEx(JSEvent event, java.lang.String format)
AFDate_KeystrokeEx
JavaScript methodpublic final void AFSpecial_Keystroke(JSEvent event, int psf)
public final java.lang.String AFMergeChange(JSEvent event)
public final java.util.Date AFParseDateEx(java.lang.String value, java.lang.String format)
public void notifyForRedraw(java.lang.Object o)
public final java.lang.Object[] colorFromAWT(java.awt.Paint paint)
public final java.awt.Color colorToAWT(java.lang.Object[] pdfcolor)
public void appBeep()
App.beep()
JavaScript methodpublic int appAlert(java.lang.String message, int nIcon, int nType, java.lang.String cTitle, java.lang.Object oDoc, java.lang.Object oCheckbox)
App.alert()
JavaScript methodpublic java.lang.String appResponse(java.lang.String message, java.lang.String cTitle, java.lang.String cDefault, boolean bPassword, java.lang.String cLabel)
App.response()
JavaScript methodpublic java.lang.String appViewerType()
App.viewerType
JavaScript propertypublic java.lang.String appViewerVariation()
App.viewerVariation
JavaScript propertypublic int appViewerVersion()
App.viewerVersion
JavaScript propertypublic boolean getAppRuntimeHighlight()
App.runtimeHighlight
JavaScript property (getter)public void setAppRuntimeHighlight(boolean value)
App.runtimeHighlight
JavaScript property (setter)public void setAppRuntimeHighlightColor(java.awt.Color value)
App.runtimeHighlightColor
JavaScript property (setter)public java.awt.Color getAppRuntimeHighlightColor()
App.runtimeHighlightColor
JavaScript property (getter)public boolean getAppFocusRect()
App.focusRect
JavaScript property (getter)public void setAppFocusRect(boolean value)
App.focusRect
JavaScript property (setter)public void consoleShow()
Console.show()
JavaScript method.
The default implementation of this method turns on console.println(),
so output goes to System.outpublic void consoleHide()
Console.hide()
JavaScript method.
The default implementation of this method turns off console.println();public void consoleClear()
Console.clear()
JavaScript method.public void consolePrintln(java.lang.String s)
Console.println()
JavaScript method.
The default implementation does nothiing unless console.show()
has been called.Copyright © 2001-2021 Big Faceless Organization