Class DefaultActionHandler
java.lang.Object
org.jpedal.objects.acroforms.actions.DefaultActionHandler
- All Implemented Interfaces:
ActionHandler
-
Field Summary
Fields inherited from interface org.jpedal.objects.acroforms.actions.ActionHandler
FOCUS_EVENT, MOUSECLICKED, MOUSEENTERED, MOUSEEXITED, MOUSEPRESSED, MOUSERELEASED, NOMESSAGE, REJECTKEY, STOPPROCESSING, TODO, VALUESCHANGED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
A
(Object raw, FormObject formObj, int eventType) A action when pressed in active area ?some others should now be ignored?void
Bl
(Object e, FormObject formObj) Bl action when input focus lost, blurvoid
C
(FormObject formObj) C action when another field changes (recalculate this field) [javascript]
NOT actually called as called from other other objects but here for completenessvoid
this calls the PdfDecoder to open a new page and change to the correct page and location on page, is any value is null, it means leave as is.void
D
(Object e, FormObject formObj) D action when cursor button pressed inside active areavoid
E
(Object e, FormObject formObj) E action when cursor enters active areavoid
F
(FormObject formObj) 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 aData, int eventType, int command) public as also called from Viewer to resetvoid
init
(PdfDecoderInt decode_pdf, org.jpedal.objects.Javascript javascript, org.jpedal.objects.acroforms.AcroRenderer acrorend) int
K
(Object ex, FormObject formObj, int actionID) when user types a keystroke 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 called when a page is openedvoid
PC
(org.jpedal.objects.raw.PdfObject pdfObject, int type) PC action when page is closed, action C from pages AA dic follows thisvoid
PI
(org.jpedal.objects.raw.PdfObject pdfObject, int type) PI action when page no longer visible in viewervoid
PO
(org.jpedal.objects.raw.PdfObject pdfObject, int type) PO action when page containing is opened, actions O of pages AA dic, and OpenAction in document catalog should be done firstvoid
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 ex, FormObject formObj, int actionID) V action when fields value is changed [javascript], validatevoid
X
(Object e, FormObject formObj) X action when cursor exits active area
-
Constructor Details
-
DefaultActionHandler
public DefaultActionHandler(org.jpedal.examples.viewer.gui.SwingGUI viewerGUI)
-
-
Method Details
-
init
public void init(PdfDecoderInt decode_pdf, org.jpedal.objects.Javascript javascript, org.jpedal.objects.acroforms.AcroRenderer acrorend) - Specified by:
init
in interfaceActionHandler
-
setHoverCursor
Description copied from interface:ActionHandler
setup hand cursor when hovering and reset, on exiting- Specified by:
setHoverCursor
in interfaceActionHandler
- Returns:
- hand cursor
-
A
A action when pressed in active area ?some others should now be ignored?- Specified by:
A
in interfaceActionHandler
- Parameters:
raw
- Object contained by the actionformObj
- - Actual formObject containing dataeventType
- - type of event (Keystroke, focus)
-
gotoDest
public int gotoDest(org.jpedal.objects.raw.PdfObject aData, int eventType, int command) public as also called from Viewer to resetnew page or -1 returned
- Specified by:
gotoDest
in interfaceActionHandler
- Parameters:
aData
- a data object carrying pdf detailseventType
- the type of event being executedcommand
- the command being executed- Returns:
- a new page if available else -1
-
changeTo
this calls the PdfDecoder to open a new page and change to the correct page and location on page, is any value is null, it means leave as is.- Specified by:
changeTo
in interfaceActionHandler
- Parameters:
type
- - the type of action
-
getPDFDecoder
- Specified by:
getPDFDecoder
in interfaceActionHandler
-
E
E action when cursor enters active area- Specified by:
E
in interfaceActionHandler
- Parameters:
e
- Object contained by the actionformObj
- - Actual formObject containing data
-
X
X action when cursor exits active area- Specified by:
X
in interfaceActionHandler
- Parameters:
e
- Object contained by the actionformObj
- - Actual formObject containing data
-
D
D action when cursor button pressed inside active area- Specified by:
D
in interfaceActionHandler
- Parameters:
e
- Object contained by the actionformObj
- - Actual formObject containing data
-
U
U action when cursor button released inside active area- Specified by:
U
in interfaceActionHandler
- Parameters:
e
- Object contained by the actionformObj
- - Actual formObject containing data
-
Fo
Fo action on input focus- Specified by:
Fo
in interfaceActionHandler
- Parameters:
e
- Object contained by the actionformObj
- - Actual formObject containing data
-
Bl
Bl action when input focus lost, blur- Specified by:
Bl
in interfaceActionHandler
- Parameters:
e
- Object contained by the actionformObj
- - Actual formObject containing data
-
O
public void O(org.jpedal.objects.raw.PdfObject pdfObject, int type) O called when a page is opened- Specified by:
O
in interfaceActionHandler
- Parameters:
pdfObject
- - of the opening pagetype
- - the type of action
-
PO
public void PO(org.jpedal.objects.raw.PdfObject pdfObject, int type) PO action when page containing is opened, actions O of pages AA dic, and OpenAction in document catalog should be done first- Specified by:
PO
in interfaceActionHandler
- Parameters:
pdfObject
- - of the opening pagetype
- - the type of action
-
PC
public void PC(org.jpedal.objects.raw.PdfObject pdfObject, int type) PC action when page is closed, action C from pages AA dic follows this- Specified by:
PC
in interfaceActionHandler
- Parameters:
pdfObject
- - of the opening pagetype
- - the type of action
-
PV
public void PV(org.jpedal.objects.raw.PdfObject pdfObject, int type) PV action on viewing containing page- Specified by:
PV
in interfaceActionHandler
- Parameters:
pdfObject
- - of the opening pagetype
- - the type of action
-
PI
public void PI(org.jpedal.objects.raw.PdfObject pdfObject, int type) PI action when page no longer visible in viewer- Specified by:
PI
in interfaceActionHandler
- Parameters:
pdfObject
- - of the opening pagetype
- - the type of action
-
K
when user types a keystroke K action on - [javascript] keystroke in textfield or combobox modifys the list box selection (can access the keystroke for validity and reject or modify)- Specified by:
K
in interfaceActionHandler
- Parameters:
ex
- - Object contained by the actionformObj
- - 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]- Specified by:
F
in interfaceActionHandler
- Parameters:
formObj
- - Actual formObject containing data
-
V
V action when fields value is changed [javascript], validate- Specified by:
V
in interfaceActionHandler
- Parameters:
ex
- - Object contained by the actionformObj
- - Actual formObject containing dataactionID
- - integer value of the actionID
-
C
C action when another field changes (recalculate this field) [javascript]
NOT actually called as called from other other objects but here for completeness- Specified by:
C
in interfaceActionHandler
- Parameters:
formObj
- - Actual formObject containing data
-
getLayerHandler
public org.jpedal.objects.layers.PdfLayerList getLayerHandler()- Specified by:
getLayerHandler
in interfaceActionHandler
-