public class JSEvent
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static JSEvent |
createAppInit()
Return a new "App/Init" event
|
static JSEvent |
createBatchExec(PDF pdf,
java.lang.String javascript)
Return a new "Batch/Exec" event
|
static JSEvent |
createBookmarkMouseUp(PDFBookmark bookmark)
Return a new "Bookmark/Mouse Up" event
|
static JSEvent |
createConsoleExec(PDF pdf,
java.lang.String javascript)
Return a new "Console/Exec" event
|
static JSEvent |
createDocDidPrint(PDF pdf)
Return a new "Doc/DidPrint" event
|
static JSEvent |
createDocDidSave(PDF pdf)
Return a new "Doc/DidSave" event
|
static JSEvent |
createDocOpen(PDF pdf,
java.lang.String targetName)
Return a new "Doc/Open" event
|
static JSEvent |
createDocWillClose(PDF pdf)
Return a new "Doc/WillClose" event
|
static JSEvent |
createDocWillPrint(PDF pdf)
Return a new "Doc/WillPrint" event
|
static JSEvent |
createDocWillSave(PDF pdf)
Return a new "Doc/WillSave" event
|
static JSEvent |
createExternalExec(java.lang.String javascript)
Return a new "External/Exec" event
|
static JSEvent |
createFieldBlur(WidgetAnnotation annot,
boolean shift,
boolean modifier)
Return a new "Field/Blur" event
|
static JSEvent |
createFieldCalculate(WidgetAnnotation target,
WidgetAnnotation source)
Return a new "Field/Calculate" event
|
static JSEvent |
createFieldFocus(WidgetAnnotation annot,
boolean shift,
boolean modifier)
Return a new "Field/Focus" event
|
static JSEvent |
createFieldFormat(WidgetAnnotation annot,
int commitKey,
boolean willCommit)
Return a new "Field/Format" event
|
static JSEvent |
createFieldKeystroke(WidgetAnnotation annot,
int commitKey,
java.lang.String change,
java.lang.String changeEx,
boolean fieldFull,
boolean keyDown,
boolean modifier,
int selStart,
int selEnd,
boolean shift,
java.lang.String value,
boolean willCommit)
Return a new "Field/Keystroke" event
|
static JSEvent |
createFieldMouseDown(WidgetAnnotation annot,
boolean modifier,
boolean shift)
Return a new "Field/Mouse Down" event
|
static JSEvent |
createFieldMouseEnter(WidgetAnnotation annot,
boolean modifier,
boolean shift)
Return a new "Field/Mouse Enter" event
|
static JSEvent |
createFieldMouseExit(WidgetAnnotation annot,
boolean modifier,
boolean shift)
Return a new "Field/Mouse Exit" event
|
static JSEvent |
createFieldMouseUp(WidgetAnnotation annot,
boolean modifier,
boolean shift)
Return a new "Field/Mouse Up" event
|
static JSEvent |
createFieldValidate(WidgetAnnotation annot,
java.lang.String value,
boolean shift,
boolean modifier,
java.lang.String change,
java.lang.String changeEx,
boolean keyDown)
Return a new "Field/Validate" event
|
static JSEvent |
createLinkMouseUp(AnnotationLink annot)
Return a new "Link/Mouse Up" event
|
static JSEvent |
createPageClose(PDFPage page)
Return a new "Page/Close" event
|
static JSEvent |
createPageOpen(PDFPage page)
Return a new "Page/Open" event
|
java.lang.String |
getChange()
Return the "change" attribute of the event object
|
java.lang.String |
getChangeEx()
Return the "changeEx" attribute of the event object
|
int |
getCommitKey()
Return the "commitKey" attribute of the event object
|
boolean |
getFieldFull()
Return the "fieldFull" attribute of the event object
|
boolean |
getKeyDown()
Return the "keyDown" attribute of the event object
|
boolean |
getModifier()
Return the "modifier" attribute of the event object
|
java.lang.String |
getName()
Return the "name" attribute of the event object
|
boolean |
getRc()
Return the "rc" attribute of the event object
|
int |
getSelEnd()
Return the "selEnd" attribute of the event object
|
int |
getSelStart()
Return the "selStart" attribute of the event object
|
boolean |
getShift()
Return the "shift" attribute of the event object
|
java.lang.Object |
getSource()
Return the "source" attribute of the event object
|
java.lang.Object |
getTarget()
Return the "target" attribute of the event object
|
java.lang.String |
getTargetName()
Return the "targetName" attribute of the event object
|
java.lang.String |
getType()
Return the "type" attribute of the event object
|
java.lang.String |
getValue()
Return the "value" attribute of the event object
|
boolean |
getWillCommit()
Return the "willCommit" attribute of the event object
|
PDFAction |
javaGetAction()
Return the PDFAction to be run by the event object
|
PDF |
javaGetPDF()
Return the PDF this event was raised on, or null if no PDF applies
|
void |
setChange(java.lang.String value)
Set the "change" attribute of the event object
|
void |
setRc(boolean rc)
Set the "rc" attribute of the event object
|
void |
setSelEnd(int value)
Set the "selEnd" attribute of the event object (only for Field/Keystroke)
|
void |
setSelStart(int value)
Set the "selState" attribute of the event object
|
void |
setValue(java.lang.String value)
Set the "value" attribute of the event object
|
java.lang.String |
toString() |
public java.lang.String getChange()
public java.lang.String getChangeEx()
public int getCommitKey()
public boolean getFieldFull()
public boolean getKeyDown()
public boolean getModifier()
public java.lang.String getName()
public boolean getRc()
public int getSelStart()
public int getSelEnd()
public boolean getShift()
public java.lang.Object getSource()
public java.lang.Object getTarget()
public java.lang.String getTargetName()
public java.lang.String getType()
public java.lang.String getValue()
public boolean getWillCommit()
public PDFAction javaGetAction()
public PDF javaGetPDF()
public void setValue(java.lang.String value)
public void setChange(java.lang.String value)
public void setSelStart(int value)
public void setSelEnd(int value)
public void setRc(boolean rc)
public java.lang.String toString()
toString
in class java.lang.Object
public static JSEvent createAppInit()
public static JSEvent createBatchExec(PDF pdf, java.lang.String javascript)
pdf
- the PDF the JavaScript is being run onjavascript
- the JavaScript being runpublic static JSEvent createBookmarkMouseUp(PDFBookmark bookmark)
bookmark
- the Bookmarkpublic static JSEvent createConsoleExec(PDF pdf, java.lang.String javascript)
javascript
- the JavaScript being runpublic static JSEvent createDocDidPrint(PDF pdf)
pdf
- the PDFpublic static JSEvent createDocDidSave(PDF pdf)
pdf
- the PDFpublic static JSEvent createDocOpen(PDF pdf, java.lang.String targetName)
pdf
- the PDFtargetName
- the name of the PDF file.public static JSEvent createDocWillClose(PDF pdf)
pdf
- the PDFpublic static JSEvent createDocWillPrint(PDF pdf)
pdf
- the PDFpublic static JSEvent createDocWillSave(PDF pdf)
pdf
- the PDFpublic static JSEvent createExternalExec(java.lang.String javascript)
javascript
- the JavaScript being runpublic static JSEvent createFieldBlur(WidgetAnnotation annot, boolean shift, boolean modifier)
annot
- the Widgetshift
- the shift propertymodifier
- the modifier propertypublic static JSEvent createFieldCalculate(WidgetAnnotation target, WidgetAnnotation source)
target
- the target Widgetsource
- the source Widgetpublic static JSEvent createFieldFocus(WidgetAnnotation annot, boolean shift, boolean modifier)
annot
- the Widgetshift
- the shift propertymodifier
- the modifier propertypublic static JSEvent createFieldFormat(WidgetAnnotation annot, int commitKey, boolean willCommit)
annot
- the WidgetcommitKey
- the commitKey propertywillCommit
- the willCommit propertypublic static JSEvent createFieldKeystroke(WidgetAnnotation annot, int commitKey, java.lang.String change, java.lang.String changeEx, boolean fieldFull, boolean keyDown, boolean modifier, int selStart, int selEnd, boolean shift, java.lang.String value, boolean willCommit)
annot
- the WidgetcommitKey
- the commitKey propertychange
- the change propertychangeEx
- the changeEx propertyfieldFull
- the fieldFull propertykeyDown
- the keyDown propertymodifier
- the modifier propertyselStart
- the selStart propertyselEnd
- the selEnd propertyshift
- the shift propertyvalue
- the value propertywillCommit
- the willCommit propertypublic static JSEvent createFieldMouseDown(WidgetAnnotation annot, boolean modifier, boolean shift)
annot
- the Widgetmodifier
- the modifier propertyshift
- the shift propertypublic static JSEvent createFieldMouseEnter(WidgetAnnotation annot, boolean modifier, boolean shift)
annot
- the Widgetmodifier
- the modifier propertyshift
- the shift propertypublic static JSEvent createFieldMouseExit(WidgetAnnotation annot, boolean modifier, boolean shift)
annot
- the Widgetmodifier
- the modifier propertyshift
- the shift propertypublic static JSEvent createFieldMouseUp(WidgetAnnotation annot, boolean modifier, boolean shift)
annot
- the Widgetmodifier
- the modifier propertyshift
- the shift propertypublic static JSEvent createFieldValidate(WidgetAnnotation annot, java.lang.String value, boolean shift, boolean modifier, java.lang.String change, java.lang.String changeEx, boolean keyDown)
annot
- the Widgetvalue
- the value propertyshift
- the shift propertymodifier
- the modifier propertychange
- the change propertychangeEx
- the changeEx propertykeyDown
- the keyDown propertypublic static JSEvent createLinkMouseUp(AnnotationLink annot)
annot
- the link objectpublic static JSEvent createPageOpen(PDFPage page)
page
- the pageCopyright © 2001-2021 Big Faceless Organization