|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.components.table.fill.TableReport
public class TableReport
Nested Class Summary | |
---|---|
protected class |
TableReport.ColumnHeaderCreator
|
protected class |
TableReport.DetailBandCreator
|
protected class |
TableReport.GroupFooterCreator
|
protected class |
TableReport.GroupHeaderCreator
|
protected class |
TableReport.PageFooterCreator
|
protected class |
TableReport.ReportBandCreator
|
protected class |
TableReport.ReportBandInfo
|
protected class |
TableReport.ReverseReportBandCreator
|
protected class |
TableReport.SummaryCreator
|
protected class |
TableReport.SummaryGroupFooterPrintWhenEvaluator
|
protected class |
TableReport.TitleCreator
|
Field Summary | |
---|---|
protected static java.lang.String |
SUMMARY_GROUP_NAME
|
protected static java.lang.String |
TABLE_SCRIPTLET_NAME
|
Constructor Summary | |
---|---|
TableReport(FillContext fillContext,
TableReportDataset mainDataset,
java.util.List<FillColumn> fillColumns,
java.util.Map<JRExpression,BuiltinExpressionEvaluator> builtinEvaluators)
|
Method Summary | |
---|---|
protected void |
addSummaryGroup(java.util.List<FillColumn> fillColumns,
java.util.Map<JRExpression,BuiltinExpressionEvaluator> builtinEvaluators)
|
protected int |
computeTableWidth(java.util.List<FillColumn> fillColumns)
|
protected JRDesignFrame |
createCellFrame(Cell cell,
int originalWidth,
int width,
int x,
int y)
|
protected JRDesignBand |
createColumnHeader(java.util.List<FillColumn> fillColumns)
|
protected JRBand |
createDetailBand(java.util.List<FillColumn> fillColumns)
|
protected JRBand |
createGroupFooter(java.lang.String groupName,
java.util.List<FillColumn> fillColumns)
|
protected JRBand |
createGroupHeader(java.lang.String groupName,
java.util.List<FillColumn> fillColumns)
|
protected JRDesignBand |
createPageFooter(java.util.List<FillColumn> fillColumns)
|
protected JRDesignBand |
createSummary(java.util.List<FillColumn> fillColumns)
|
protected JRDesignBand |
createTitle(java.util.List<FillColumn> fillColumns)
|
JRBand |
getBackground()
|
int |
getBottomMargin()
|
int |
getColumnCount()
Gets the number of columns on each page |
RunDirectionEnum |
getColumnDirection()
Specifies whether columns will be filled from left to right or from right to left. |
JRBand |
getColumnFooter()
|
JRBand |
getColumnHeader()
|
int |
getColumnSpacing()
Specifies the space between columns on the same page. |
int |
getColumnWidth()
|
JRDataset[] |
getDatasets()
Returns the datasets of this report. |
JRReportFont |
getDefaultFont()
Returns a default font. |
JRStyle |
getDefaultStyle()
Returns a default style. |
JRBand |
getDetail()
Deprecated. |
JRSection |
getDetailSection()
|
JRField[] |
getFields()
|
JRReportFont[] |
getFonts()
Gets an array of report fonts. |
java.lang.String |
getFormatFactoryClass()
Gets the name of the class implementing the FormatFactory
interface to use with this report. |
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()
|
JRDataset |
getMainDataset()
Returns the main report dataset. |
java.lang.String |
getName()
Gets the report name. |
JRBand |
getNoData()
|
byte |
getOrientation()
Deprecated. |
OrientationEnum |
getOrientationValue()
Specifies whether document pages will be rendered in a portrait or landscape layout. |
JRBand |
getPageFooter()
|
JRBand |
getPageHeader()
|
int |
getPageHeight()
|
int |
getPageWidth()
|
JRParameter[] |
getParameters()
|
JRPropertiesHolder |
getParentProperties()
Returns the parent properties holder, whose properties are used as defaults for this object. |
byte |
getPrintOrder()
Deprecated. |
PrintOrderEnum |
getPrintOrderValue()
Specifies whether columns will be filled horizontally or vertically. |
JRPropertiesMap |
getPropertiesMap()
Returns this object's properties map. |
java.lang.String |
getProperty(java.lang.String name)
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()
|
JRScriptlet[] |
getScriptlets()
|
JRSortField[] |
getSortFields()
|
JRStyle[] |
getStyles()
Gets an array of report styles. |
JRBand |
getSummary()
|
JRReportTemplate[] |
getTemplates()
Returns the list of report templates. |
JRBand |
getTitle()
|
int |
getTopMargin()
|
JRVariable[] |
getVariables()
|
byte |
getWhenNoDataType()
Deprecated. |
WhenNoDataTypeEnum |
getWhenNoDataTypeValue()
Specifies the report behavior in case of empty datasources. |
byte |
getWhenResourceMissingType()
Deprecated. |
WhenResourceMissingTypeEnum |
getWhenResourceMissingTypeValue()
Returns the resource missing handling type. |
boolean |
hasProperties()
Checks whether the object has any properties. |
boolean |
isFloatColumnFooter()
Specifies 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 |
isIgnorePagination()
Decides whether to use pagination when filling the report. |
boolean |
isSummaryNewPage()
Specifies if the summary section will be printed on a separate last page. |
boolean |
isSummaryWithPageHeaderAndFooter()
Specifies if the summary section will be accompanied by the page header and footer. |
boolean |
isTitleNewPage()
Specifies if the title section will be printed on a separate initial page. |
void |
removeProperty(java.lang.String name)
|
protected void |
scaleCellElement(JRElement element,
java.lang.Integer cellWidth,
int scaledCellWidth)
|
void |
setProperty(java.lang.String name,
java.lang.String value)
|
void |
setWhenNoDataType(byte whenNoDataType)
Deprecated. |
void |
setWhenNoDataType(WhenNoDataTypeEnum whenNoDataType)
Sets the report behavior in case of empty datasources. |
void |
setWhenResourceMissingType(byte whenResourceMissingType)
Deprecated. |
void |
setWhenResourceMissingType(WhenResourceMissingTypeEnum whenResourceMissingType)
Sets the resource missing handling type. |
protected JRSection |
wrapBand(JRBand band,
JROrigin origin)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String SUMMARY_GROUP_NAME
protected static final java.lang.String TABLE_SCRIPTLET_NAME
Constructor Detail |
---|
public TableReport(FillContext fillContext, TableReportDataset mainDataset, java.util.List<FillColumn> fillColumns, java.util.Map<JRExpression,BuiltinExpressionEvaluator> builtinEvaluators)
Method Detail |
---|
protected JRBand createDetailBand(java.util.List<FillColumn> fillColumns)
protected JRDesignBand createColumnHeader(java.util.List<FillColumn> fillColumns)
protected JRDesignBand createPageFooter(java.util.List<FillColumn> fillColumns)
protected JRDesignBand createTitle(java.util.List<FillColumn> fillColumns)
protected JRDesignBand createSummary(java.util.List<FillColumn> fillColumns)
protected JRBand createGroupHeader(java.lang.String groupName, java.util.List<FillColumn> fillColumns)
protected JRBand createGroupFooter(java.lang.String groupName, java.util.List<FillColumn> fillColumns)
protected int computeTableWidth(java.util.List<FillColumn> fillColumns)
protected void addSummaryGroup(java.util.List<FillColumn> fillColumns, java.util.Map<JRExpression,BuiltinExpressionEvaluator> builtinEvaluators)
protected JRDesignFrame createCellFrame(Cell cell, int originalWidth, int width, int x, int y)
protected void scaleCellElement(JRElement element, java.lang.Integer cellWidth, int scaledCellWidth)
protected JRSection wrapBand(JRBand band, JROrigin origin)
public JRBand getBackground()
getBackground
in interface JRReport
public int getBottomMargin()
getBottomMargin
in interface JRReport
public int getColumnCount()
JRReport
getColumnCount
in interface JRReport
public JRBand getColumnFooter()
getColumnFooter
in interface JRReport
public JRBand getColumnHeader()
getColumnHeader
in interface JRReport
public int getColumnSpacing()
JRReport
getColumnSpacing
in interface JRReport
public int getColumnWidth()
getColumnWidth
in interface JRReport
public JRDataset[] getDatasets()
JRReport
getDatasets
in interface JRReport
@Deprecated public JRBand getDetail()
getDetail
in interface JRReport
public JRSection getDetailSection()
getDetailSection
in interface JRReport
public JRField[] getFields()
getFields
in interface JRReport
public JRReportFont[] getFonts()
JRReport
getFonts
in interface JRReport
public java.lang.String getFormatFactoryClass()
JRReport
FormatFactory
interface to use with this report.
getFormatFactoryClass
in interface JRReport
public JRGroup[] getGroups()
getGroups
in interface JRReport
public java.lang.String[] getImports()
JRReport
getImports
in interface JRReport
public java.lang.String getLanguage()
JRReport
getLanguage
in interface JRReport
public JRBand getLastPageFooter()
getLastPageFooter
in interface JRReport
public int getLeftMargin()
getLeftMargin
in interface JRReport
public JRDataset getMainDataset()
JRReport
The main report dataset consists of all parameters, fields, variables and groups of the report.
getMainDataset
in interface JRReport
public java.lang.String getName()
JRReport
getName
in interface JRReport
public JRBand getNoData()
getNoData
in interface JRReport
@Deprecated public byte getOrientation()
getOrientation
in interface JRReport
public OrientationEnum getOrientationValue()
JRReport
getOrientationValue
in interface JRReport
OrientationEnum
public JRBand getPageFooter()
getPageFooter
in interface JRReport
public JRBand getPageHeader()
getPageHeader
in interface JRReport
public int getPageHeight()
getPageHeight
in interface JRReport
public int getPageWidth()
getPageWidth
in interface JRReport
public JRParameter[] getParameters()
getParameters
in interface JRReport
@Deprecated public byte getPrintOrder()
getPrintOrder
in interface JRReport
public PrintOrderEnum getPrintOrderValue()
JRReport
getPrintOrderValue
in interface JRReport
PrintOrderEnum
public RunDirectionEnum getColumnDirection()
JRReport
getColumnDirection
in interface JRReport
RunDirectionEnum
public java.lang.String getProperty(java.lang.String name)
JRReport
getProperty
in interface JRReport
name
- the property namepublic java.lang.String[] getPropertyNames()
JRReport
getPropertyNames
in interface JRReport
public JRQuery getQuery()
getQuery
in interface JRReport
public java.lang.String getResourceBundle()
JRReport
getResourceBundle
in interface JRReport
public int getRightMargin()
getRightMargin
in interface JRReport
public java.lang.String getScriptletClass()
getScriptletClass
in interface JRReport
public JRScriptlet[] getScriptlets()
getScriptlets
in interface JRReport
public JRSortField[] getSortFields()
getSortFields
in interface JRReport
public JRStyle[] getStyles()
JRReport
getStyles
in interface JRReport
public JRBand getSummary()
getSummary
in interface JRReport
public JRReportTemplate[] getTemplates()
JRReport
template
.
Templates include styles which can be used in the report.
The order in which the templates are included in the report is important:
getTemplates
in interface JRReport
null
if noneJRTemplate
,
JRParameter.REPORT_TEMPLATES
public JRBand getTitle()
getTitle
in interface JRReport
public int getTopMargin()
getTopMargin
in interface JRReport
public JRVariable[] getVariables()
getVariables
in interface JRReport
@Deprecated public byte getWhenNoDataType()
getWhenNoDataType
in interface JRReport
public WhenNoDataTypeEnum getWhenNoDataTypeValue()
JRReport
getWhenNoDataTypeValue
in interface JRReport
@Deprecated public byte getWhenResourceMissingType()
getWhenResourceMissingType
in interface JRReport
public WhenResourceMissingTypeEnum getWhenResourceMissingTypeValue()
JRReport
getWhenResourceMissingTypeValue
in interface JRReport
public boolean isFloatColumnFooter()
JRReport
isFloatColumnFooter
in interface JRReport
public boolean isIgnorePagination()
JRReport
If set to true
the report will be generated on one long page.
The design attribute can be overridden at fill time by the IS_IGNORE_PAGINATION
parameter.
isIgnorePagination
in interface JRReport
public boolean isSummaryNewPage()
JRReport
isSummaryNewPage
in interface JRReport
public boolean isSummaryWithPageHeaderAndFooter()
JRReport
isSummaryWithPageHeaderAndFooter
in interface JRReport
public boolean isTitleNewPage()
JRReport
isTitleNewPage
in interface JRReport
public void removeProperty(java.lang.String name)
removeProperty
in interface JRReport
public void setProperty(java.lang.String name, java.lang.String value)
setProperty
in interface JRReport
@Deprecated public void setWhenNoDataType(byte whenNoDataType)
setWhenNoDataType
in interface JRReport
public void setWhenNoDataType(WhenNoDataTypeEnum whenNoDataType)
JRReport
setWhenNoDataType
in interface JRReport
@Deprecated public void setWhenResourceMissingType(byte whenResourceMissingType)
setWhenResourceMissingType
in interface JRReport
public void setWhenResourceMissingType(WhenResourceMissingTypeEnum whenResourceMissingType)
JRReport
setWhenResourceMissingType
in interface JRReport
whenResourceMissingType
- the resource missing handling typepublic JRReportFont getDefaultFont()
JRDefaultFontProvider
getDefaultFont
in interface JRDefaultFontProvider
public JRStyle getDefaultStyle()
JRDefaultStyleProvider
getDefaultStyle
in interface JRDefaultStyleProvider
public JRPropertiesHolder getParentProperties()
JRPropertiesHolder
getParentProperties
in interface JRPropertiesHolder
null
if no parentpublic JRPropertiesMap getPropertiesMap()
JRPropertiesHolder
getPropertiesMap
in interface JRPropertiesHolder
public boolean hasProperties()
JRPropertiesHolder
hasProperties
in interface JRPropertiesHolder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |