Event Handlers
Event handlers are registered in a binding-specific manner. The following sections illustrate the techniques used to implement the EventListener interface for each language binding supported by Arbortext Editor and the Arbortext Publishing Engine.
The example (repeated in each binding) shows how to register a mouse click handler (of the MouseEvents event module) for the active document. The handler prints a line to the message window showing the element hierarchy in the following form each time the mouse is clicked within the document:
(book(chapter(para