net.sf.jasperreports.engine.base
Class JRBaseReport

java.lang.Object
  extended bynet.sf.jasperreports.engine.base.JRBaseReport
All Implemented Interfaces:
JRDefaultFontProvider, JRReport, java.io.Serializable
Direct Known Subclasses:
JasperDesign, JasperReport

public class JRBaseReport
extends java.lang.Object
implements JRReport, java.io.Serializable

Version:
$Id: JRBaseReport.java,v 1.31 2005/09/07 13:58:25 teodord Exp $
Author:
Teodor Danciu (teodord@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  JRBand background
           
protected  int bottomMargin
           
protected  int columnCount
           
protected  JRBand columnFooter
           
protected  JRBand columnHeader
           
protected  int columnSpacing
           
protected  int columnWidth
           
protected  JRReportFont defaultFont
           
protected  JRBand detail
           
protected  JRField[] fields
           
protected  JRReportFont[] fonts
           
protected  JRGroup[] groups
           
protected  java.util.Set importsSet
           
protected  boolean isFloatColumnFooter
           
protected  boolean isSummaryNewPage
           
protected  boolean isTitleNewPage
           
protected  java.lang.String language
           
protected  JRBand lastPageFooter
           
protected  int leftMargin
           
protected  java.lang.String name
           
protected  byte orientation
           
protected  JRBand pageFooter
           
protected  JRBand pageHeader
           
protected  int pageHeight
           
protected  int pageWidth
           
protected  JRParameter[] parameters
           
protected  byte printOrder
           
protected  java.util.Map propertiesMap
           
protected  JRQuery query
           
protected  java.lang.String resourceBundle
           
protected  int rightMargin
           
protected  java.lang.String scriptletClass
           
protected  JRBand summary
           
protected  JRBand title
           
protected  int topMargin
           
protected  JRVariable[] variables
           
protected  byte whenNoDataType
           
protected  byte whenResourceMissingType
          The resource missing handling type.
 
Fields inherited from interface net.sf.jasperreports.engine.JRReport
LANGUAGE_JAVA, ORIENTATION_LANDSCAPE, ORIENTATION_PORTRAIT, PRINT_ORDER_HORIZONTAL, PRINT_ORDER_VERTICAL, WHEN_NO_DATA_TYPE_ALL_SECTIONS_NO_DETAIL, WHEN_NO_DATA_TYPE_BLANK_PAGE, WHEN_NO_DATA_TYPE_NO_PAGES, WHEN_RESOURCE_MISSING_TYPE_EMPTY, WHEN_RESOURCE_MISSING_TYPE_ERROR, WHEN_RESOURCE_MISSING_TYPE_KEY, WHEN_RESOURCE_MISSING_TYPE_NULL
 
Constructor Summary
JRBaseReport()
           
JRBaseReport(JRReport report)
           
 
Method Summary
 JRBand getBackground()
           
 int getBottomMargin()
           
 int getColumnCount()
          Gets the number of columns on each page
 JRBand getColumnFooter()
           
 JRBand getColumnHeader()
           
 int getColumnSpacing()
          Specifies the space between columns on the same page.
 int getColumnWidth()
           
 JRReportFont getDefaultFont()
          Returns a default font.
 JRBand getDetail()
           
 JRField[] getFields()
           
 JRReportFont[] getFonts()
          Gets an array of report fonts.
 JRGroup[] getGroups()
           
 java.lang.String[] getImports()
          Gets an array of imports (needed if report expression require additional classes in order to compile).
 java.lang.String getLanguage()
          Gets the report language.
 JRBand getLastPageFooter()
           
 int getLeftMargin()
           
 java.lang.String getName()
          Gets the report name.
 byte getOrientation()
           
 JRBand getPageFooter()
           
 JRBand getPageHeader()
           
 int getPageHeight()
           
 int getPageWidth()
           
 JRParameter[] getParameters()
           
 byte getPrintOrder()
          Specifies whether columns will be filled horizontally or vertically.
 java.lang.String getProperty(java.lang.String propName)
          Gets a property value
 java.lang.String[] getPropertyNames()
          Gets an array of report properties names.
 JRQuery getQuery()
           
 java.lang.String getResourceBundle()
          Gets the base name of the report associated resource bundle.
 int getRightMargin()
           
 java.lang.String getScriptletClass()
           
 JRBand getSummary()
           
 JRBand getTitle()
           
 int getTopMargin()
           
 JRVariable[] getVariables()
           
 byte getWhenNoDataType()
          Specifies the report behaviour in case of empty datasources.
 byte getWhenResourceMissingType()
          Returns the resource missing handling type.
 boolean isFloatColumnFooter()
          Specifie if the column footer section will be printed at the bottom of the column or if it will immediately follow the last detail or group footer printed on the current column.
 boolean isSummaryNewPage()
          Specifies if the summary section will be printed on a separate last page.
 boolean isTitleNewPage()
          Specifies if the title section will be printed on a separate initial page.
 void removeProperty(java.lang.String propName)
           
 void setProperty(java.lang.String propName, java.lang.String value)
           
 void setWhenNoDataType(byte whenNoDataType)
          Sets the report behaviour in case of empty datasources.
 void setWhenResourceMissingType(byte whenResourceMissingType)
          Sets the resource missing handling type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

language

protected java.lang.String language

columnCount

protected int columnCount

printOrder

protected byte printOrder

pageWidth

protected int pageWidth

pageHeight

protected int pageHeight

orientation

protected byte orientation

whenNoDataType

protected byte whenNoDataType

columnWidth

protected int columnWidth

columnSpacing

protected int columnSpacing

leftMargin

protected int leftMargin

rightMargin

protected int rightMargin

topMargin

protected int topMargin

bottomMargin

protected int bottomMargin

isTitleNewPage

protected boolean isTitleNewPage

isSummaryNewPage

protected boolean isSummaryNewPage

isFloatColumnFooter

protected boolean isFloatColumnFooter

scriptletClass

protected java.lang.String scriptletClass

resourceBundle

protected java.lang.String resourceBundle

whenResourceMissingType

protected byte whenResourceMissingType
The resource missing handling type.


propertiesMap

protected java.util.Map propertiesMap

importsSet

protected java.util.Set importsSet

defaultFont

protected JRReportFont defaultFont

fonts

protected JRReportFont[] fonts

parameters

protected JRParameter[] parameters

query

protected JRQuery query

fields

protected JRField[] fields

variables

protected JRVariable[] variables

groups

protected JRGroup[] groups

background

protected JRBand background

title

protected JRBand title

pageHeader

protected JRBand pageHeader

columnHeader

protected JRBand columnHeader

detail

protected JRBand detail

columnFooter

protected JRBand columnFooter

pageFooter

protected JRBand pageFooter

lastPageFooter

protected JRBand lastPageFooter

summary

protected JRBand summary
Constructor Detail

JRBaseReport

public JRBaseReport()

JRBaseReport

public JRBaseReport(JRReport report)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: JRReport
Gets the report name.

Specified by:
getName in interface JRReport

getLanguage

public java.lang.String getLanguage()
Description copied from interface: JRReport
Gets the report language. Should be Java or Groovy.

Specified by:
getLanguage in interface JRReport

getColumnCount

public int getColumnCount()
Description copied from interface: JRReport
Gets the number of columns on each page

Specified by:
getColumnCount in interface JRReport

getPrintOrder

public byte getPrintOrder()
Description copied from interface: JRReport
Specifies whether columns will be filled horizontally or vertically.

Specified by:
getPrintOrder in interface JRReport
See Also:
PRINT_ORDER_VERTICAL,, PRINT_ORDER_HORIZONTAL

getPageWidth

public int getPageWidth()
Specified by:
getPageWidth in interface JRReport

getPageHeight

public int getPageHeight()
Specified by:
getPageHeight in interface JRReport

getOrientation

public byte getOrientation()
Specified by:
getOrientation in interface JRReport

getWhenNoDataType

public byte getWhenNoDataType()
Description copied from interface: JRReport
Specifies the report behaviour in case of empty datasources.

Specified by:
getWhenNoDataType in interface JRReport

setWhenNoDataType

public void setWhenNoDataType(byte whenNoDataType)
Description copied from interface: JRReport
Sets the report behaviour in case of empty datasources.

Specified by:
setWhenNoDataType in interface JRReport

getColumnWidth

public int getColumnWidth()
Specified by:
getColumnWidth in interface JRReport

getColumnSpacing

public int getColumnSpacing()
Description copied from interface: JRReport
Specifies the space between columns on the same page.

Specified by:
getColumnSpacing in interface JRReport

getLeftMargin

public int getLeftMargin()
Specified by:
getLeftMargin in interface JRReport

getRightMargin

public int getRightMargin()
Specified by:
getRightMargin in interface JRReport

getTopMargin

public int getTopMargin()
Specified by:
getTopMargin in interface JRReport

getBottomMargin

public int getBottomMargin()
Specified by:
getBottomMargin in interface JRReport

isTitleNewPage

public boolean isTitleNewPage()
Description copied from interface: JRReport
Specifies if the title section will be printed on a separate initial page.

Specified by:
isTitleNewPage in interface JRReport

isSummaryNewPage

public boolean isSummaryNewPage()
Description copied from interface: JRReport
Specifies if the summary section will be printed on a separate last page.

Specified by:
isSummaryNewPage in interface JRReport

isFloatColumnFooter

public boolean isFloatColumnFooter()
Description copied from interface: JRReport
Specifie if the column footer section will be printed at the bottom of the column or if it will immediately follow the last detail or group footer printed on the current column.

Specified by:
isFloatColumnFooter in interface JRReport

getScriptletClass

public java.lang.String getScriptletClass()
Specified by:
getScriptletClass in interface JRReport

getResourceBundle

public java.lang.String getResourceBundle()
Description copied from interface: JRReport
Gets the base name of the report associated resource bundle.

Specified by:
getResourceBundle in interface JRReport

getPropertyNames

public java.lang.String[] getPropertyNames()
Description copied from interface: JRReport
Gets an array of report properties names.

Specified by:
getPropertyNames in interface JRReport

getProperty

public java.lang.String getProperty(java.lang.String propName)
Description copied from interface: JRReport
Gets a property value

Specified by:
getProperty in interface JRReport
Parameters:
propName - the property name

setProperty

public void setProperty(java.lang.String propName,
                        java.lang.String value)
Specified by:
setProperty in interface JRReport

removeProperty

public void removeProperty(java.lang.String propName)
Specified by:
removeProperty in interface JRReport

getImports

public java.lang.String[] getImports()
Description copied from interface: JRReport
Gets an array of imports (needed if report expression require additional classes in order to compile).

Specified by:
getImports in interface JRReport

getDefaultFont

public JRReportFont getDefaultFont()
Description copied from interface: JRDefaultFontProvider
Returns a default font.

Specified by:
getDefaultFont in interface JRDefaultFontProvider

getFonts

public JRReportFont[] getFonts()
Description copied from interface: JRReport
Gets an array of report fonts.

Specified by:
getFonts in interface JRReport

getParameters

public JRParameter[] getParameters()
Specified by:
getParameters in interface JRReport

getQuery

public JRQuery getQuery()
Specified by:
getQuery in interface JRReport

getFields

public JRField[] getFields()
Specified by:
getFields in interface JRReport

getVariables

public JRVariable[] getVariables()
Specified by:
getVariables in interface JRReport

getGroups

public JRGroup[] getGroups()
Specified by:
getGroups in interface JRReport

getBackground

public JRBand getBackground()
Specified by:
getBackground in interface JRReport

getTitle

public JRBand getTitle()
Specified by:
getTitle in interface JRReport

getPageHeader

public JRBand getPageHeader()
Specified by:
getPageHeader in interface JRReport

getColumnHeader

public JRBand getColumnHeader()
Specified by:
getColumnHeader in interface JRReport

getDetail

public JRBand getDetail()
Specified by:
getDetail in interface JRReport

getColumnFooter

public JRBand getColumnFooter()
Specified by:
getColumnFooter in interface JRReport

getPageFooter

public JRBand getPageFooter()
Specified by:
getPageFooter in interface JRReport

getLastPageFooter

public JRBand getLastPageFooter()
Specified by:
getLastPageFooter in interface JRReport

getSummary

public JRBand getSummary()
Specified by:
getSummary in interface JRReport

getWhenResourceMissingType

public byte getWhenResourceMissingType()
Description copied from interface: JRReport
Returns the resource missing handling type.

Specified by:
getWhenResourceMissingType in interface JRReport

setWhenResourceMissingType

public void setWhenResourceMissingType(byte whenResourceMissingType)
Description copied from interface: JRReport
Sets the resource missing handling type.

Specified by:
setWhenResourceMissingType in interface JRReport
Parameters:
whenResourceMissingType - the resource missing handling type


© 2001-2005 JasperSoft Corporation www.jaspersoft.com