public abstract class SharedActionHandler extends Object implements ActionHandler
| Modifier and Type | Field and Description |
|---|---|
protected AcroRenderer |
acrorend |
protected PdfObjectReader |
currentPdfFile |
protected PdfDecoderInt |
decode_pdf |
protected Javascript |
javascript |
protected static boolean |
showMethods |
FOCUS_EVENT, MOUSECLICKED, MOUSEENTERED, MOUSEEXITED, MOUSEPRESSED, MOUSERELEASED, NOMESSAGE, REJECTKEY, STOPPROCESSING, TODO, VALUESCHANGED| Constructor and Description |
|---|
SharedActionHandler(GUIFactory viewerGUI) |
| Modifier and Type | Method and Description |
|---|---|
void |
A(Object raw,
FormObject formObj,
int eventType)
A action when pressed in active area ?some others should now be ignored?
|
protected void |
additionalAction_OCState(int eventType,
PdfObject aData) |
void |
Bl(Object e,
FormObject formObj)
Bl action when input focus lost, blur
|
void |
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 completeness |
void |
changeTo(String file,
int page,
Object location,
Integer type,
boolean storeView)
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 area
|
void |
E(Object e,
FormObject formObj)
E action when cursor enters active area
|
void |
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 focus
|
static char |
getKeyPressed(Object raw)
pick up key press or return ' '
|
PdfLayerList |
getLayerHandler() |
PdfDecoderInt |
getPDFDecoder() |
int |
gotoDest(PdfObject aData,
int eventType,
int command)
public as also called from Viewer to reset
|
void |
init(PdfDecoderInt decode_pdf,
Javascript javascript,
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(PdfObject pdfObject,
int type)
O called when a page is opened
|
protected void |
openAcrobatFormsGuide() |
protected void |
openNewViewer(String target) |
void |
PC(PdfObject pdfObject,
int type)
PC action when page is closed, action C from pages AA dic follows this
|
void |
PI(PdfObject pdfObject,
int type)
PI action when page no longer visible in viewer
|
void |
PO(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
|
protected void |
popup(Object raw,
FormObject formObj,
PdfObjectReader currentPdfFile) |
void |
print() |
void |
PV(PdfObject pdfObject,
int type)
PV action on viewing containing page
|
protected void |
scrollOnPage(int page,
Object location,
boolean storeView,
int type) |
protected void |
setCursor(int eventType) |
void |
setFieldVisibility(FieldsHideObject fieldToHide)
shows and hides the appropriate fields as defined within the map defined
|
Object |
setHoverCursor()
setup hand cursor when hovering and reset, on exiting
|
static void |
showMessageDialog(String s) |
protected void |
showSig(PdfObject sigObject) |
protected void |
switchPage(int page) |
void |
U(Object e,
FormObject formObj)
U action when cursor button released inside active area
|
void |
V(Object ex,
FormObject formObj,
int actionID)
V action when fields value is changed [javascript], validate
|
void |
X(Object e,
FormObject formObj)
X action when cursor exits active area
|
protected static final boolean showMethods
protected PdfObjectReader currentPdfFile
protected Javascript javascript
protected AcroRenderer acrorend
protected PdfDecoderInt decode_pdf
public SharedActionHandler(GUIFactory viewerGUI)
public void init(PdfDecoderInt decode_pdf, Javascript javascript, AcroRenderer acrorend)
init in interface ActionHandlerpublic Object setHoverCursor()
ActionHandlersetHoverCursor in interface ActionHandlerpublic void A(Object raw, FormObject formObj, int eventType)
A in interface ActionHandlerraw - Object contained by the actionformObj - - Actual formObject containing dataeventType - - type of event (Keystroke, focus)public int gotoDest(PdfObject aData, int eventType, int command)
new page or -1 returned
gotoDest in interface ActionHandleraData - eventType - command - public void changeTo(String file, int page, Object location, Integer type, boolean storeView)
changeTo in interface ActionHandlertype - - the type of actionpublic PdfDecoderInt getPDFDecoder()
getPDFDecoder in interface ActionHandlerpublic void E(Object e, FormObject formObj)
E in interface ActionHandlere - Object contained by the actionformObj - - Actual formObject containing datapublic void X(Object e, FormObject formObj)
X in interface ActionHandlere - Object contained by the actionformObj - - Actual formObject containing datapublic void D(Object e, FormObject formObj)
D in interface ActionHandlere - Object contained by the actionformObj - - Actual formObject containing datapublic void U(Object e, FormObject formObj)
U in interface ActionHandlere - Object contained by the actionformObj - - Actual formObject containing datapublic void Fo(Object e, FormObject formObj)
Fo in interface ActionHandlere - Object contained by the actionformObj - - Actual formObject containing datapublic void Bl(Object e, FormObject formObj)
Bl in interface ActionHandlere - Object contained by the actionformObj - - Actual formObject containing datapublic void O(PdfObject pdfObject, int type)
O in interface ActionHandlerpdfObject - - of the opening pagetype - - the type of actionpublic void PO(PdfObject pdfObject, int type)
PO in interface ActionHandlerpdfObject - - of the opening pagetype - - the type of actionpublic void PC(PdfObject pdfObject, int type)
PC in interface ActionHandlerpdfObject - - of the opening pagetype - - the type of actionpublic void PV(PdfObject pdfObject, int type)
PV in interface ActionHandlerpdfObject - - of the opening pagetype - - the type of actionpublic void PI(PdfObject pdfObject, int type)
PI in interface ActionHandlerpdfObject - - of the opening pagetype - - the type of actionpublic int K(Object ex, FormObject formObj, int actionID)
K in interface ActionHandlerex - - Object contained by the actionformObj - - Actual formObject containing dataactionID - - integer value of the actionIDpublic void F(FormObject formObj)
F in interface ActionHandlerformObj - - Actual formObject containing datapublic void V(Object ex, FormObject formObj, int actionID)
V in interface ActionHandlerex - - Object contained by the actionformObj - - Actual formObject containing dataactionID - - integer value of the actionIDpublic void C(FormObject formObj)
C in interface ActionHandlerformObj - - Actual formObject containing datapublic static void showMessageDialog(String s)
public static char getKeyPressed(Object raw)
public void setFieldVisibility(FieldsHideObject fieldToHide)
fieldToHide - - the field names to which we want to hide
both arrays must be the same length.protected void popup(Object raw, FormObject formObj, PdfObjectReader currentPdfFile)
public PdfLayerList getLayerHandler()
getLayerHandler in interface ActionHandlerprotected void showSig(PdfObject sigObject)
protected void additionalAction_OCState(int eventType,
PdfObject aData)
protected void switchPage(int page)
public void print()
protected void scrollOnPage(int page,
Object location,
boolean storeView,
int type)
protected void setCursor(int eventType)
protected void openNewViewer(String target)
protected void openAcrobatFormsGuide()
Copyright © 2017. All rights reserved.