Creating Custom Presenters

The reporting API allows an application to create any presenters by implementing the presenter interface and creating a presenter class. These custom built presenters are automatically displayed in the 'Presenter' menu in the Format tab of the Properties panel.

To specify a custom presenter in Style Studio, follow these steps:

1. Add the custom presenter class to the classpath:

a. Select 'Configure' from the Style Studio 'File' menu. This opens the 'Style Studio Configuration' dialog box.

b. Select the Classpath tab. Click 'Add Directory', and select the directory containing the required class.

c. Click 'OK' to close the 'Style Studio Configuration' dialog box.

2. Load the custom presenter into the Style Studio environment:

a. Select 'Preferences' from the Style Studio 'Report' menu. This opens the 'Preferences' dialog box.

Click 'Delete' to remove a custom pre­senter.

b. Select the Components tab. Click 'Add' and enter the name of the presenter class, e.g., com.mycompany.presenter.BarPresenter (the location of which has been previously specified in the classpath).

 

c. Click 'OK'.

The custom presenter will now be visible in the 'Presenter' menu in the Format tab of the Properties panel.

<< Available Presenters © 1996-2013 InetSoft Technology Corporation (v11.5) 7.6 Report Bursting >>