Interface ActionHandler
- All Known Implementing Classes:
DefaultActionHandler
,org.jpedal.objects.acroforms.actions.EmptyActionHandler
public interface ActionHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
A
(Object e, FormObject formObject, int eventType) A action when pressed in active area ?void
Bl
(Object e, FormObject formObj) Bl action when input focus lostvoid
C
(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.void
C
(org.jpedal.objects.raw.PageObject pageObject) C action when a page closesvoid
void
D
(Object e, FormObject formObj) D action when cursor button pressed inside active areavoid
DP
(org.jpedal.objects.raw.PdfObject rootObject) DP action, when the document is done printingvoid
DS
(org.jpedal.objects.raw.PdfObject rootObject) DS action, when the document is done savingvoid
E
(Object e, FormObject formObject) E action when cursor enters active areavoid
F
(FormObject formObject) F the display formatting of the field (e.g 2 decimal places) [javascript]void
Fo
(Object e, FormObject formObj) Fo action on input focusorg.jpedal.objects.layers.PdfLayerList
int
gotoDest
(org.jpedal.objects.raw.PdfObject aobj, int mouseclicked, int dest) void
init
(PdfDecoderInt panel, org.jpedal.objects.Javascript javascript, org.jpedal.objects.acroforms.AcroRenderer defaultAcroRenderer) int
K
(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)void
O
(org.jpedal.objects.raw.PdfObject pdfObject, int type) O action when page containing is opened,void
OpenAction
(org.jpedal.objects.raw.PdfObject rootObject) OpenAction, when the PDF is openedvoid
PC
(org.jpedal.objects.raw.PdfObject pdfObject, int type) PC action when page is closedvoid
PI
(org.jpedal.objects.raw.PdfObject pdfObject, int type) PI action when no longer visible in viewervoid
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 firstvoid
processDocumentActions
(org.jpedal.io.PdfObjectReader currentPdfFile) Provides an opportunity for the ActionHandler to process all document actionsvoid
processFieldActions
(FormObject formObject) Provides an opportunity for the ActionHandler to process field actionsvoid
processOutlinesActions
(org.jpedal.objects.raw.PdfObject outlines) Provides an opportunity for the ActionHandler to process all outline actionsvoid
processPageActions
(org.jpedal.io.PdfObjectReader currentPdfFile, int page) Provides an opportunity for the ActionHandler to process page actionsvoid
PV
(org.jpedal.objects.raw.PdfObject pdfObject, int type) PV action on viewing containing pagesetup hand cursor when hovering and reset, on exitingvoid
U
(Object e, FormObject formObj) U action when cursor button released inside active areavoid
V
(Object e, FormObject formObject, int actionID) V action when fields value is changed [javascript]void
WC
(org.jpedal.objects.raw.PdfObject rootObject) WC action, when the document will closevoid
WP
(org.jpedal.objects.raw.PdfObject rootObject) WP action, when the document will printvoid
WS
(org.jpedal.objects.raw.PdfObject rootObject) WS action, when the document will savevoid
X
(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- Implementation Note:
- At present, this action is not called when the document is opened
-
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)
-