|
||||||||||
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.Band
org.pentaho.reporting.engine.classic.core.AbstractRootLevelBand
public abstract class AbstractRootLevelBand
The root-level band is the container that is processed by a report-state. The root-level band processing is atomic - so either the full band is processed or not processed at all.
Field Summary |
---|
Fields inherited from class org.pentaho.reporting.engine.classic.core.Band |
---|
ANONYMOUS_BAND_PREFIX, CONTENT_TYPE |
Fields inherited from class org.pentaho.reporting.engine.classic.core.Element |
---|
ANONYMOUS_ELEMENT_PREFIX |
Method Summary | |
---|---|
void |
addSubReport(int index,
SubReport element)
Attaches a new subreport at the end of the list. |
void |
addSubReport(SubReport element)
Attaches a new subreport at the end of the list. |
Object |
clone()
Clones this band and all elements contained in this band. |
Element |
derive(boolean preserveElementInstanceIds)
Creates a deep copy of this element and regenerates all instance-ids. |
SubReport |
getSubReport(int index)
Returns the subreport at the given index-position. |
int |
getSubReportCount()
Returns the number of subreports attached to this root level band. |
SubReport[] |
getSubReports()
Returns all sub-reports as array. |
void |
removeSubreport(SubReport e)
Removes the given subreport from the list of attached sub-reports. |
Methods inherited from class org.pentaho.reporting.engine.classic.core.Band |
---|
addElement, addElement, addElements, clear, getElement, getElement, getElementArray, getElementCount, isPagebreakAfterPrint, isPagebreakBeforePrint, removeElement, setElementAt, setPagebreakAfterPrint, setPagebreakBeforePrint, toString, unsafeGetElementArray |
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, getReportDefinition, getStyle, getStyleExpression, getStyleExpressions, getTreeLock, setAttribute, setAttributeExpression, setStyleExpression |
Method Detail |
---|
public int getSubReportCount()
getSubReportCount
in interface RootLevelBand
public Object clone() throws CloneNotSupportedException
clone
in interface DataTarget
clone
in class Band
CloneNotSupportedException
- if this band or an element contained in this band does not support cloning.public Element derive(boolean preserveElementInstanceIds) throws CloneNotSupportedException
derive
in class Band
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
- if there was an error while cloning this or any child object.public SubReport getSubReport(int index)
getSubReport
in interface RootLevelBand
index
- the index
IndexOutOfBoundsException
- if there is no such subreport.public void addSubReport(int index, SubReport element)
index
- element
- the subreport, never null.public void addSubReport(SubReport element)
element
- the subreport, never null.public void removeSubreport(SubReport e)
e
- the subreport to be removed.public SubReport[] getSubReports()
getSubReports
in interface RootLevelBand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |