public class TableReport extends java.lang.Object implements JRReport
| Modifier and Type | Class and Description |
|---|---|
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 static class |
TableReport.TableIndexProperties |
protected class |
TableReport.TitleCreator |
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
HTML_CLASS_CELL |
protected static java.lang.String |
HTML_CLASS_CELL_PREFIX |
static java.lang.String |
PROPERTY_COLUMN_CONDITIONALLY_FORMATTABLE
Deprecated.
To be removed.
|
static java.lang.String |
PROPERTY_COLUMN_FIELD
Column property that specifies the field to be used for sorting, filtering and conditional formatting
|
static java.lang.String |
PROPERTY_COLUMN_FILTERABLE
Column property that enables/disables filtering
It defaults to
true |
static java.lang.String |
PROPERTY_COLUMN_SORTABLE
Column property that enables/disables sorting
It defaults to
true |
static java.lang.String |
PROPERTY_COLUMN_VARIABLE
Column property that specifies the variable to be used for sorting, filtering and conditional formatting
|
static java.lang.String |
PROPERTY_DOWN_ARROW_CHAR
Global property that specifies the character to be used on the column header when the tables's column is sorted descending
|
static java.lang.String |
PROPERTY_ICON_FONT
Global property that specifies the font to be used for the icons on the column header
|
static java.lang.String |
PROPERTY_UP_ARROW_CHAR
Global property that specifies the character to be used on the column header when the tables's column is sorted ascending
|
protected static java.lang.String |
SUMMARY_GROUP_NAME |
static java.lang.String |
TABLE_HEADER_ICON_LABEL_MATCHER_EXPORT_KEY |
static java.lang.String |
TABLE_HEADER_LABEL_MATCHER_EXPORT_KEY |
protected static java.lang.String |
TABLE_SCRIPTLET_NAME |
LANGUAGE_GROOVY, LANGUAGE_JAVA| Constructor and Description |
|---|
TableReport(FillContext fillContext,
TableComponent table,
TableReportDataset mainDataset,
java.util.List<FillColumn> fillColumns,
BuiltinExpressionEvaluatorFactory builtinEvaluatorFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addSummaryGroup(java.util.List<FillColumn> fillColumns) |
protected int |
computeTableWidth(java.util.List<FillColumn> fillColumns) |
protected JRElement |
createCell(JRElementGroup parentGroup,
Cell cell,
int originalWidth,
int width,
int x,
int y,
java.lang.Integer columnHashCode,
boolean forceFrame) |
protected JRElement |
createCellElement(JRElementGroup elementGroup,
Cell cell,
int originalWidth,
int width,
int x,
int y,
java.lang.Integer columnHashCode) |
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.
|
JRStyle |
getDefaultStyle()
Returns a default style.
|
JRBand |
getDetail()
Deprecated.
|
JRSection |
getDetailSection() |
protected JRField |
getField(java.lang.String name) |
JRField[] |
getFields() |
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() |
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.
|
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() |
java.util.UUID |
getUUID() |
protected JRVariable |
getVariable(java.lang.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(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 |
setTableInstanceIndex(int instanceIndex) |
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) |
public static final java.lang.String PROPERTY_UP_ARROW_CHAR
public static final java.lang.String PROPERTY_DOWN_ARROW_CHAR
public static final java.lang.String PROPERTY_ICON_FONT
public static final java.lang.String PROPERTY_COLUMN_FIELD
public static final java.lang.String PROPERTY_COLUMN_VARIABLE
public static final java.lang.String PROPERTY_COLUMN_SORTABLE
It defaults to true
public static final java.lang.String PROPERTY_COLUMN_FILTERABLE
It defaults to true
public static final java.lang.String PROPERTY_COLUMN_CONDITIONALLY_FORMATTABLE
It defaults to true
protected static final java.lang.String SUMMARY_GROUP_NAME
protected static final java.lang.String HTML_CLASS_CELL_PREFIX
protected static final java.lang.String HTML_CLASS_CELL
public static final java.lang.String TABLE_HEADER_LABEL_MATCHER_EXPORT_KEY
public static final java.lang.String TABLE_HEADER_ICON_LABEL_MATCHER_EXPORT_KEY
protected static final java.lang.String TABLE_SCRIPTLET_NAME
public TableReport(FillContext fillContext, TableComponent table, TableReportDataset mainDataset, java.util.List<FillColumn> fillColumns, BuiltinExpressionEvaluatorFactory builtinEvaluatorFactory)
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)
protected JRElement createCell(JRElementGroup parentGroup, Cell cell, int originalWidth, int width, int x, int y, java.lang.Integer columnHashCode, boolean forceFrame)
protected JRElement createCellElement(JRElementGroup elementGroup, Cell cell, int originalWidth, int width, int x, int y, java.lang.Integer columnHashCode)
protected void scaleCellElement(JRElement element, java.lang.Integer cellWidth, int scaledCellWidth)
public JRBand getBackground()
getBackground in interface JRReportpublic int getBottomMargin()
getBottomMargin in interface JRReportpublic int getColumnCount()
JRReportgetColumnCount in interface JRReportpublic JRBand getColumnFooter()
getColumnFooter in interface JRReportpublic JRBand getColumnHeader()
getColumnHeader in interface JRReportpublic int getColumnSpacing()
JRReportgetColumnSpacing in interface JRReportpublic int getColumnWidth()
getColumnWidth in interface JRReportpublic JRDataset[] getDatasets()
JRReportgetDatasets in interface JRReport@Deprecated public JRBand getDetail()
public JRSection getDetailSection()
getDetailSection in interface JRReportprotected JRField getField(java.lang.String name)
public java.lang.String getFormatFactoryClass()
JRReportFormatFactory
interface to use with this report.getFormatFactoryClass in interface JRReportpublic java.lang.String[] getImports()
JRReportgetImports in interface JRReportpublic java.lang.String getLanguage()
JRReportgetLanguage 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 java.lang.String getName()
JRReportpublic OrientationEnum getOrientationValue()
JRReportgetOrientationValue 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()
JRReportgetPrintOrderValue in interface JRReportPrintOrderEnumpublic RunDirectionEnum getColumnDirection()
JRReportgetColumnDirection in interface JRReportRunDirectionEnumpublic java.lang.String getProperty(java.lang.String name)
JRReportgetProperty in interface JRReportname - the property namepublic java.lang.String[] getPropertyNames()
JRReportgetPropertyNames in interface JRReportpublic java.lang.String getResourceBundle()
JRReportgetResourceBundle in interface JRReportpublic int getRightMargin()
getRightMargin in interface JRReportpublic java.lang.String getScriptletClass()
getScriptletClass in interface JRReportpublic JRScriptlet[] getScriptlets()
getScriptlets in interface JRReportpublic JRSortField[] getSortFields()
getSortFields in interface JRReportpublic JRStyle[] getStyles()
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 int getTopMargin()
getTopMargin in interface JRReportpublic JRVariable[] getVariables()
getVariables in interface JRReportprotected JRVariable getVariable(java.lang.String name)
public WhenNoDataTypeEnum getWhenNoDataTypeValue()
JRReportgetWhenNoDataTypeValue in interface JRReportpublic WhenResourceMissingTypeEnum getWhenResourceMissingTypeValue()
JRReportgetWhenResourceMissingTypeValue in interface JRReportpublic boolean isFloatColumnFooter()
JRReportisFloatColumnFooter 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()
JRReportisSummaryNewPage in interface JRReportpublic boolean isSummaryWithPageHeaderAndFooter()
JRReportisSummaryWithPageHeaderAndFooter in interface JRReportpublic boolean isTitleNewPage()
JRReportisTitleNewPage in interface JRReportpublic void removeProperty(java.lang.String name)
removeProperty in interface JRReportpublic void setProperty(java.lang.String name,
java.lang.String value)
setProperty in interface JRReportpublic void setWhenNoDataType(WhenNoDataTypeEnum whenNoDataType)
JRReportsetWhenNoDataType in interface JRReportpublic void setWhenResourceMissingType(WhenResourceMissingTypeEnum whenResourceMissingType)
JRReportsetWhenResourceMissingType in interface JRReportwhenResourceMissingType - the resource missing handling typepublic JRStyle getDefaultStyle()
JRDefaultStyleProvidergetDefaultStyle in interface JRDefaultStyleProviderpublic JRPropertiesHolder getParentProperties()
JRPropertiesHoldergetParentProperties in interface JRPropertiesHoldernull if no parentpublic JRPropertiesMap getPropertiesMap()
JRPropertiesHoldergetPropertiesMap in interface JRPropertiesHolderpublic boolean hasProperties()
JRPropertiesHolderhasProperties in interface JRPropertiesHolderpublic java.util.UUID getUUID()
getUUID in interface JRIdentifiablepublic void setTableInstanceIndex(int instanceIndex)
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com