Package org.jpedal.external
Interface JPedalActionHandler
public interface JPedalActionHandler
Replaces the Viewer's own action for a command.
Put each handler in a Map<Integer, Object> keyed by the command ID (a Commands constant) and pass the
Map to viewer.addExternalHandler(map, Options.JPedalActionHandler). When that command runs, the handler is
called instead of the Viewer's action and the command returns null.
-
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(org.jpedal.examples.viewer.gui.SwingGUI currentGUI, Commands commands) Called in place of the Viewer's action for the command this handler is registered for.
-
Method Details
-
actionPerformed
Called in place of the Viewer's action for the command this handler is registered for.- Parameters:
currentGUI- the Viewer's GUIcommands- the Viewer's Commands object, which can be used to run other commands
-