public abstract class AbstractRootLevelBand extends Band implements RootLevelBand
ANONYMOUS_BAND_PREFIX
ANONYMOUS_ELEMENT_PREFIX
Modifier | Constructor and Description |
---|---|
protected |
AbstractRootLevelBand()
Constructs a new band (initially empty).
|
protected |
AbstractRootLevelBand(boolean pagebreakBefore,
boolean pagebreakAfter)
Constructs a new band with the given pagebreak attributes.
|
Modifier and Type | Method and Description |
---|---|
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.
|
AbstractRootLevelBand |
clone()
Clones this band and all elements contained in this band.
|
AbstractRootLevelBand |
derive(boolean preserveElementInstanceIds)
Creates a deep copy of this element and regenerates all instance-ids.
|
ElementStyleSheet |
getDefaultStyleSheet()
Returns the global stylesheet for all bands.
|
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.
|
addElement, addElement, addElements, clear, getElement, getElement, getElementArray, getElementCount, getLayout, isPagebreakAfterPrint, isPagebreakBeforePrint, removeElement, removeElement, setElementAt, setLayout, setPagebreakAfterPrint, setPagebreakBeforePrint, toString, unsafeGetElementArray
iterator, registerAsChild, unregisterAsChild, unregisterParent, validateLooping
copyAttributes, copyInto, derive, getAttribute, getAttributeExpression, getAttributeExpressionNames, getAttributeExpressionNamespaces, getAttributeExpressions, getAttributeNames, getAttributeNamespaces, getAttributes, getAttributeTyped, getChangeTracker, getChildElementByType, getChildElementsByName, getChildElementsByType, getComputedStyle, getContentBase, getDataSource, getDefinitionSource, getElementContext, getElementType, getElementTypeName, getFirstAttribute, getHRefTarget, getId, getMasterReport, getMetaData, getName, getObjectID, getParent, getParentSection, getReportDefinition, getStyle, getStyleExpression, getStyleExpressions, getTreeLock, isDynamicContent, isVisible, notifyElement, notifyNodeChildAdded, notifyNodeChildRemoved, notifyNodePropertiesChanged, notifyNodePropertiesChanged, notifyNodeStructureChanged, setAttribute, setAttribute, setAttributeExpression, setChangeTracker, setComputedStyle, setDataSource, setDynamicContent, setElementType, setHRefTarget, setId, setName, setParent, setStyleExpression, setVisible, updateChangedFlagInternal, updateInternalChangeFlag
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAttribute, getAttributeExpression, getAttributeExpressionNames, getAttributeExpressionNamespaces, getAttributeNames, getAttributeNamespaces, getAttributes, getAttributeTyped, getChangeTracker, getChildElementByType, getChildElementsByName, getChildElementsByType, getComputedStyle, getElementContext, getElementType, getFirstAttribute, getId, getMetaData, getName, getObjectID, getParentSection, getReportDefinition, getStyle, getStyleExpression, getStyleExpressions, getTreeLock, setAttribute, setAttribute, setAttributeExpression, setComputedStyle, setStyleExpression
forEach, spliterator
protected AbstractRootLevelBand()
protected AbstractRootLevelBand(boolean pagebreakBefore, boolean pagebreakAfter)
pagebreakAfter
- defines, whether a pagebreak should be done after that band was printed.pagebreakBefore
- defines, whether a pagebreak should be done before that band gets printed.public int getSubReportCount()
getSubReportCount
in interface RootLevelBand
public AbstractRootLevelBand clone()
clone
in interface DataTarget
clone
in class Band
public AbstractRootLevelBand derive(boolean preserveElementInstanceIds)
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.public SubReport getSubReport(int index)
getSubReport
in interface RootLevelBand
index
- the indexIndexOutOfBoundsException
- 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
public ElementStyleSheet getDefaultStyleSheet()
Band
getDefaultStyleSheet
in interface ReportElement
getDefaultStyleSheet
in class Band
Copyright © 2017 Hitachi Vantara. All rights reserved.