public class PageHeader extends Band implements RootLevelBand
ANONYMOUS_BAND_PREFIX
ANONYMOUS_ELEMENT_PREFIX
Constructor and Description |
---|
PageHeader()
Constructs a page header.
|
PageHeader(boolean onFirstPage,
boolean onLastPage)
Constructs a page footer containing no elements.
|
Modifier and Type | Method and Description |
---|---|
ElementStyleSheet |
getDefaultStyleSheet()
Returns the global stylesheet for all bands.
|
SubReport |
getSubReport(int index)
Throws an IndexOutOfBoundsException as page-footer cannot have sub-reports.
|
int |
getSubReportCount()
Returns the number of subreports on this band.
|
SubReport[] |
getSubReports()
Returns an empty array, as page-footer cannot have subreports.
|
boolean |
isDisplayOnFirstPage()
Returns true if the header should be shown on page 1, and false otherwise.
|
boolean |
isDisplayOnLastPage()
Returns true if the header should be shown on the last page, and false otherwise.
|
boolean |
isSticky()
Returns true if the footer should be shown on all subreports.
|
void |
setDisplayOnFirstPage(boolean b)
Defines whether the header should be shown on the first page.
|
void |
setDisplayOnLastPage(boolean b)
Defines whether the header should be shown on the last page.
|
void |
setSticky(boolean b)
Defines whether the footer should be shown on all subreports.
|
addElement, addElement, addElements, clear, clone, derive, getElement, getElement, getElementArray, getElementCount, getLayout, isPagebreakAfterPrint, isPagebreakBeforePrint, removeElement, removeElement, setElementAt, setLayout, setPagebreakAfterPrint, setPagebreakBeforePrint, toString, unsafeGetElementArray
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, notifyNodeChildAdded, notifyNodeChildRemoved, notifyNodePropertiesChanged, notifyNodePropertiesChanged, notifyNodeStructureChanged, setAttribute, setAttribute, setAttributeExpression, setComputedStyle, setDataSource, setDynamicContent, setElementType, setHRefTarget, setId, setName, setStyleExpression, setVisible
equals, 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
public PageHeader()
public PageHeader(boolean onFirstPage, boolean onLastPage)
onFirstPage
- defines, whether the page header will be printed on the first pageonLastPage
- defines, whether the page footer will be printed on the last page.public boolean isDisplayOnFirstPage()
public void setDisplayOnFirstPage(boolean b)
b
- a flag indicating whether or not the header is shown on the first page.public boolean isDisplayOnLastPage()
public void setDisplayOnLastPage(boolean b)
b
- a flag indicating whether or not the header is shown on the last page.public final int getSubReportCount()
getSubReportCount
in interface RootLevelBand
public final SubReport getSubReport(int index)
getSubReport
in interface RootLevelBand
index
- the index.public boolean isSticky()
public void setSticky(boolean b)
b
- a flag indicating whether or not the footer is shown on the first page.public SubReport[] getSubReports()
getSubReports
in interface RootLevelBand
public ElementStyleSheet getDefaultStyleSheet()
Band
getDefaultStyleSheet
in interface ReportElement
getDefaultStyleSheet
in class Band