Class DefaultActionHandler

java.lang.Object
org.jpedal.objects.acroforms.actions.EmptyActionHandler
org.jpedal.objects.acroforms.actions.DefaultActionHandler
All Implemented Interfaces:
ActionHandler

public class DefaultActionHandler extends org.jpedal.objects.acroforms.actions.EmptyActionHandler
The form action handler the Viewer installs for its decoder, carrying out actions triggered by form fields and annotations in the Viewer's GUI.
  • 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
    Constructor
    Description
    DefaultActionHandler(org.jpedal.examples.viewer.gui.SwingGUI viewerGUI)
    Creates the action handler for a Viewer.
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    init(PdfDecoderInt decode_pdf, org.jpedal.objects.Javascript javascript, org.jpedal.objects.acroforms.AcroRenderer acrorend)
     
    void
    OpenAction(org.jpedal.objects.raw.PdfObject rootObject)
    OpenAction, when the PDF is opened
    setup hand cursor when hovering and reset, on exiting

    Methods inherited from class org.jpedal.objects.acroforms.actions.EmptyActionHandler

    A, Bl, C, C, DP, DS, E, F, Fo, getLayerHandler, getPDFDecoder, gotoDest, gotoDest, K, O, PC, PI, PO, processDocumentActions, processFieldActions, processOutlinesActions, processPageActions, PV, U, V, WC, WP, WS, X

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultActionHandler

      public DefaultActionHandler(org.jpedal.examples.viewer.gui.SwingGUI viewerGUI)
      Creates the action handler for a Viewer.
      Parameters:
      viewerGUI - the GUI of the Viewer the actions run in
  • Method Details

    • init

      public void init(PdfDecoderInt decode_pdf, org.jpedal.objects.Javascript javascript, org.jpedal.objects.acroforms.AcroRenderer acrorend)
      Specified by:
      init in interface ActionHandler
      Overrides:
      init in class org.jpedal.objects.acroforms.actions.EmptyActionHandler
    • setHoverCursor

      public Object setHoverCursor()
      Description copied from interface: ActionHandler
      setup hand cursor when hovering and reset, on exiting
      Specified by:
      setHoverCursor in interface ActionHandler
      Overrides:
      setHoverCursor in class org.jpedal.objects.acroforms.actions.EmptyActionHandler
      Returns:
      hand cursor
    • changeTo

      public 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.
      Specified by:
      changeTo in interface ActionHandler
      Overrides:
      changeTo in class org.jpedal.objects.acroforms.actions.EmptyActionHandler
      Parameters:
      type - - the type of action
    • D

      public void D(Object e, FormObject formObj)
      D action when cursor button pressed inside active area
      Specified by:
      D in interface ActionHandler
      Overrides:
      D in class org.jpedal.objects.acroforms.actions.EmptyActionHandler
      Parameters:
      e - Object contained by the action
      formObj - - Actual formObject containing data
    • OpenAction

      public void OpenAction(org.jpedal.objects.raw.PdfObject rootObject)
      OpenAction, when the PDF is opened
      Specified by:
      OpenAction in interface ActionHandler
      Overrides:
      OpenAction in class org.jpedal.objects.acroforms.actions.EmptyActionHandler
      Parameters:
      rootObject - the root object of the document