A report band that appears at the bottom of every page. The page-footer is the last band that is printed on a page.
There is an option to suppress the page footer on the first page, and another option does the same for the last page.
If the footer is marked sticky, the footer will even be printed for all sub-report pages.
A page header or footer cannot have subreports.
| Method from org.jfree.report.PageFooter Detail: |
public final SubReport getSubReport(int index) {
throw new IndexOutOfBoundsException("PageFooter cannot have subreports.");
}
Throws an IndexOutOfBoundsException as page-footer cannot have sub-reports. |
public final int getSubReportCount() {
return 0;
}
Returns the number of subreports on this band. This returns zero, as page-bands cannot have subreports. |
public SubReport[] getSubReports() {
return PageFooter.EMPTY_REPORTS;
}
Returns an empty array, as page-footer cannot have subreports. |
public boolean isDisplayOnFirstPage() {
return getStyle().getBooleanStyleProperty(BandStyleKeys.DISPLAY_ON_FIRSTPAGE, false);
}
Returns true if the footer should be shown on page 1, and false otherwise. |
public boolean isDisplayOnLastPage() {
return getStyle().getBooleanStyleProperty(BandStyleKeys.DISPLAY_ON_LASTPAGE, false);
}
Returns true if the footer should be shown on the last page, and false otherwise. |
public boolean isSticky() {
return getStyle().getBooleanStyleProperty(BandStyleKeys.STICKY, false);
}
Returns true if the footer should be shown on all subreports. |
public void setDisplayOnFirstPage(boolean b) {
getStyle().setBooleanStyleProperty(BandStyleKeys.DISPLAY_ON_FIRSTPAGE, b);
}
Defines whether the footer should be shown on the first page. |
public void setDisplayOnLastPage(boolean b) {
getStyle().setBooleanStyleProperty(BandStyleKeys.DISPLAY_ON_LASTPAGE, b);
}
Defines whether the footer should be shown on the last page. |
public void setSticky(boolean b) {
getStyle().setBooleanStyleProperty(BandStyleKeys.STICKY, b);
}
Defines whether the footer should be shown on all subreports. |