public class PageFooter extends Band implements RootLevelBand
ANONYMOUS_BAND_PREFIX
ANONYMOUS_ELEMENT_PREFIX
Constructor and Description |
---|
PageFooter()
Constructs a page footer containing no elements.
|
PageFooter(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 footer should be shown on page 1, and false otherwise.
|
boolean |
isDisplayOnLastPage()
Returns true if the footer 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 footer should be shown on the first page.
|
void |
setDisplayOnLastPage(boolean b)
Defines whether the footer 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
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
public PageFooter()
public PageFooter(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 footer is shown on the first page.public boolean isDisplayOnLastPage()
public void setDisplayOnLastPage(boolean b)
b
- a flag indicating whether or not the footer is shown on the first 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
Copyright © 2017 Hitachi Vantara. All rights reserved.