wicket.contrib.jasperreports
Class JRTextResource

java.lang.Object
  extended by org.apache.wicket.Resource
      extended by org.apache.wicket.markup.html.WebResource
          extended by org.apache.wicket.markup.html.DynamicWebResource
              extended by wicket.contrib.jasperreports.JRResource
                  extended by wicket.contrib.jasperreports.JRTextResource
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.IRequestListener, org.apache.wicket.IResourceListener

public final class JRTextResource
extends JRResource

Resource class for jasper reports text resources.

Author:
Eelco Hillenius
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class wicket.contrib.jasperreports.JRResource
JRResource.IDatabaseConnectionProvider
 
Nested classes/interfaces inherited from class org.apache.wicket.markup.html.DynamicWebResource
org.apache.wicket.markup.html.DynamicWebResource.ResourceState
 
Field Summary
 
Fields inherited from interface org.apache.wicket.IResourceListener
INTERFACE
 
Constructor Summary
JRTextResource()
          Construct without a report.
JRTextResource(java.io.File report)
          Construct.
JRTextResource(java.io.InputStream report)
          Construct.
JRTextResource(java.net.URL report)
          Construct.
 
Method Summary
 java.lang.String getContentType()
           
 java.lang.String getExtension()
          Returns the extension for the resource's file.
 int getPageHeight()
          Gets page height.
 int getPageWidth()
          Gets page width.
 net.sf.jasperreports.engine.JRAbstractExporter newExporter()
          Called by getData to obtain an exporter instance.
 void setPageHeight(int height)
          Sets page height.
 void setPageWidth(int width)
          Sets page width.
 
Methods inherited from class wicket.contrib.jasperreports.JRResource
getConnectionProvider, getFileName, getJasperReport, getReportDataSource, getReportParameters, getResourceState, newJasperPrint, setConnectionProvider, setFileName, setHeaders, setJasperReport, setReportDataSource, setReportParameters
 
Methods inherited from class org.apache.wicket.markup.html.DynamicWebResource
getLocale, getResourceStream
 
Methods inherited from class org.apache.wicket.markup.html.WebResource
configureResponse, getCacheDuration
 
Methods inherited from class org.apache.wicket.Resource
getParameters, invalidate, isCacheable, onResourceRequested, setCacheable, setParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JRTextResource

public JRTextResource()
Construct without a report. You must provide a report before you can use this resource.


JRTextResource

public JRTextResource(java.io.InputStream report)
Construct.

Parameters:
report - the report input stream

JRTextResource

public JRTextResource(java.net.URL report)
Construct.

Parameters:
report - the report input stream

JRTextResource

public JRTextResource(java.io.File report)
Construct.

Parameters:
report - the report input stream
Method Detail

newExporter

public net.sf.jasperreports.engine.JRAbstractExporter newExporter()
Description copied from class: JRResource
Called by getData to obtain an exporter instance.

Specified by:
newExporter in class JRResource
Returns:
an exporter instance
See Also:
JRResource.newExporter()

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in class JRResource
Returns:
The content type of the reports
See Also:
JRResource.getContentType()

getPageHeight

public int getPageHeight()
Gets page height.

Returns:
an integer representing the page height in characters

setPageHeight

public void setPageHeight(int height)
Sets page height.

Parameters:
height - an integer representing the page height in characters

getPageWidth

public int getPageWidth()
Gets page width.

Returns:
an integer representing the page width in characters

setPageWidth

public void setPageWidth(int width)
Sets page width.

Parameters:
width - an integer representing the page width in characters

getExtension

public java.lang.String getExtension()
Description copied from class: JRResource
Returns the extension for the resource's file. This string should not contain the leading "."

Specified by:
getExtension in class JRResource
Returns:
The extension for the resource's file.
See Also:
JRResource.getExtension()


Copyright © 2005-2010. All Rights Reserved.