|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectJSCoreMethods
org.faceless.pdf2.viewer2.JSManager
public class JSManager
Handles the Events - primarily JavaScript events - raised during the lifetime of
the viewer. This class will raise the PDF lifetime events defined in the
Acrobat JavaScript Scripting Reference, which may have PDFAction objects
associated with them. These are unrelated to Swing events and to the
DocumentPanelEvent, PagePanelEvent and similar.
We recommend developers and those working with the viewer steer well clear of calling into this class, as the API is subject to change without notice.
| Method Summary | |
|---|---|
int |
appAlert(String message,
int nIcon,
int nType,
String cTitle,
Object oDoc,
Object oCheckbox)
An implementation of the App.alert JavaScript method |
void |
appBeep()
An implementation of the App.beep JavaScript method |
String |
appResponse(String message,
String cTitle,
String cDefault,
boolean bPassword,
String cLabel)
An implementation of the App.response JavaScript method |
void |
consoleClear()
An implementation of the Console.clear JavaScript method |
void |
consoleHide()
An implementation of the Console.hide JavaScript method |
void |
consolePrintln(String message)
An implementation of the Console.println JavaScript method |
void |
consoleShow()
An implementation of the Console.show JavaScript method |
void |
defineObject(String key,
Object value,
String script)
Define an Object in the Global JavaScript namespace. |
String |
getImplementationDescription()
Return a description of the JavaScript implementation in use |
void |
notifyForRedraw(Object o)
Notify the DocumentPanel that a specific Object is suitable for redrawing. |
void |
runEventAppInit()
Raise the App/Init JavaScript method |
boolean |
runEventBatchExec(DocumentPanel panel,
PDF pdf,
String javascript)
Raise the Batch/Exec JavaScript method |
void |
runEventBookmarkMouseUp(DocumentPanel panel,
PDFBookmark bookmark)
Raise the Bookmark/MouseUp JavaScript method |
void |
runEventConsoleExec(String javascript)
Raise the Console/Exec JavaScript method |
void |
runEventDocDidPrint(DocumentPanel panel)
Raise the Doc/DidPrint JavaScript method |
void |
runEventDocDidSave(DocumentPanel panel)
Raise the Doc/DidSave JavaScript method |
void |
runEventDocOpen(DocumentPanel panel,
String targetName)
Raise the Doc/Open JavaScript method |
void |
runEventDocWillClose(DocumentPanel panel)
Raise the Doc/WillClose JavaScript method |
void |
runEventDocWillPrint(DocumentPanel panel)
Raise the Doc/WillPrint JavaScript method |
void |
runEventDocWillSave(DocumentPanel panel)
Raise the Doc/WillSave JavaScript method |
void |
runEventExternalExec(DocumentPanel panel,
String javascript)
Raise the External/Exec JavaScript method |
void |
runEventFieldBlur(DocumentPanel panel,
WidgetAnnotation annot,
boolean shift,
boolean modifier)
Raise the Field/Blur JavaScript method |
boolean |
runEventFieldCalculate(DocumentPanel panel,
WidgetAnnotation target,
WidgetAnnotation source)
Raise the Field/Calculate JavaScript method |
void |
runEventFieldFocus(DocumentPanel panel,
WidgetAnnotation annot,
boolean shift,
boolean modifier)
Raise the Field/Focus JavaScript method |
void |
runEventFieldFormat(DocumentPanel panel,
WidgetAnnotation annot,
int commitKey,
boolean willCommit)
Raise the Field/Format JavaScript method |
boolean |
runEventFieldKeystroke(DocumentPanel panel,
WidgetAnnotation annot,
int commitKey,
String change,
String changeEx,
boolean fieldFull,
boolean keyDown,
boolean modifier,
int selStart,
int selEnd,
boolean shift,
String value,
boolean willCommit)
Raise the Field/Keystroke JavaScript method |
void |
runEventFieldMouseDown(DocumentPanel panel,
WidgetAnnotation annot,
MouseEvent mevent)
Raise the Field/Mouse Down JavaScript method |
void |
runEventFieldMouseEnter(DocumentPanel panel,
WidgetAnnotation annot,
MouseEvent mevent)
Raise the Field/Mouse Enter JavaScript method |
void |
runEventFieldMouseExit(DocumentPanel panel,
WidgetAnnotation annot,
MouseEvent mevent)
Raise the Field/Mouse Exit JavaScript method |
void |
runEventFieldMouseUp(DocumentPanel panel,
WidgetAnnotation annot,
MouseEvent mevent)
Raise the Field/Mouse Up JavaScript method |
boolean |
runEventFieldValidate(DocumentPanel panel,
WidgetAnnotation annot,
String value,
boolean shift,
boolean modifier,
String change,
String changeEx,
boolean keyDown)
Raise the Field/Validate JavaScript method |
void |
runEventLinkMouseUp(DocumentPanel panel,
AnnotationLink annot)
Raise the Link/Mouse Up JavaScript method |
void |
runEventPageClose(DocumentPanel panel,
PDFPage page)
Raise the Page/Close JavaScript method |
void |
runEventPageOpen(DocumentPanel panel,
PDFPage page)
Raise the Page/Open JavaScript method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public String getImplementationDescription()
public void defineObject(String key,
Object value,
String script)
key - the key to bind the optional object to. May be null, in which case no binding takes place.value - the value if bind to the keyscript - the JavaScript to run after the object is defined - may be nullpublic void notifyForRedraw(Object o)
WidgetAnnotation or FormElement has been updated.
o - the Object that is to be redrawn.DocumentPanel.redraw(java.lang.Object)public void appBeep()
App.beep JavaScript method
public void consoleShow()
Console.show JavaScript method
public void consoleHide()
Console.hide JavaScript method
public void consolePrintln(String message)
Console.println JavaScript method
public void consoleClear()
Console.clear JavaScript method
public int appAlert(String message,
int nIcon,
int nType,
String cTitle,
Object oDoc,
Object oCheckbox)
App.alert JavaScript method
public String appResponse(String message,
String cTitle,
String cDefault,
boolean bPassword,
String cLabel)
App.response JavaScript method
public void runEventAppInit()
App/Init JavaScript method
public boolean runEventBatchExec(DocumentPanel panel,
PDF pdf,
String javascript)
Batch/Exec JavaScript method
public void runEventBookmarkMouseUp(DocumentPanel panel,
PDFBookmark bookmark)
Bookmark/MouseUp JavaScript method
public void runEventConsoleExec(String javascript)
Console/Exec JavaScript method
public void runEventDocDidPrint(DocumentPanel panel)
Doc/DidPrint JavaScript method
public void runEventDocDidSave(DocumentPanel panel)
Doc/DidSave JavaScript method
public void runEventDocOpen(DocumentPanel panel,
String targetName)
Doc/Open JavaScript method
public void runEventDocWillClose(DocumentPanel panel)
Doc/WillClose JavaScript method
public void runEventDocWillPrint(DocumentPanel panel)
Doc/WillPrint JavaScript method
public void runEventDocWillSave(DocumentPanel panel)
Doc/WillSave JavaScript method
public void runEventExternalExec(DocumentPanel panel,
String javascript)
External/Exec JavaScript method
public void runEventFieldBlur(DocumentPanel panel,
WidgetAnnotation annot,
boolean shift,
boolean modifier)
Field/Blur JavaScript method
public boolean runEventFieldCalculate(DocumentPanel panel,
WidgetAnnotation target,
WidgetAnnotation source)
Field/Calculate JavaScript method
public void runEventFieldFocus(DocumentPanel panel,
WidgetAnnotation annot,
boolean shift,
boolean modifier)
Field/Focus JavaScript method
public void runEventFieldFormat(DocumentPanel panel,
WidgetAnnotation annot,
int commitKey,
boolean willCommit)
Field/Format JavaScript method
public boolean runEventFieldKeystroke(DocumentPanel panel,
WidgetAnnotation annot,
int commitKey,
String change,
String changeEx,
boolean fieldFull,
boolean keyDown,
boolean modifier,
int selStart,
int selEnd,
boolean shift,
String value,
boolean willCommit)
Field/Keystroke JavaScript method
public void runEventFieldMouseDown(DocumentPanel panel,
WidgetAnnotation annot,
MouseEvent mevent)
Field/Mouse Down JavaScript method
public void runEventFieldMouseEnter(DocumentPanel panel,
WidgetAnnotation annot,
MouseEvent mevent)
Field/Mouse Enter JavaScript method
public void runEventFieldMouseExit(DocumentPanel panel,
WidgetAnnotation annot,
MouseEvent mevent)
Field/Mouse Exit JavaScript method
public void runEventFieldMouseUp(DocumentPanel panel,
WidgetAnnotation annot,
MouseEvent mevent)
Field/Mouse Up JavaScript method
public boolean runEventFieldValidate(DocumentPanel panel,
WidgetAnnotation annot,
String value,
boolean shift,
boolean modifier,
String change,
String changeEx,
boolean keyDown)
Field/Validate JavaScript method
public void runEventLinkMouseUp(DocumentPanel panel,
AnnotationLink annot)
Link/Mouse Up JavaScript method
public void runEventPageOpen(DocumentPanel panel,
PDFPage page)
Page/Open JavaScript method
public void runEventPageClose(DocumentPanel panel,
PDFPage page)
Page/Close JavaScript method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||