Interface ActionHandler
- All Known Implementing Classes:
DefaultActionHandler,org.jpedal.objects.acroforms.actions.EmptyActionHandler
public interface ActionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionvoidA(Object e, FormObject formObject, int eventType) A action when pressed in active area ?voidBl(Object e, FormObject formObj) Bl action when input focus lostvoidC(FormObject formObject) C action when another field changes (recalculate this field) [javascript] should not be called other than from internal methods to action changes on other fields.voidC(org.jpedal.objects.raw.PageObject pageObject) C action when a page closesvoidvoidD(Object e, FormObject formObj) D action when cursor button pressed inside active areavoidDP(org.jpedal.objects.raw.PdfObject rootObject) DP action, when the document is done printingvoidDS(org.jpedal.objects.raw.PdfObject rootObject) DS action, when the document is done savingvoidE(Object e, FormObject formObject) E action when cursor enters active areavoidF(FormObject formObject) F the display formatting of the field (e.g 2 decimal places) [javascript]voidFo(Object e, FormObject formObj) Fo action on input focusorg.jpedal.objects.layers.PdfLayerListintgotoDest(org.jpedal.objects.raw.PdfObject aobj, int mouseclicked, int dest) voidinit(PdfDecoderInt panel, org.jpedal.objects.Javascript javascript, org.jpedal.objects.acroforms.AcroRenderer defaultAcroRenderer) intK(Object e, FormObject formObject, int actionID) K action on - [javascript] keystroke in textfield or combobox modifys the list box selection (can access the keystroke for validity and reject or modify)voidO(org.jpedal.objects.raw.PdfObject pdfObject, int type) O action when page containing is opened,voidOpenAction(org.jpedal.objects.raw.PdfObject rootObject) OpenAction, when the PDF is openedvoidPC(org.jpedal.objects.raw.PdfObject pdfObject, int type) PC action when page is closedvoidPI(org.jpedal.objects.raw.PdfObject pdfObject, int type) PI action when no longer visible in viewervoidPO(org.jpedal.objects.raw.PdfObject pdfObject, int type) PO action when page containing is opened, action O from page dictionary, and OpenAction in document catalog should be done firstvoidprocessDocumentActions(org.jpedal.io.PdfObjectReader currentPdfFile) Provides an opportunity for the ActionHandler to process all document actionsvoidprocessFieldActions(FormObject formObject) Provides an opportunity for the ActionHandler to process field actionsvoidprocessOutlinesActions(org.jpedal.objects.raw.PdfObject outlines) Provides an opportunity for the ActionHandler to process all outline actionsvoidprocessPageActions(org.jpedal.io.PdfObjectReader currentPdfFile, int page) Provides an opportunity for the ActionHandler to process page actionsvoidPV(org.jpedal.objects.raw.PdfObject pdfObject, int type) PV action on viewing containing pagesetup hand cursor when hovering and reset, on exitingvoidU(Object e, FormObject formObj) U action when cursor button released inside active areavoidV(Object e, FormObject formObject, int actionID) V action when fields value is changed [javascript]voidWC(org.jpedal.objects.raw.PdfObject rootObject) WC action, when the document will closevoidWP(org.jpedal.objects.raw.PdfObject rootObject) WP action, when the document will printvoidWS(org.jpedal.objects.raw.PdfObject rootObject) WS action, when the document will savevoidX(Object e, FormObject formObject) X action when cursor exits active area
-
Field Details
-
MOUSEPRESSED
static final int MOUSEPRESSED- See Also:
-
MOUSERELEASED
static final int MOUSERELEASED- See Also:
-
MOUSECLICKED
static final int MOUSECLICKED- See Also:
-
MOUSEENTERED
static final int MOUSEENTERED- See Also:
-
MOUSEEXITED
static final int MOUSEEXITED- See Also:
-
FOCUS_EVENT
static final int FOCUS_EVENT- See Also:
-
TODO
static final int TODO- See Also:
-
NOMESSAGE
static final int NOMESSAGE- See Also:
-
REJECTKEY
static final int REJECTKEY- See Also:
-
STOPPROCESSING
static final int STOPPROCESSING- See Also:
-
VALUESCHANGED
static final int VALUESCHANGED- See Also:
-
-
Method Details
-
A
A action when pressed in active area ?some others should now be ignored?- Parameters:
e- Object contained by the actionformObject- - Actual formObject containing dataeventType- - type of event (Keystroke, focus)
-
E
E action when cursor enters active area- Parameters:
e- Object contained by the actionformObject- - Actual formObject containing data
-
X
X action when cursor exits active area- Parameters:
e- Object contained by the actionformObject- - Actual formObject containing data
-
D
D action when cursor button pressed inside active area- Parameters:
e- Object contained by the actionformObj- - Actual formObject containing data
-
U
U action when cursor button released inside active area- Parameters:
e- Object contained by the actionformObj- - Actual formObject containing data
-
Fo
Fo action on input focus- Parameters:
e- Object contained by the actionformObj- - Actual formObject containing data
-
Bl
Bl action when input focus lost- Parameters:
e- Object contained by the actionformObj- - Actual formObject containing data
-
PO
void PO(org.jpedal.objects.raw.PdfObject pdfObject, int type) PO action when page containing is opened, action O from page dictionary, and OpenAction in document catalog should be done first- Parameters:
pdfObject- - of the opening pagetype- - the type of action
-
O
void O(org.jpedal.objects.raw.PdfObject pdfObject, int type) O action when page containing is opened,- Parameters:
pdfObject- - of the opening pagetype- - the type of action
-
PC
void PC(org.jpedal.objects.raw.PdfObject pdfObject, int type) PC action when page is closed- Parameters:
pdfObject- - of the opening pagetype- - the type of action
-
PV
void PV(org.jpedal.objects.raw.PdfObject pdfObject, int type) PV action on viewing containing page- Parameters:
pdfObject- - of the opening pagetype- - the type of action
-
PI
void PI(org.jpedal.objects.raw.PdfObject pdfObject, int type) PI action when no longer visible in viewer- Parameters:
pdfObject- - of the opening pagetype- - the type of action
-
K
K action on - [javascript] keystroke in textfield or combobox modifys the list box selection (can access the keystroke for validity and reject or modify)- Parameters:
e- - Object contained by the actionformObject- - Actual formObject containing dataactionID- - integer value of the actionID- Returns:
- the action
-
F
F the display formatting of the field (e.g 2 decimal places) [javascript]- Parameters:
formObject- - Actual formObject containing data
-
V
V action when fields value is changed [javascript]- Parameters:
e- - Object contained by the actionformObject- - Actual formObject containing dataactionID- - integer value of the actionID
-
C
C action when another field changes (recalculate this field) [javascript] should not be called other than from internal methods to action changes on other fields.- Parameters:
formObject- - Actual formObject containing data
-
C
void C(org.jpedal.objects.raw.PageObject pageObject) C action when a page closes- Parameters:
pageObject- the page being closed- Implementation Note:
- At present, this action is not called when a page is closed
-
WC
void WC(org.jpedal.objects.raw.PdfObject rootObject) WC action, when the document will close- Parameters:
rootObject- the root object of the document- Implementation Note:
- At present, this action is not called when the document is closed
-
WS
void WS(org.jpedal.objects.raw.PdfObject rootObject) WS action, when the document will save- Parameters:
rootObject- the root object of the document- Implementation Note:
- At present, this action is not called when the document will save
-
DS
void DS(org.jpedal.objects.raw.PdfObject rootObject) DS action, when the document is done saving- Parameters:
rootObject- the root object of the document- Implementation Note:
- At present, this action is not called when the document is finished saving
-
WP
void WP(org.jpedal.objects.raw.PdfObject rootObject) WP action, when the document will print- Parameters:
rootObject- the root object of the document- Implementation Note:
- At present, this action is not called when the document will print
-
DP
void DP(org.jpedal.objects.raw.PdfObject rootObject) DP action, when the document is done printing- Parameters:
rootObject- the root object of the document- Implementation Note:
- At present, this action is not called when the document is finished printing
-
OpenAction
void OpenAction(org.jpedal.objects.raw.PdfObject rootObject) OpenAction, when the PDF is opened- Parameters:
rootObject- the root object of the document
-
processDocumentActions
void processDocumentActions(org.jpedal.io.PdfObjectReader currentPdfFile) Provides an opportunity for the ActionHandler to process all document actions- Parameters:
currentPdfFile- - The current PDF file reader- Implementation Note:
- May not be implemented by subclasses
-
processOutlinesActions
void processOutlinesActions(org.jpedal.objects.raw.PdfObject outlines) Provides an opportunity for the ActionHandler to process all outline actions- Parameters:
outlines- - The /Outlines object- Implementation Note:
- May not be implemented by subclasses
-
processPageActions
void processPageActions(org.jpedal.io.PdfObjectReader currentPdfFile, int page) Provides an opportunity for the ActionHandler to process page actions- Parameters:
currentPdfFile- - The current PDF file readerpage- - The number of the page to process- Implementation Note:
- May not be implemented by subclasses
-
processFieldActions
Provides an opportunity for the ActionHandler to process field actions- Parameters:
formObject- - The field object to process- Implementation Note:
- May not be implemented by subclasses
-
getPDFDecoder
PdfDecoderInt getPDFDecoder() -
setHoverCursor
Object setHoverCursor()setup hand cursor when hovering and reset, on exiting- Returns:
- hand cursor
-
init
void init(PdfDecoderInt panel, org.jpedal.objects.Javascript javascript, org.jpedal.objects.acroforms.AcroRenderer defaultAcroRenderer) -
getLayerHandler
org.jpedal.objects.layers.PdfLayerList getLayerHandler() -
changeTo
-
gotoDest
int gotoDest(org.jpedal.objects.raw.PdfObject aobj, int mouseclicked, int dest)
-