|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.reporting.engine.classic.core.Element
org.pentaho.reporting.engine.classic.core.Section
org.pentaho.reporting.engine.classic.core.states.ReportDefinitionImpl
public class ReportDefinitionImpl
A report definition. This the working copy of the JFreeReport object. This object is not serializable, as it is used internally. This implementation is not intended to be known outside. Whatever you planned to do with it - dont do it!
Its only pupose is to be used and manipulated in the report states, there is no reason to do it outside.
Field Summary |
---|
Fields inherited from class org.pentaho.reporting.engine.classic.core.Element |
---|
ANONYMOUS_ELEMENT_PREFIX |
Constructor Summary | |
---|---|
ReportDefinitionImpl(ReportDefinition report,
PageDefinition pageDefinition)
Creates a report definition from a report object. |
Method Summary | |
---|---|
Object |
clone()
Creates and returns a copy of this object. |
Element |
derive(boolean preserveElementInstanceIds)
Creates a deep copy of this element and regenerates all instance-ids. |
SubReport |
findSubReport(InstanceID reportID)
|
DetailsFooter |
getDetailsFooter()
Returns the details header band. |
DetailsHeader |
getDetailsHeader()
Returns the details header band. |
ReportElement |
getElement(int index)
Returns the element stored add the given index. |
int |
getElementCount()
Returns the number of elements in this section. |
Group |
getGroup(int groupIndex)
Returns the group at the specified index or null, if there is no such group. |
int |
getGroupCount()
Returns the number of groups in this report. |
ItemBand |
getItemBand()
Returns the item band. |
NoDataBand |
getNoDataBand()
Returns the "no-data" band, which is displayed if there is no data available. |
PageDefinition |
getPageDefinition()
Returns the page definition assigned to the report definition. |
PageFooter |
getPageFooter()
Returns the page footer. |
PageHeader |
getPageHeader()
Returns the page header. |
ReportProperties |
getProperties()
Deprecated. Access to the properties should be done using the datarow. |
String |
getQuery()
Returns the query name that should be used when processing the report. |
int |
getQueryLimit()
|
int |
getQueryTimeout()
|
ReportDefinition |
getReportDefinition()
Returns the currently assigned report definition. |
ReportFooter |
getReportFooter()
Returns the report footer. |
ReportHeader |
getReportHeader()
Returns the report header. |
Group |
getRootGroup()
Returns the list of groups for the report. |
StyleSheetCollection |
getStyleSheetCollection()
Returns the stylesheet collection of this report definition. |
Watermark |
getWatermark()
Returns the watermark band. |
void |
setElementAt(int position,
Element element)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.pentaho.reporting.engine.classic.core.ReportElement |
---|
getAttribute, getAttributeExpression, getAttributeExpressionNames, getAttributeExpressionNamespaces, getAttributeNames, getAttributeNamespaces, getAttributes, getId, getMetaData, getName, getObjectID, getParentSection, getStyle, getStyleExpression, getStyleExpressions, getTreeLock, setAttribute, setAttributeExpression, setStyleExpression |
Constructor Detail |
---|
public ReportDefinitionImpl(ReportDefinition report, PageDefinition pageDefinition) throws ReportProcessingException
report
- the report.pageDefinition
- the current page definition.
ReportProcessingException
- if there is a problem cloning.Method Detail |
---|
public int getQueryLimit()
getQueryLimit
in interface ReportDefinition
public int getQueryTimeout()
getQueryTimeout
in interface ReportDefinition
public String getQuery()
ReportDefinition
getQuery
in interface ReportDefinition
public ReportHeader getReportHeader()
getReportHeader
in interface ReportDefinition
public ReportFooter getReportFooter()
getReportFooter
in interface ReportDefinition
public PageHeader getPageHeader()
getPageHeader
in interface ReportDefinition
public PageFooter getPageFooter()
getPageFooter
in interface ReportDefinition
public ItemBand getItemBand()
getItemBand
in interface ReportDefinition
public DetailsHeader getDetailsHeader()
getDetailsHeader
in interface ReportDefinition
public DetailsFooter getDetailsFooter()
getDetailsFooter
in interface ReportDefinition
public Group getRootGroup()
ReportDefinition
getRootGroup
in interface ReportDefinition
public NoDataBand getNoDataBand()
getNoDataBand
in interface ReportDefinition
public ReportProperties getProperties()
getProperties
in interface ReportDefinition
public int getGroupCount()
Every report has at least one group defined.
getGroupCount
in interface ReportDefinition
public Group getGroup(int groupIndex)
getGroup
in interface ReportDefinition
groupIndex
- the group index.
IllegalArgumentException
- if the count is negative.
IndexOutOfBoundsException
- if the count is greater than the number of defined groups.public Object clone() throws CloneNotSupportedException
clone
in interface DataTarget
clone
in class Element
CloneNotSupportedException
- if the object's class does not support the Cloneable
interface.
Subclasses that override the clone
method can also throw this
exception to indicate that an instance cannot be cloned.Cloneable
public Element derive(boolean preserveElementInstanceIds) throws CloneNotSupportedException
Element
derive
in class Element
preserveElementInstanceIds
- defines whether this call generates new instance-ids for the derived elements.
Instance-IDs are used by the report processor to recognize reoccurring elements
and must not changed within the report run. Outside of the report processors
new instance ids should be generated at all times to separate
instances and to make them uniquely identifiable.
CloneNotSupportedException
public StyleSheetCollection getStyleSheetCollection()
getStyleSheetCollection
in interface ReportDefinition
public Watermark getWatermark()
ReportDefinition
getWatermark
in interface ReportDefinition
public PageDefinition getPageDefinition()
ReportDefinition
getPageDefinition
in interface ReportDefinition
public ReportDefinition getReportDefinition()
getReportDefinition
in interface ReportElement
getReportDefinition
in class Element
public void setElementAt(int position, Element element)
setElementAt
in class Section
public int getElementCount()
Section
getElementCount
in class Section
public ReportElement getElement(int index)
Section
getElement
in class Section
index
- the element position within this section
public SubReport findSubReport(InstanceID reportID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |