> #### How to associate a Java class with a report element

> The steps in this procedure make the following assumptions:

> | A report design is open in the Report Design perspective.

> | The report design includes a scriptable report item, such as a label.

> | A Java class containing event handler methods for the scriptable report item is visible to BIRT.

> 1 | In Outline, select the report element for which an event handler class is visible to BIRT, as shown in Figure 23-6.

> Figure 23-6 Selecting a report element

> 2 | In Property Editor, choose Event Handler, as shown in Figure 23-7.

> Figure 23-7 Event handler properties

> 3 | Choose Browse. Class Selection shows available event handler classes.

> 4 | Select the event handler class that extends the BIRT ROM event adapter class, as shown in Figure 23-8. Then, choose OK.

> Figure 23-8 Selecting the event handler class
> The fully qualified name of the event handler class appears in Property Editor, as shown in Figure 23-9.

> Figure 23-9 The event handler class name

> 5 | Preview the report. The label’s background color is red.

(c) Copyright Actuate Corporation 2013