org.jpedal.objects.acroforms.actions
Interface ActionHandler


public interface ActionHandler


Field Summary
static int FOCUS_EVENT
           
static int MOUSECLICKED
           
static int MOUSEENTERED
           
static int MOUSEEXITED
           
static int MOUSEPRESSED
           
static int MOUSERELEASED
           
static int NOMESSAGE
           
static int REJECTKEY
           
static int STOPPROCESSING
           
static int TODO
           
static int VALUESCHANGED
           
 
Method Summary
 void A(java.lang.Object e, org.jpedal.objects.raw.FormObject formObj, int eventType)
          A action when pressed in active area ?some others should now be ignored?
 void Bl(java.lang.Object e, org.jpedal.objects.raw.FormObject formObj)
          Bl action when input focus lost
 void C(java.lang.Object e, org.jpedal.objects.raw.FormObject formObj)
          C action when another field changes (recalculate this field) [javascript]
 void D(java.lang.Object e, org.jpedal.objects.raw.FormObject formObj)
          D action when cursor button pressed inside active area
 void E(java.lang.Object e, org.jpedal.objects.raw.FormObject formObject)
          E action when cursor enters active area
 void F(java.lang.Object e, org.jpedal.objects.raw.FormObject formObj)
          F the display formatting of the field (e.g 2 decimal places) [javascript]
 void Fo(java.lang.Object e, org.jpedal.objects.raw.FormObject formObj)
          Fo action on input focus
 org.jpedal.objects.layers.PdfLayerList getLayerHandler()
           
 void init(PdfDecoder panel, org.jpedal.objects.Javascript javascript, org.jpedal.objects.acroforms.rendering.AcroRenderer defaultAcroRenderer)
           
 void init(org.jpedal.io.PdfObjectReader currentPdfFile, org.jpedal.objects.Javascript javascript, org.jpedal.objects.acroforms.rendering.AcroRenderer defaultAcroRenderer)
           
 int K(java.lang.Object e, org.jpedal.objects.raw.FormObject formObj, 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(int pageNumber)
          O action when page containing is opened,
 void PC(int pageNumber)
          PC action when page is closed, action C from pages AA dic follows this
 void PI(int pageNumber)
          PI action when no longer visible in viewer
 void PO(int pageNumber)
          PO action when page containing is opened, actions O of pages AA dic, and OpenAction in document catalog should be done first
 void PV(int pageNumber)
          PV action on viewing containing page
 void setActionFactory(org.jpedal.objects.acroforms.actions.ActionFactory actionFactory)
           
 java.lang.Object setHoverCursor()
          setup hand cursor when hovering and reset, on exiting
 void setPageAccess(int pageHeight, int insetH)
           
 java.lang.Object setupChangingCaption(java.lang.String normalCaption, java.lang.String rolloverCaption, java.lang.String downCaption)
          setup mouse actions to allow the text of the button to change with the captions provided
should change the caption as the moouse actions occure on the field
 java.lang.Object setupChangingDownIcon(java.lang.Object downOff, java.lang.Object downOn, int rotation)
          creates a returns an action listener that will change the down icon for each click
2 icons that need to be changed when the button is sellected and not selected, so that when the button is pressed the appropriate icon is shown correctly (ms) 09-10-08 Added rotation parameter
 java.lang.Object setupXFAAction(int activity, java.lang.String scriptType, java.lang.String script)
          sets up the specified action
passes the XFA action to be setup, the action can be any of the
XFAFormObject.ACTION_*
the scriptType is the language the script is to be executed in
 void U(java.lang.Object e, org.jpedal.objects.raw.FormObject formObj)
          U action when cursor button released inside active area
 void V(java.lang.Object e, org.jpedal.objects.raw.FormObject formObj, int actionID)
          V action when fields value is changed [javascript]
 void X(java.lang.Object e, org.jpedal.objects.raw.FormObject formObject)
          X action when cursor exits active area
 

Field Detail

MOUSEPRESSED

static final int MOUSEPRESSED
See Also:
Constant Field Values

MOUSERELEASED

static final int MOUSERELEASED
See Also:
Constant Field Values

MOUSECLICKED

static final int MOUSECLICKED
See Also:
Constant Field Values

MOUSEENTERED

static final int MOUSEENTERED
See Also:
Constant Field Values

MOUSEEXITED

static final int MOUSEEXITED
See Also:
Constant Field Values

FOCUS_EVENT

static final int FOCUS_EVENT
See Also:
Constant Field Values

TODO

static final int TODO
See Also:
Constant Field Values

NOMESSAGE

static final int NOMESSAGE
See Also:
Constant Field Values

REJECTKEY

static final int REJECTKEY
See Also:
Constant Field Values

STOPPROCESSING

static final int STOPPROCESSING
See Also:
Constant Field Values

VALUESCHANGED

static final int VALUESCHANGED
See Also:
Constant Field Values
Method Detail

A

void A(java.lang.Object e,
       org.jpedal.objects.raw.FormObject formObj,
       int eventType)
A action when pressed in active area ?some others should now be ignored?


E

void E(java.lang.Object e,
       org.jpedal.objects.raw.FormObject formObject)
E action when cursor enters active area


X

void X(java.lang.Object e,
       org.jpedal.objects.raw.FormObject formObject)
X action when cursor exits active area


D

void D(java.lang.Object e,
       org.jpedal.objects.raw.FormObject formObj)
D action when cursor button pressed inside active area


U

void U(java.lang.Object e,
       org.jpedal.objects.raw.FormObject formObj)
U action when cursor button released inside active area


Fo

void Fo(java.lang.Object e,
        org.jpedal.objects.raw.FormObject formObj)
Fo action on input focus


Bl

void Bl(java.lang.Object e,
        org.jpedal.objects.raw.FormObject formObj)
Bl action when input focus lost


PO

void PO(int pageNumber)
PO action when page containing is opened, actions O of pages AA dic, and OpenAction in document catalog should be done first


O

void O(int pageNumber)
O action when page containing is opened,


PC

void PC(int pageNumber)
PC action when page is closed, action C from pages AA dic follows this


PV

void PV(int pageNumber)
PV action on viewing containing page


PI

void PI(int pageNumber)
PI action when no longer visible in viewer


K

int K(java.lang.Object e,
      org.jpedal.objects.raw.FormObject formObj,
      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)


F

void F(java.lang.Object e,
       org.jpedal.objects.raw.FormObject formObj)
F the display formatting of the field (e.g 2 decimal places) [javascript]


V

void V(java.lang.Object e,
       org.jpedal.objects.raw.FormObject formObj,
       int actionID)
V action when fields value is changed [javascript]


C

void C(java.lang.Object e,
       org.jpedal.objects.raw.FormObject formObj)
C action when another field changes (recalculate this field) [javascript]


setupChangingDownIcon

java.lang.Object setupChangingDownIcon(java.lang.Object downOff,
                                       java.lang.Object downOn,
                                       int rotation)
creates a returns an action listener that will change the down icon for each click
2 icons that need to be changed when the button is sellected and not selected, so that when the button is pressed the appropriate icon is shown correctly (ms) 09-10-08 Added rotation parameter


setupChangingCaption

java.lang.Object setupChangingCaption(java.lang.String normalCaption,
                                      java.lang.String rolloverCaption,
                                      java.lang.String downCaption)
setup mouse actions to allow the text of the button to change with the captions provided
should change the caption as the moouse actions occure on the field


setHoverCursor

java.lang.Object setHoverCursor()
setup hand cursor when hovering and reset, on exiting


setupXFAAction

java.lang.Object setupXFAAction(int activity,
                                java.lang.String scriptType,
                                java.lang.String script)
sets up the specified action
passes the XFA action to be setup, the action can be any of the
XFAFormObject.ACTION_*
the scriptType is the language the script is to be executed in


init

void init(PdfDecoder panel,
          org.jpedal.objects.Javascript javascript,
          org.jpedal.objects.acroforms.rendering.AcroRenderer defaultAcroRenderer)

init

void init(org.jpedal.io.PdfObjectReader currentPdfFile,
          org.jpedal.objects.Javascript javascript,
          org.jpedal.objects.acroforms.rendering.AcroRenderer defaultAcroRenderer)

setPageAccess

void setPageAccess(int pageHeight,
                   int insetH)

setActionFactory

void setActionFactory(org.jpedal.objects.acroforms.actions.ActionFactory actionFactory)

getLayerHandler

org.jpedal.objects.layers.PdfLayerList getLayerHandler()