Customizing the J report window

 

Introduction

The J report window can be customized, by creating a child profile under the default#Report profile.

 

Through customization, it is possible to:

·         add fields to the top and the bottom of the J report window

·         define new types of report line and give them an icon

·         redefine the behavior of the J report window when the user selects or double-clicks on one of the report lines

 

 

Adding fields to the J report window

To add fields to the J report window, the "initBoxHeader ()" and "initBoxBottom" protected abstract methods can be overloaded.

 

All the methods available on the JSet and JNoModalBox metaclasses can be used.

 

 

Defining new types of report line

To define new types of report line, the "getBitmapFromType (in string type)" method can be overloaded.

 

This method returns the access path to the bitmap to be used, from a report line type.

 

 

Selecting and double-clicking

The following methods can be redefined:

JTreeItem::onSelect()

Call back called when a line is selected.

 

JTreeItem::onAction()

Call back called when a line is double-clicked upon.

 

Object::onSelect()

Method called by "JTreeItem::onSelect ()" on the linked object.  By default, this does nothing.

 

Object::onAction()

Method called by "JTreeItem::onAction ()" on the linked object.  By default, this select the object in the explorer.

 

By default, "JTreeItem::onSelect()"  calls "Object::onSelect()" and "JTreeItem::onAction ()" calls "Object::onAction()" on the linked object.