Chapter 10 Using Java to Write an Event Handler

Creating a Java event handler is slightly more complex than creating a JavaScript event handler. You cannot simply enter Java code directly in the BIRT Report Designer.

To create a Java event handler class, you must compile the source for the Java class and make certain that the class is visible to BIRT. Creating a Java event handler for BIRT is simplified, however, by the fact that Eclipse is a robust Java development environment and supports integrating a Java project with a BIRT project.

Writing a Java event handler class

When you provide one or more Java event handlers for a scriptable BIRT element, you must create one class that contains all the Java event handlers for that element. Creating ...

Get Integrating and Extending BIRT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.