Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Assign Derived Java Class to Report Item?
roopurt81
Greetings!
Assume I've created the following Java classes:
public class MyTableEventHandler extends TableEventAdapter {}
public class MyTableRowEventHandler extends RowEventAdapter {}
public class MyTableGroupEventHandler extends TableGroupEventAdapter {}
I would like to know if the following is possible:
1) Create a Java class derived from Birt's Table class.
public class MyTableExtension extends BirtTable {
}
3) Use the report designer to create a table, creating the columns, layout, and all the visual items. Call this table: myTestTable.
4) From within the designer, link myTestTable to the MyTableExtension class.
5) From within MyTableExtension class, I would like to access the table detail row and table group and assign my event handler classes I created above.
What's happening is I'm creating a report library with lots of table report items. Each table is different in its dataset and columns, but they also share some underlying visual representation logic. What I'd like to do is create a Java class that represents this common logic and just attach it to the table report items.
I appreciate any responses in this matter!
Find more posts tagged with
Comments
There are no comments yet