intarsys PDF library API

de.intarsys.pdf.app.action
Interface IActionHandler

All Known Implementing Classes:
AbstractActionHandler

public interface IActionHandler

An object that can process an action definition in a defined event context.

An action handler is registered with the action handler factory in the action framework and exists ONCE in the system. The handler should be prepared to run in a threaded environment and should not be stateful.


Method Summary
 COSName getActionType()
          The type of actions this handler can process.
 void process(TriggerEvent event, COSObject actionDefinition)
          Perform the actionDefinition in the context of event.
 

Method Detail

getActionType

COSName getActionType()
The type of actions this handler can process.

This is for example /JavaScript for JavaScript or /GoTo for a jump to another destination in the document.

Returns:
The type of actions this handler can process.

process

void process(TriggerEvent event,
             COSObject actionDefinition)
             throws ActionException
Perform the actionDefinition in the context of event.

Parameters:
event - The cause of the processing.
actionDefinition - The processing definition.
Throws:
ActionException

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.