|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 String |
HTML_CLASS_COLUMN
|
protected static String |
HTML_CLASS_COLUMN_PREFIX
|
protected static String |
SUMMARY_GROUP_NAME
|
protected static String |
TABLE_SCRIPTLET_NAME
|
| Fields inherited from interface net.sf.jasperreports.engine.JRReport |
|---|
LANGUAGE_GROOVY, LANGUAGE_JAVA |
| Constructor Summary | |
|---|---|
TableReport(FillContext fillContext,
TableComponent table,
TableReportDataset mainDataset,
List<FillColumn> fillColumns,
Map<JRExpression,BuiltinExpressionEvaluator> builtinEvaluators)
|
|
| Method Summary | |
|---|---|
protected void |
addSummaryGroup(List<FillColumn> fillColumns)
|
protected int |
computeTableWidth(List<FillColumn> fillColumns)
|
protected JRDesignExpression |
createBuiltinExpression(BuiltinExpressionEvaluator evaluator)
|
protected JRDesignFrame |
createCellFrame(Cell cell,
int originalWidth,
int width,
int x,
int y)
|
protected JRDesignFrame |
createCellFrame(Cell cell,
int originalWidth,
int width,
int x,
int y,
int columnHashCode)
|
protected JRDesignBand |
createColumnHeader(List<FillColumn> fillColumns)
|
protected JRBand |
createDetailBand(List<FillColumn> fillColumns)
|
protected JRBand |
createGroupFooter(String groupName,
List<FillColumn> fillColumns)
|
protected JRBand |
createGroupHeader(String groupName,
List<FillColumn> fillColumns)
|
protected JRDesignBand |
createPageFooter(List<FillColumn> fillColumns)
|
protected JRDesignBand |
createSummary(List<FillColumn> fillColumns)
|
protected JRDesignBand |
createTitle(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. |
JRStyle |
getDefaultStyle()
Returns a default style. |
JRBand |
getDetail()
Deprecated. |
JRSection |
getDetailSection()
|
protected JRField |
getField(String name)
|
JRField[] |
getFields()
|
String |
getFormatFactoryClass()
Gets the name of the class implementing the FormatFactory
interface to use with this report. |
JRGroup[] |
getGroups()
|
String[] |
getImports()
Gets an array of imports (needed if report expression require additional classes in order to compile). |
String |
getLanguage()
Gets the report language. |
JRBand |
getLastPageFooter()
|
int |
getLeftMargin()
|
JRDataset |
getMainDataset()
Returns the main report dataset. |
String |
getName()
Gets the report name. |
JRBand |
getNoData()
|
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. |
PrintOrderEnum |
getPrintOrderValue()
Specifies whether columns will be filled horizontally or vertically. |
JRPropertiesMap |
getPropertiesMap()
Returns this object's properties map. |
String |
getProperty(String name)
Gets a property value |
String[] |
getPropertyNames()
Gets an array of report properties names. |
JRQuery |
getQuery()
|
String |
getResourceBundle()
Gets the base name of the report associated resource bundle. |
int |
getRightMargin()
|
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()
|
UUID |
getUUID()
|
protected JRVariable |
getVariable(String name)
|
JRVariable[] |
getVariables()
|
WhenNoDataTypeEnum |
getWhenNoDataTypeValue()
Specifies the report behavior in case of empty datasources. |
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(String name)
|
protected void |
scaleCellElement(JRElement element,
Integer cellWidth,
int scaledCellWidth)
|
void |
setProperty(String name,
String value)
|
void |
setWhenNoDataType(WhenNoDataTypeEnum whenNoDataType)
Sets the report behavior in case of empty datasources. |
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 String SUMMARY_GROUP_NAME
protected static final String HTML_CLASS_COLUMN_PREFIX
protected static final String HTML_CLASS_COLUMN
protected static final String TABLE_SCRIPTLET_NAME
| Constructor Detail |
|---|
public TableReport(FillContext fillContext,
TableComponent table,
TableReportDataset mainDataset,
List<FillColumn> fillColumns,
Map<JRExpression,BuiltinExpressionEvaluator> builtinEvaluators)
| Method Detail |
|---|
protected JRDesignExpression createBuiltinExpression(BuiltinExpressionEvaluator evaluator)
protected JRBand createDetailBand(List<FillColumn> fillColumns)
protected JRDesignBand createColumnHeader(List<FillColumn> fillColumns)
protected JRDesignBand createPageFooter(List<FillColumn> fillColumns)
protected JRDesignBand createTitle(List<FillColumn> fillColumns)
protected JRDesignBand createSummary(List<FillColumn> fillColumns)
protected JRBand createGroupHeader(String groupName,
List<FillColumn> fillColumns)
protected JRBand createGroupFooter(String groupName,
List<FillColumn> fillColumns)
protected int computeTableWidth(List<FillColumn> fillColumns)
protected void addSummaryGroup(List<FillColumn> fillColumns)
protected JRDesignFrame createCellFrame(Cell cell,
int originalWidth,
int width,
int x,
int y)
protected JRDesignFrame createCellFrame(Cell cell,
int originalWidth,
int width,
int x,
int y,
int columnHashCode)
protected void scaleCellElement(JRElement element,
Integer cellWidth,
int scaledCellWidth)
protected JRSection wrapBand(JRBand band,
JROrigin origin)
public JRBand getBackground()
getBackground in interface JRReportpublic int getBottomMargin()
getBottomMargin in interface JRReportpublic int getColumnCount()
JRReport
getColumnCount in interface JRReportpublic JRBand getColumnFooter()
getColumnFooter in interface JRReportpublic JRBand getColumnHeader()
getColumnHeader in interface JRReportpublic int getColumnSpacing()
JRReport
getColumnSpacing in interface JRReportpublic int getColumnWidth()
getColumnWidth in interface JRReportpublic JRDataset[] getDatasets()
JRReport
getDatasets in interface JRReport@Deprecated public JRBand getDetail()
public JRSection getDetailSection()
getDetailSection in interface JRReportpublic JRField[] getFields()
getFields in interface JRReportprotected JRField getField(String name)
public String getFormatFactoryClass()
JRReportFormatFactory
interface to use with this report.
getFormatFactoryClass in interface JRReportpublic JRGroup[] getGroups()
getGroups in interface JRReportpublic String[] getImports()
JRReport
getImports in interface JRReportpublic String getLanguage()
JRReport
getLanguage in interface JRReportpublic JRBand getLastPageFooter()
getLastPageFooter in interface JRReportpublic int getLeftMargin()
getLeftMargin in interface JRReportpublic JRDataset getMainDataset()
JRReportThe main report dataset consists of all parameters, fields, variables and groups of the report.
getMainDataset in interface JRReportpublic String getName()
JRReport
getName in interface JRReportpublic JRBand getNoData()
getNoData in interface JRReportpublic OrientationEnum getOrientationValue()
JRReport
getOrientationValue in interface JRReportOrientationEnumpublic JRBand getPageFooter()
getPageFooter in interface JRReportpublic JRBand getPageHeader()
getPageHeader in interface JRReportpublic int getPageHeight()
getPageHeight in interface JRReportpublic int getPageWidth()
getPageWidth in interface JRReportpublic JRParameter[] getParameters()
getParameters in interface JRReportpublic PrintOrderEnum getPrintOrderValue()
JRReport
getPrintOrderValue in interface JRReportPrintOrderEnumpublic RunDirectionEnum getColumnDirection()
JRReport
getColumnDirection in interface JRReportRunDirectionEnumpublic String getProperty(String name)
JRReport
getProperty in interface JRReportname - the property namepublic String[] getPropertyNames()
JRReport
getPropertyNames in interface JRReportpublic JRQuery getQuery()
getQuery in interface JRReportpublic String getResourceBundle()
JRReport
getResourceBundle in interface JRReportpublic int getRightMargin()
getRightMargin in interface JRReportpublic String getScriptletClass()
getScriptletClass in interface JRReportpublic JRScriptlet[] getScriptlets()
getScriptlets in interface JRReportpublic JRSortField[] getSortFields()
getSortFields in interface JRReportpublic JRStyle[] getStyles()
JRReport
getStyles in interface JRReportpublic JRBand getSummary()
getSummary in interface JRReportpublic JRReportTemplate[] getTemplates()
JRReporttemplate.
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 JRReportnull if noneJRTemplate,
JRParameter.REPORT_TEMPLATESpublic JRBand getTitle()
getTitle in interface JRReportpublic int getTopMargin()
getTopMargin in interface JRReportpublic JRVariable[] getVariables()
getVariables in interface JRReportprotected JRVariable getVariable(String name)
public WhenNoDataTypeEnum getWhenNoDataTypeValue()
JRReport
getWhenNoDataTypeValue in interface JRReportpublic WhenResourceMissingTypeEnum getWhenResourceMissingTypeValue()
JRReport
getWhenResourceMissingTypeValue in interface JRReportpublic boolean isFloatColumnFooter()
JRReport
isFloatColumnFooter in interface JRReportpublic 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 JRReportpublic boolean isSummaryNewPage()
JRReport
isSummaryNewPage in interface JRReportpublic boolean isSummaryWithPageHeaderAndFooter()
JRReport
isSummaryWithPageHeaderAndFooter in interface JRReportpublic boolean isTitleNewPage()
JRReport
isTitleNewPage in interface JRReportpublic void removeProperty(String name)
removeProperty in interface JRReport
public void setProperty(String name,
String value)
setProperty in interface JRReportpublic void setWhenNoDataType(WhenNoDataTypeEnum whenNoDataType)
JRReport
setWhenNoDataType in interface JRReportpublic void setWhenResourceMissingType(WhenResourceMissingTypeEnum whenResourceMissingType)
JRReport
setWhenResourceMissingType in interface JRReportwhenResourceMissingType - the resource missing handling typepublic JRStyle getDefaultStyle()
JRDefaultStyleProvider
getDefaultStyle in interface JRDefaultStyleProviderpublic JRPropertiesHolder getParentProperties()
JRPropertiesHolder
getParentProperties in interface JRPropertiesHoldernull if no parentpublic JRPropertiesMap getPropertiesMap()
JRPropertiesHolder
getPropertiesMap in interface JRPropertiesHolderpublic boolean hasProperties()
JRPropertiesHolder
hasProperties in interface JRPropertiesHolderpublic UUID getUUID()
getUUID in interface JRIdentifiable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||