[jboss-svn-commits] JBL Code SVN: r8082 - in labs/reportingservices/trunk/dev/modules/client/samples: . etc etc/script etc/test1 etc/test1/META-INF etc/test2 etc/test2/META-INF etc/test2/test2_2 src src/main src/main/java src/main/java/org src/main/java/org/jboss src/main/java/org/jboss/reporting src/main/java/org/jboss/reporting/client src/main/java/org/jboss/reporting/client/jfreereport
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Dec 6 04:39:29 EST 2006
Author: noel.rocher at jboss.com
Date: 2006-12-06 04:39:23 -0500 (Wed, 06 Dec 2006)
New Revision: 8082
Added:
labs/reportingservices/trunk/dev/modules/client/samples/etc/
labs/reportingservices/trunk/dev/modules/client/samples/etc/report3.jfxml
labs/reportingservices/trunk/dev/modules/client/samples/etc/script/
labs/reportingservices/trunk/dev/modules/client/samples/etc/script/SendPDFByMail.sh
labs/reportingservices/trunk/dev/modules/client/samples/etc/test1.era
labs/reportingservices/trunk/dev/modules/client/samples/etc/test1/
labs/reportingservices/trunk/dev/modules/client/samples/etc/test1/META-INF/
labs/reportingservices/trunk/dev/modules/client/samples/etc/test1/META-INF/jboss-report.xml
labs/reportingservices/trunk/dev/modules/client/samples/etc/test1/RotationReport1.jrxml
labs/reportingservices/trunk/dev/modules/client/samples/etc/test2.era
labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/
labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/META-INF/
labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/META-INF/jboss-report.xml
labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/RotationReport2.jrxml
labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/test2_2/
labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/test2_2/RotationReport2_2.jrxml
labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/test2_2/report3.jfxml
labs/reportingservices/trunk/dev/modules/client/samples/pom.xml
labs/reportingservices/trunk/dev/modules/client/samples/src/
labs/reportingservices/trunk/dev/modules/client/samples/src/main/
labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/
labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/
labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/
labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/
labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/
labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/CopyPDFToDirEveryNmin.java
labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/SendPDFByMail.java
labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/SimpleClient.java
labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/jfreereport/
labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/jfreereport/SampleData3.java
labs/reportingservices/trunk/dev/modules/client/samples/src/main/resources/
Log:
Added: labs/reportingservices/trunk/dev/modules/client/samples/etc/report3.jfxml
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/etc/report3.jfxml 2006-12-06 09:38:31 UTC (rev 8081)
+++ labs/reportingservices/trunk/dev/modules/client/samples/etc/report3.jfxml 2006-12-06 09:39:23 UTC (rev 8082)
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE report PUBLIC "-//JFreeReport//DTD report definition//EN//simple/version 0.8.5"
+ "http://jfreereport.sourceforge.net/report-085.dtd">
+<!--
+
+ Defined fields for this TableModel:
+
+ 0: "name" = String;
+ 1: "street" = String;
+ 2: "town" = String;
+ 3: "productcode" = String;
+ 4: "productname" = String;
+ 5: "count" = Integer;
+ 6: "price" = Double;
+ 7: "total" = Double (is calculated inside the model);
+ else
+
+ -->
+<!--
+ ChangeLog:
+ 2002-May-20: Adjusted the width of 0 to be "100%". The parser does translate values of 0 to
+ the full width, but will issue at least a warning. The "Thankyouforyourorder"
+ field now uses multiple lines and uses the autolinebreak capabilities of TextElement.
+
+-->
+<report name="Invoice" pageformat="A4" topmargin="70" leftmargin="70" bottommargin="70" rightmargin="70">
+ <configuration>
+ <property name="org.jfree.report.modules.output.pageable.pdf.Encoding">Identity-H</property>
+ <property name="org.jfree.report.modules.output.pageable.pdf.EmbedFonts">true</property>
+ <property name="org.jfree.report.targets.table.TableWriter.SheetNameFunction">sheetNameExpression</property>
+ </configuration>
+ <!--
+ Needs some better control when to display the page header. Group should be able to declare whether a
+ pageheader should be displayed or not
+
+ <pageheader onfirstpage="false" height="17" fontname="SansSerif" fontstyle="plain" fontsize="11">
+ <label x="0" y="0" width="450" height="12" alignment="right">Salingers Bookstore - you'll get what you deserve</label>
+ <line x1="0" y1="15" x2="0" y2="15" weight="0.5"/>
+ </pageheader>
+ <pageheader height="40"/>
+ <pagefooter height="0"/>
+ -->
+ <groups>
+ <group name="Customer">
+ <groupheader height="355" fontname="SansSerif" fontstyle="plain" fontsize="11" pagebreak-before-print="true">
+ <label name="Line1" x="0" y="12" width="200" height="12" alignment="left">Salingers Bookstore</label>
+ <label name="Line2" x="0" y="24" width="200" height="12" alignment="left">19a Hollow Road</label>
+ <label name="Line3" x="0" y="48" width="200" height="12" alignment="left">9999 Boston</label>
+ <!-- Silly demo of JFreeReports Image Capabilies. Uses WMF, JPG, GIF or PNG files as source
+ <drawableref x="200" y="48" width="100" height="90" src="anim0002.wmf" name="logo"/>
+-->
+ <string-field name="FName" x="0" y="84" width="200" height="12" alignment="left" fieldname="name"/>
+ <string-field name="FStreet" x="0" y="96" width="200" height="12" alignment="left" fieldname="street"/>
+ <string-field name="FTown" x="0" y="120" width="200" height="12" alignment="left" fieldname="town"/>
+ <!-- <rectangle name="Rect" x="0" y="0" width="100%" height="100%" color="#0000FF" draw="true" fill="false"/> -->
+ <message-field name="Date" x="0" y="224" width="100%" height="12" alignment="right" fontstyle="plain"
+ >Invoice for your order from {$(report.date), date,EEE, MMM d, yyyy}</message-field>
+ <label name="Customer" x="0" y="290" width="450" height="12" alignment="left"
+ fontname="Arial Unicode MS" fontstyle="plain" fontsize="11"
+ >Dear customer,</label>
+ <!-- >Dear customer, (Unicode Test 1: ツールとユーティリティ)</label> -->
+ <label name="Received" x="0" y="314" width="450" height="12" alignment="left"
+ >We received your order and will deliver the following articles to your address:</label>
+ <label name="LCode" x="0" y="340" width="80" height="12" alignment="left">Code</label>
+ <label name="LProd" x="100" y="340" width="200" height="12" alignment="left">Product</label>
+ <label name="LCount" x="300" y="340" width="50" height="12" alignment="left">Count</label>
+ <label name="LPrice" x="350" y="340" width="50" height="12" alignment="left">Price</label>
+ <label name="LTotal" x="400" y="340" width="50" height="12" alignment="left">Total</label>
+ <line name="line_end" x1="0" y1="353" x2="100%" y2="353" weight="0.5"/>
+ </groupheader>
+ <groupfooter height="0" fontname="SansSerif" fontstyle="plain" fontsize="11">
+ <!-- <rectangle x="0" y="0" width="100%" height="100%" color="#0000FF" draw="true" fill="false"/> -->
+ <line x1="0" y1="10" x2="100%" y2="10" weight="0.5"/>
+ <label x="200" y="20" width="200" height="12" alignment="left">Total Sum of</label>
+ <number-field x="400" y="20" width="70" height="12" alignment="left" format="'$' #,##0.00" fieldname="totalsum"/>
+ <line x1="200" y1="34" x2="300" y2="34" width="100%" height="0" weight="0.5"/>
+ <line x1="200" y1="37" x2="300" y2="37" width="100%" height="0" weight="0.5"/>
+ <label name="trace" x="0" y="84" width="100%" height="0" alignment="left" fontname="Arial Unicode MS" dynamic="true" vertical-alignment="top"
+ >We thank you for your order and hope to see you soon again. Please pay your invoice within the next 10 days.
+
+Yours sincerely,
+
+
+
+John W. Who, Salesman</label>
+ </groupfooter>
+ <fields>
+ <field>name</field>
+ <field>street</field>
+ <field>town</field>
+ </fields>
+ </group>
+ </groups>
+
+ <items height="12">
+ <string-field x="0" y="0" width="50" height="12" alignment="left" fieldname="productcode"/>
+ <string-field x="70" y="0" width="230" height="12" alignment="left" fieldname="productname"/>
+ <number-field x="300" y="0" width="50" height="12" alignment="left" format="#,##0" fieldname="count"/>
+ <number-field x="350" y="0" width="50" height="12" alignment="left" format="'$' #,##0.00" fieldname="price"/>
+ <number-field x="400" y="0" width="70" height="12" alignment="left" format="'$' #,##0.00" fieldname="total"/>
+ </items>
+ <functions>
+ <expression name="sheetNameExpression" class="org.jfree.report.function.TextFormatExpression">
+ <properties>
+ <property name="pattern">{0}, {1}</property>
+ <property name="field[0]">name</property>
+ <property name="field[1]">town</property>
+ </properties>
+ </expression>
+ <function name="totalsum" class="org.jfree.report.function.ItemSumFunction">
+ <properties>
+ <property name="field">total</property>
+ <property name="group">Customer</property>
+ </properties>
+ </function>
+ <property-ref name="report.date"/>
+ </functions>
+</report>
Added: labs/reportingservices/trunk/dev/modules/client/samples/etc/script/SendPDFByMail.sh
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/etc/script/SendPDFByMail.sh 2006-12-06 09:38:31 UTC (rev 8081)
+++ labs/reportingservices/trunk/dev/modules/client/samples/etc/script/SendPDFByMail.sh 2006-12-06 09:39:23 UTC (rev 8082)
@@ -0,0 +1,9 @@
+#
+# usage : SendPDFByMail.sh reports/MyReportName fromEmailAddress toEmailAddress
+#
+# ex: SendPDFByMail.sh reports/report3 noel.rocher at jboss.org noel.rocher at jboss.com
+#
+echo "=============================================="
+echo "DON'T FORGET TO SET UP YOUR JBOSS MAIL SERVICE"
+echo "=============================================="
+java -cp client-samples-0.2-SNAPSHOT.jar:client-api-0.2-SNAPSHOT.jar:client-impl-0.2-SNAPSHOT.jar:lib-remoting/jboss-remoting-1.4.1_final.jar org.jboss.reporting.client.SendPDFByMail $1 $2 $3
Added: labs/reportingservices/trunk/dev/modules/client/samples/etc/test1/META-INF/jboss-report.xml
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/etc/test1/META-INF/jboss-report.xml 2006-12-06 09:38:31 UTC (rev 8081)
+++ labs/reportingservices/trunk/dev/modules/client/samples/etc/test1/META-INF/jboss-report.xml 2006-12-06 09:39:23 UTC (rev 8082)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE server>
+
+
+ <!--
+ Sample configuration for the JBoss Enterprise Report Archive.
+ -->
+
+<jboss-report>
+ <security-constraints />
+ <default />
+ <report>
+ <name>/aaa/bbb/myReport</name>
+ <datasource/>
+ <role/>
+ <parameters />
+ </report>
+</jboss-report>
+
Added: labs/reportingservices/trunk/dev/modules/client/samples/etc/test1/RotationReport1.jrxml
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/etc/test1/RotationReport1.jrxml 2006-12-06 09:38:31 UTC (rev 8081)
+++ labs/reportingservices/trunk/dev/modules/client/samples/etc/test1/RotationReport1.jrxml 2006-12-06 09:39:23 UTC (rev 8082)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
+
+<jasperReport name="RotationReport" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30">
+ <title>
+ <band height="782">
+ <staticText>
+ <reportElement mode="Opaque" x="0" y="0" width="90" height="350" backcolor="#c0c0c0"/>
+ <textElement rotation="Left">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Left"
+textAlignment="Left"
+verticalAlignment="Top"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="100" y="0" width="90" height="350" backcolor="#c0c0c0"/>
+ <textElement textAlignment="Center" verticalAlignment="Bottom" rotation="Left">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Left"
+textAlignment="Center"
+verticalAlignment="Bottom"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="200" y="0" width="90" height="350" backcolor="#c0c0c0"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle" rotation="Left">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Left"
+textAlignment="RIght"
+verticalAlignment="Middle"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="255" y="410" width="90" height="350" forecolor="#ffffff" backcolor="#404040"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle" rotation="Right">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Right"
+textAlignment="RIght"
+verticalAlignment="Middle"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="355" y="410" width="90" height="350" forecolor="#ffffff" backcolor="#404040"/>
+ <textElement textAlignment="Center" verticalAlignment="Bottom" rotation="Right">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Right"
+textAlignment="Center"
+verticalAlignment="Bottom"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="455" y="410" width="90" height="350" forecolor="#ffffff" backcolor="#404040"/>
+ <textElement rotation="Right">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Right"
+textAlignment="Left"
+verticalAlignment="Top"]]></text>
+ </staticText>
+ </band>
+ </title>
+</jasperReport>
Added: labs/reportingservices/trunk/dev/modules/client/samples/etc/test1.era
===================================================================
(Binary files differ)
Property changes on: labs/reportingservices/trunk/dev/modules/client/samples/etc/test1.era
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/META-INF/jboss-report.xml
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/META-INF/jboss-report.xml 2006-12-06 09:38:31 UTC (rev 8081)
+++ labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/META-INF/jboss-report.xml 2006-12-06 09:39:23 UTC (rev 8082)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE server>
+
+
+ <!--
+ Sample configuration for the JBoss Enterprise Report Archive.
+ -->
+
+<jboss-report>
+ <security-constraints />
+ <default />
+ <report>
+ <name>/aaa/bbb/myReport</name>
+ <datasource/>
+ <role/>
+ <parameters />
+ </report>
+</jboss-report>
+
Added: labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/RotationReport2.jrxml
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/RotationReport2.jrxml 2006-12-06 09:38:31 UTC (rev 8081)
+++ labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/RotationReport2.jrxml 2006-12-06 09:39:23 UTC (rev 8082)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
+
+<jasperReport name="RotationReport" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30">
+ <title>
+ <band height="782">
+ <staticText>
+ <reportElement mode="Opaque" x="0" y="0" width="90" height="350" backcolor="#c0c0c0"/>
+ <textElement rotation="Left">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Left"
+textAlignment="Left"
+verticalAlignment="Top"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="100" y="0" width="90" height="350" backcolor="#c0c0c0"/>
+ <textElement textAlignment="Center" verticalAlignment="Bottom" rotation="Left">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Left"
+textAlignment="Center"
+verticalAlignment="Bottom"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="200" y="0" width="90" height="350" backcolor="#c0c0c0"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle" rotation="Left">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Left"
+textAlignment="RIght"
+verticalAlignment="Middle"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="255" y="410" width="90" height="350" forecolor="#ffffff" backcolor="#404040"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle" rotation="Right">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Right"
+textAlignment="RIght"
+verticalAlignment="Middle"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="355" y="410" width="90" height="350" forecolor="#ffffff" backcolor="#404040"/>
+ <textElement textAlignment="Center" verticalAlignment="Bottom" rotation="Right">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Right"
+textAlignment="Center"
+verticalAlignment="Bottom"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="455" y="410" width="90" height="350" forecolor="#ffffff" backcolor="#404040"/>
+ <textElement rotation="Right">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Right"
+textAlignment="Left"
+verticalAlignment="Top"]]></text>
+ </staticText>
+ </band>
+ </title>
+</jasperReport>
Added: labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/test2_2/RotationReport2_2.jrxml
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/test2_2/RotationReport2_2.jrxml 2006-12-06 09:38:31 UTC (rev 8081)
+++ labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/test2_2/RotationReport2_2.jrxml 2006-12-06 09:39:23 UTC (rev 8082)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
+
+<jasperReport name="RotationReport" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30">
+ <title>
+ <band height="782">
+ <staticText>
+ <reportElement mode="Opaque" x="0" y="0" width="90" height="350" backcolor="#c0c0c0"/>
+ <textElement rotation="Left">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Left"
+textAlignment="Left"
+verticalAlignment="Top"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="100" y="0" width="90" height="350" backcolor="#c0c0c0"/>
+ <textElement textAlignment="Center" verticalAlignment="Bottom" rotation="Left">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Left"
+textAlignment="Center"
+verticalAlignment="Bottom"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="200" y="0" width="90" height="350" backcolor="#c0c0c0"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle" rotation="Left">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Left"
+textAlignment="RIght"
+verticalAlignment="Middle"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="255" y="410" width="90" height="350" forecolor="#ffffff" backcolor="#404040"/>
+ <textElement textAlignment="Right" verticalAlignment="Middle" rotation="Right">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Right"
+textAlignment="RIght"
+verticalAlignment="Middle"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="355" y="410" width="90" height="350" forecolor="#ffffff" backcolor="#404040"/>
+ <textElement textAlignment="Center" verticalAlignment="Bottom" rotation="Right">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Right"
+textAlignment="Center"
+verticalAlignment="Bottom"]]></text>
+ </staticText>
+ <staticText>
+ <reportElement mode="Opaque" x="455" y="410" width="90" height="350" forecolor="#ffffff" backcolor="#404040"/>
+ <textElement rotation="Right">
+ <font size="14"/>
+ </textElement>
+ <text><![CDATA[rotation="Right"
+textAlignment="Left"
+verticalAlignment="Top"]]></text>
+ </staticText>
+ </band>
+ </title>
+</jasperReport>
Added: labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/test2_2/report3.jfxml
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/test2_2/report3.jfxml 2006-12-06 09:38:31 UTC (rev 8081)
+++ labs/reportingservices/trunk/dev/modules/client/samples/etc/test2/test2_2/report3.jfxml 2006-12-06 09:39:23 UTC (rev 8082)
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE report PUBLIC "-//JFreeReport//DTD report definition//EN//simple/version 0.8.5"
+ "http://jfreereport.sourceforge.net/report-085.dtd">
+<!--
+
+ Defined fields for this TableModel:
+
+ 0: "name" = String;
+ 1: "street" = String;
+ 2: "town" = String;
+ 3: "productcode" = String;
+ 4: "productname" = String;
+ 5: "count" = Integer;
+ 6: "price" = Double;
+ 7: "total" = Double (is calculated inside the model);
+ else
+
+ -->
+<!--
+ ChangeLog:
+ 2002-May-20: Adjusted the width of 0 to be "100%". The parser does translate values of 0 to
+ the full width, but will issue at least a warning. The "Thankyouforyourorder"
+ field now uses multiple lines and uses the autolinebreak capabilities of TextElement.
+
+-->
+<report name="Invoice" pageformat="A4" topmargin="70" leftmargin="70" bottommargin="70" rightmargin="70">
+ <configuration>
+ <property name="org.jfree.report.modules.output.pageable.pdf.Encoding">Identity-H</property>
+ <property name="org.jfree.report.modules.output.pageable.pdf.EmbedFonts">true</property>
+ <property name="org.jfree.report.targets.table.TableWriter.SheetNameFunction">sheetNameExpression</property>
+ </configuration>
+ <!--
+ Needs some better control when to display the page header. Group should be able to declare whether a
+ pageheader should be displayed or not
+
+ <pageheader onfirstpage="false" height="17" fontname="SansSerif" fontstyle="plain" fontsize="11">
+ <label x="0" y="0" width="450" height="12" alignment="right">Salingers Bookstore - you'll get what you deserve</label>
+ <line x1="0" y1="15" x2="0" y2="15" weight="0.5"/>
+ </pageheader>
+ <pageheader height="40"/>
+ <pagefooter height="0"/>
+ -->
+ <groups>
+ <group name="Customer">
+ <groupheader height="355" fontname="SansSerif" fontstyle="plain" fontsize="11" pagebreak-before-print="true">
+ <label name="Line1" x="0" y="12" width="200" height="12" alignment="left">Salingers Bookstore</label>
+ <label name="Line2" x="0" y="24" width="200" height="12" alignment="left">19a Hollow Road</label>
+ <label name="Line3" x="0" y="48" width="200" height="12" alignment="left">9999 Boston</label>
+ <!-- Silly demo of JFreeReports Image Capabilies. Uses WMF, JPG, GIF or PNG files as source
+ <drawableref x="200" y="48" width="100" height="90" src="anim0002.wmf" name="logo"/>
+-->
+ <string-field name="FName" x="0" y="84" width="200" height="12" alignment="left" fieldname="name"/>
+ <string-field name="FStreet" x="0" y="96" width="200" height="12" alignment="left" fieldname="street"/>
+ <string-field name="FTown" x="0" y="120" width="200" height="12" alignment="left" fieldname="town"/>
+ <!-- <rectangle name="Rect" x="0" y="0" width="100%" height="100%" color="#0000FF" draw="true" fill="false"/> -->
+ <message-field name="Date" x="0" y="224" width="100%" height="12" alignment="right" fontstyle="plain"
+ >Invoice for your order from {$(report.date), date,EEE, MMM d, yyyy}</message-field>
+ <label name="Customer" x="0" y="290" width="450" height="12" alignment="left"
+ fontname="Arial Unicode MS" fontstyle="plain" fontsize="11"
+ >Dear customer,</label>
+ <!-- >Dear customer, (Unicode Test 1: ツールとユーティリティ)</label> -->
+ <label name="Received" x="0" y="314" width="450" height="12" alignment="left"
+ >We received your order and will deliver the following articles to your address:</label>
+ <label name="LCode" x="0" y="340" width="80" height="12" alignment="left">Code</label>
+ <label name="LProd" x="100" y="340" width="200" height="12" alignment="left">Product</label>
+ <label name="LCount" x="300" y="340" width="50" height="12" alignment="left">Count</label>
+ <label name="LPrice" x="350" y="340" width="50" height="12" alignment="left">Price</label>
+ <label name="LTotal" x="400" y="340" width="50" height="12" alignment="left">Total</label>
+ <line name="line_end" x1="0" y1="353" x2="100%" y2="353" weight="0.5"/>
+ </groupheader>
+ <groupfooter height="0" fontname="SansSerif" fontstyle="plain" fontsize="11">
+ <!-- <rectangle x="0" y="0" width="100%" height="100%" color="#0000FF" draw="true" fill="false"/> -->
+ <line x1="0" y1="10" x2="100%" y2="10" weight="0.5"/>
+ <label x="200" y="20" width="200" height="12" alignment="left">Total Sum of</label>
+ <number-field x="400" y="20" width="70" height="12" alignment="left" format="'$' #,##0.00" fieldname="totalsum"/>
+ <line x1="200" y1="34" x2="300" y2="34" width="100%" height="0" weight="0.5"/>
+ <line x1="200" y1="37" x2="300" y2="37" width="100%" height="0" weight="0.5"/>
+ <label name="trace" x="0" y="84" width="100%" height="0" alignment="left" fontname="Arial Unicode MS" dynamic="true" vertical-alignment="top"
+ >We thank you for your order and hope to see you soon again. Please pay your invoice within the next 10 days.
+
+Yours sincerely,
+
+
+
+John W. Who, Salesman</label>
+ </groupfooter>
+ <fields>
+ <field>name</field>
+ <field>street</field>
+ <field>town</field>
+ </fields>
+ </group>
+ </groups>
+
+ <items height="12">
+ <string-field x="0" y="0" width="50" height="12" alignment="left" fieldname="productcode"/>
+ <string-field x="70" y="0" width="230" height="12" alignment="left" fieldname="productname"/>
+ <number-field x="300" y="0" width="50" height="12" alignment="left" format="#,##0" fieldname="count"/>
+ <number-field x="350" y="0" width="50" height="12" alignment="left" format="'$' #,##0.00" fieldname="price"/>
+ <number-field x="400" y="0" width="70" height="12" alignment="left" format="'$' #,##0.00" fieldname="total"/>
+ </items>
+ <functions>
+ <expression name="sheetNameExpression" class="org.jfree.report.function.TextFormatExpression">
+ <properties>
+ <property name="pattern">{0}, {1}</property>
+ <property name="field[0]">name</property>
+ <property name="field[1]">town</property>
+ </properties>
+ </expression>
+ <function name="totalsum" class="org.jfree.report.function.ItemSumFunction">
+ <properties>
+ <property name="field">total</property>
+ <property name="group">Customer</property>
+ </properties>
+ </function>
+ <property-ref name="report.date"/>
+ </functions>
+</report>
Added: labs/reportingservices/trunk/dev/modules/client/samples/etc/test2.era
===================================================================
(Binary files differ)
Property changes on: labs/reportingservices/trunk/dev/modules/client/samples/etc/test2.era
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: labs/reportingservices/trunk/dev/modules/client/samples/pom.xml
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/pom.xml 2006-12-06 09:38:31 UTC (rev 8081)
+++ labs/reportingservices/trunk/dev/modules/client/samples/pom.xml 2006-12-06 09:39:23 UTC (rev 8082)
@@ -0,0 +1,75 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <parent>
+ <groupId>jboss.reportingservices</groupId>
+ <artifactId>client</artifactId>
+ <version>0.2-SNAPSHOT</version>
+ </parent>
+
+
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>reporting-services-samples</artifactId>
+ <name>Client - Sample</name>
+ <packaging>jar</packaging>
+
+
+ <dependencies>
+ <!-- internal dependencies -->
+ <dependency>
+ <groupId>jboss.reportingservices</groupId>
+ <artifactId>reporting-services-client-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>jboss.reportingservices</groupId>
+ <artifactId>reporting-services-client-impl</artifactId>
+ </dependency>
+
+ <!-- external dependencies -->
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-system</artifactId>
+ <version>4.0.2</version>
+ <!-- scope>provided</scope-->
+ </dependency>
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-remoting</artifactId>
+ <version>1.4.1_final</version>
+ <!-- scope>provided</scope-->
+ </dependency>
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-serialization</artifactId>
+ <version>1.0.3.GA</version>
+ <!-- scope>provided</scope-->
+ </dependency>
+ <dependency>
+ <groupId>jboss</groupId>
+ <artifactId>jboss-common</artifactId>
+ <version>4.0.2</version>
+ <!-- scope>provided</scope-->
+ </dependency>
+ </dependencies>
+ <!-- build>
+ <plugins>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>dependency-maven-plugin</artifactId>
+ <inherited>false</inherited>
+ <executions>
+ <execution>
+ <id>copy-dependencies</id>
+ <phase>package</phase>
+ <goals>
+ <goal>copy-dependencies</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>${basedir}/lib</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build-->
+
+</project>
\ No newline at end of file
Added: labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/CopyPDFToDirEveryNmin.java
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/CopyPDFToDirEveryNmin.java 2006-12-06 09:38:31 UTC (rev 8081)
+++ labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/CopyPDFToDirEveryNmin.java 2006-12-06 09:39:23 UTC (rev 8082)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package org.jboss.reporting.client;
+
+import java.io.BufferedOutputStream;
+import java.io.File;
+import java.io.FileOutputStream;
+
+import org.jboss.reporting.api.Report;
+import org.jboss.reporting.api.ReportTask;
+import org.jboss.reporting.api.distribute.DistributeByMail;
+import org.jboss.reporting.api.impl.ReportTaskFactory;
+
+/**
+ * A simple example that is copying the report result into a directory. The report is
+ * executed every N minutes.
+ * Default are used for PDF output.
+ *
+ * @author noel
+ */
+public class CopyPDFToDirEveryNmin
+{
+
+ /**
+ * arg[0] = report name to launch (the name used by reporting-services. For ex: reports/MyReport)
+ * arg[1] = directory name where results are to be copied
+ * arg[2] = number of minute for the periode
+ * @param args
+ */
+ public static void main(String[] args)
+ {
+ if (args.length != 3)
+ {
+ System.out.println("usage : java CopyPDFToDirEveryNmin arg0 arg1 arg2 \n" +
+ "\twith:\n" +
+ "\targ0 = report name to launch (the name used by reporting-services. For ex: reports/MyReport)\n" +
+ "\targ1 = directory name where results are to be copied\n" +
+ "\targ2 = number of minute for the periode" );
+ }
+ else
+ {
+ process(args[0], args[1], args[2]);
+ }
+
+ }
+
+
+
+ public static void process(String in_reportName, String in_directoryName, int in_numberOfMinute)
+ {
+ try
+ {
+ ReportTask rt = ReportTaskFactory.getInstance();
+ Report r = new Report(in_reportName);
+ rt.setReport( r );
+ rt.setDistribute(new DistributeByFileCopy(in_directoryName));
+ rt.setSchedule(new SchedulePeriodic(Calendar.getInstance(),in_numberOfMinute, SchedulePeriodic.PERIODE_UNIT_MINUTE));
+
+ rt.submit();
+
+ } catch (Exception e)
+ {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+
+}
Added: labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/SendPDFByMail.java
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/SendPDFByMail.java 2006-12-06 09:38:31 UTC (rev 8081)
+++ labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/SendPDFByMail.java 2006-12-06 09:39:23 UTC (rev 8082)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package org.jboss.reporting.client;
+
+import java.io.BufferedOutputStream;
+import java.io.File;
+import java.io.FileOutputStream;
+
+import org.jboss.reporting.api.Report;
+import org.jboss.reporting.api.ReportTask;
+import org.jboss.reporting.api.distribute.DistributeByMail;
+import org.jboss.reporting.api.impl.ReportTaskFactory;
+
+/**
+ * A simple example that is sending the report result by mail
+ * Default are used for PDF output and the mail subject.
+ * No CC/BCC for the mail and no lists either
+ *
+ * @author noel
+ */
+public class SendPDFByMail
+{
+
+ /**
+ * arg[0] = report name to launch (the name used by reporting-services. For ex: reports/MyReport)
+ * arg[1] = email address for sent from
+ * arg[2] = email address for send to
+ * @param args
+ */
+ public static void main(String[] args)
+ {
+ if (args.length != 3)
+ {
+ System.out.println("usage : java SendPDFByMail arg0 arg1 arg2 \n" +
+ "\twith:\n" +
+ "\targ0 = report name to launch (the name used by reporting-services. For ex: reports/MyReport)\n" +
+ "\targ1 = email address for sent from\n" +
+ "\targ2 = email address for send to" +
+ "\n\n Note : Don't forget to set up the mail service in your JBoss AS.");
+ }
+ else
+ {
+ send(args[0], args[1], args[2]);
+ }
+
+ }
+
+
+
+ public static void send(String in_reportName, String in_sentFrom, String in_sendTo)
+ {
+ try
+ {
+ ReportTask rt = ReportTaskFactory.getInstance();
+ Report r = new Report(in_reportName);
+ rt.setReport( r );
+
+ DistributeByMail dist = new DistributeByMail(in_sentFrom, in_sendTo);
+ rt.setDistribute( dist );
+
+ rt.submit();
+
+ } catch (Exception e)
+ {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+
+}
Added: labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/SimpleClient.java
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/SimpleClient.java 2006-12-06 09:38:31 UTC (rev 8081)
+++ labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/SimpleClient.java 2006-12-06 09:39:23 UTC (rev 8082)
@@ -0,0 +1,99 @@
+/*
+ * JBoss, Home of Professional Open Source
+ *
+ * Distributable under LGPL license.
+ * See terms of license at gnu.org.
+ */
+package org.jboss.reporting.client;
+
+import java.io.BufferedOutputStream;
+import java.io.File;
+import java.io.FileOutputStream;
+
+import org.jboss.reporting.api.Report;
+import org.jboss.reporting.api.ReportData;
+import org.jboss.reporting.api.ReportTask;
+import org.jboss.reporting.api.impl.ReportTaskFactory;
+import org.jboss.reporting.client.jfreereport.SampleData3;
+
+/**
+ * @author noel
+ *
+ */
+public class SimpleClient
+{
+
+ /**
+ * arg[0] = directory name where result files will be written
+ * @param args
+ */
+ public static void main(String[] args)
+ {
+ byte[] result = null;
+ String directoryName="";
+ Report r=null;
+ ReportTask rt=null;
+
+ if (args.length == 1)
+ {
+ directoryName=args[0];
+ }
+
+ try
+ {
+ // a simple jasperreports example
+ result = ReportTaskFactory.getInstance().executeToByteArray("reports/test1.era/test1/RotationReport1");
+ System.out.println("result size = " + result.length);
+ SimpleClient.writeToFile("", "test1Rotation.pdf", result);
+
+ // a simple jfreereport example
+ r = new Report("reports/test2.era/test2/test2_2/report3");
+ r = new Report("reports/report3");
+ r.setData( new ReportData( new SampleData3() ) );
+ rt = ReportTaskFactory.getInstance();
+ rt.setReport( r );
+
+ result = rt.executeToByteArray();
+ System.out.println("result size = " + result.length);
+ SimpleClient.writeToFile(directoryName, "report3.pdf", result);
+
+//
+// // a simple jasperreport example scheduled in three minutes by file copy
+// r = new Report("reports/test1.era/RotationReport1");
+// rt = ReportTaskFactory.getInstance();
+// rt.setReport( r );
+// rt.setDistribute(new DistributeByFileCopy());
+// Calendar inThreeMin = Calendar.getInstance();
+// inThreeMin.add(Calendar.MINUTE, 3);
+// rt.setSchedule(new ScheduleOnce( inThreeMin ));
+//// rt.setSchedule(new ScheduleNow());
+// rt.submit();
+//
+// rt.setSchedule(new SchedulePeriodic(Calendar.getInstance(),1, SchedulePeriodic.PERIODE_UNIT_MINUTE));
+// rt.submit();
+
+ } catch (Exception e)
+ {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+ }
+
+
+ public static void writeToFile(String in_directoryName, String in_fileName, byte[] in_content)
+ {
+ File file=null;
+ try
+ {
+ file=new File(in_fileName);
+ if (file.exists()) file.delete();
+ BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(file));
+ out.write(in_content);
+ out.close();
+ } catch (Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
+
+}
Added: labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/jfreereport/SampleData3.java
===================================================================
--- labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/jfreereport/SampleData3.java 2006-12-06 09:38:31 UTC (rev 8081)
+++ labs/reportingservices/trunk/dev/modules/client/samples/src/main/java/org/jboss/reporting/client/jfreereport/SampleData3.java 2006-12-06 09:39:23 UTC (rev 8082)
@@ -0,0 +1,194 @@
+/**
+ * ========================================
+ * JFreeReport : a free Java report library
+ * ========================================
+ *
+ * Project Info: http://www.jfree.org/jfreereport/index.html
+ * Project Lead: Thomas Morgner;
+ *
+ * (C) Copyright 2000-2002, by Simba Management Limited and Contributors.
+ *
+ * This library is free software; you can redistribute it and/or modify it under the terms
+ * of the GNU Lesser General Public License as published by the Free Software Foundation;
+ * either version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
+ * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License along with this
+ * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ * ----------------
+ * SampleData3.java
+ * ----------------
+ * (C)opyright 2000-2002, by Simba Management Limited.
+ *
+ *
+ * $Id: SampleData3.java,v 1.7 2005/02/23 21:04:39 taqua Exp $
+ *
+ */
+package org.jboss.reporting.client.jfreereport;
+
+import java.io.Serializable;
+
+import javax.swing.table.AbstractTableModel;
+
+/**
+ * A sample data source for the JFreeReport Demo Application.
+ *
+ * @author Thomas Morgner
+ */
+public class SampleData3 extends AbstractTableModel implements Serializable
+{
+
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Storage for the data.
+ */
+ private final Object[][] data;
+
+ /**
+ * Default constructor - builds a sample data source.
+ */
+ public SampleData3 ()
+ {
+ data = new Object[][]
+ {
+ {"Mr. Black", "1666 Pennsylvania Ave.", "012345 Washington", "01212",
+ "Robert A. Heinlein - Starship Trooper", new Integer(1), new Double(12.49)},
+ {"Mr. Black", "1666 Pennsylvania Ave.", "012345 Washington", "01231",
+ "Robert A. Heinlein - Glory Road", new Integer(1), new Double(12.99)},
+ {"Mr. Black", "1666 Pennsylvania Ave.", "012345 Washington", "12121",
+ "Frank Herbert - Dune", new Integer(1), new Double(10.99)},
+ {"Mr. Black", "1666 Pennsylvania Ave.", "012345 Washington", "A1232",
+ "Bierce Ambrose - The Devils Dictionary", new Integer(2), new Double(19.99)},
+ {"John F. Google", "12a Nowaday Road", "99999 Boston", "12333",
+ "Samuel Adams - How to sell tea ", new Integer(100), new Double(10.99)},
+ {"John F. Google", "12a Nowaday Road", "99999 Boston", "88812",
+ "Adam Smith - The wealth of nations", new Integer(1), new Double(49.95)},
+ {"John F. Google", "12a Nowaday Road", "99999 Boston", "33123",
+ "D. Khan - How to conquer friends", new Integer(1), new Double(15.99)},
+ {"John F. Google", "12a Nowaday Road", "99999 Boston", "33123",
+ "D. Khan - How to conquer friends", new Integer(1), new Double(19.49)},
+ {"Cleeve Johnson", "87 Oakham Drive", "99999 Boston", "33123",
+ "D. Khan - How to conquer friends", new Integer(1), new Double(15.99)},
+ {"Cleeve Johnson", "87 Oakham Drive", "99999 Boston", "33123",
+ "J. Ceaser - Choosing the right friends", new Integer(1), new Double(25.99)},
+ {"Cleeve Johnson", "87 Oakham Drive", "99999 Boston", "33123",
+ "Galileo - When to tell the truth", new Integer(1), new Double(29.59)}
+ };
+ }
+
+ /**
+ * Returns the number of rows in the table model.
+ *
+ * @return the row count.
+ */
+ public int getRowCount ()
+ {
+ return data.length;
+ }
+
+ /**
+ * Returns the number of columns in the table model.
+ *
+ * @return the column count.
+ */
+ public int getColumnCount ()
+ {
+ return 8;
+ }
+
+ /**
+ * Returns the class of the data in the specified column.
+ *
+ * @param column the column (zero-based index).
+ * @return the column class.
+ */
+ public Class getColumnClass (final int column)
+ {
+ if (column == 5)
+ {
+ return Integer.class;
+ }
+ else if (column == 6)
+ {
+ return Double.class;
+ }
+ else
+ {
+ return String.class;
+ }
+ }
+
+ /**
+ * Returns the name of the specified column.
+ *
+ * @param column the column (zero-based index).
+ * @return the column name.
+ */
+ public String getColumnName (final int column)
+ {
+ if (column == 0)
+ {
+ return "name";
+ }
+ else if (column == 1)
+ {
+ return "street";
+ }
+ else if (column == 2)
+ {
+ return "town";
+ }
+ else if (column == 3)
+ {
+ return "productcode";
+ }
+ else if (column == 4)
+ {
+ return "productname";
+ }
+ else if (column == 5)
+ {
+ return "count";
+ }
+ else if (column == 6)
+ {
+ return "price";
+ }
+ else if (column == 7)
+ {
+ return "total";
+ }
+ else
+ {
+ return null;
+ }
+ }
+
+ /**
+ * Returns the data value at the specified row and column.
+ *
+ * @param row the row index (zero based).
+ * @param column the column index (zero based).
+ * @return the value.
+ */
+ public Object getValueAt (final int row, final int column)
+ {
+ if (column == 7)
+ {
+ final Integer i = (Integer) data[row][5];
+ final Double d = (Double) data[row][6];
+ return new Double(i.intValue() * d.doubleValue());
+ }
+ else
+ {
+ return data[row][column];
+ }
+ }
+
+}
More information about the jboss-svn-commits
mailing list