Class GenericNamedActionHandler

  • public class GenericNamedActionHandler
    extends ActionHandler
    Create an action handler to handle "Named" actions. Unlike most of the ActionHandler features, this one will only work inside a PDFViewer - applying it to a standalone DocumentPanel won't work. In addition this is intended as a generic fallback handler, and so should always be added after any more specific handlers. The name of this feature is GenericNamedActionHandler

    This code is copyright the Big Faceless Organization. You're welcome to use, modify and distribute it in any form in your own projects, provided those projects continue to make use of the Big Faceless PDF library.

    • Constructor Detail

      • GenericNamedActionHandler

        public GenericNamedActionHandler()
        Create a new GenericNamedActionHandler
    • Method Detail

      • run

        public void run​(DocumentPanel docpanel,
                        PDFAction action)
        Description copied from class: ActionHandler
        Run the specified action
        Specified by:
        run in class ActionHandler
        docpanel - the DocumentPanel running the action
        action - the action
      • run

        public static void run​(DocumentPanel docpanel,
                               String action)
        Run the specified "named" action.
        docpanel - the active DocumentPanel
        action - the named action to run