com.jrefinery.report
Class PageFooter

java.lang.Object
  extended bycom.jrefinery.report.Element
      extended bycom.jrefinery.report.Band
          extended bycom.jrefinery.report.PageFooter
All Implemented Interfaces:
java.lang.Cloneable, DataTarget, java.io.Serializable

public class PageFooter
extends Band

A report band that appears at the bottom of every page. There is an option to suppress the page footer on the first page, and another option does the same for the last page.

Author:
David Gilbert
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jrefinery.report.Band
CONTENT_TYPE
 
Fields inherited from class com.jrefinery.report.Element
BOTTOM, CENTER, LEFT, MIDDLE, RIGHT, TOP
 
Constructor Summary
PageFooter()
          Constructs a page footer containing no elements.
 
Method Summary
 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.
 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.
 
Methods inherited from class com.jrefinery.report.Band
addElement, addElement, addElements, clone, getBandDefaults, getContentType, getElement, getElement, getElementArray, getElementCount, getElements, getHeight, getLayout, invalidateLayout, registerStyleSheetCollection, removeElement, setHeight, setLayout, toString, unregisterStyleSheetCollection
 
Methods inherited from class com.jrefinery.report.Element
getDataSource, getName, getPaint, getParent, getStyle, getStyleSheetCollection, getValue, isVisible, setDataSource, setName, setPaint, setParent, setStyleSheetCollection, setVisible
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PageFooter

public PageFooter()
Constructs a page footer containing no elements.

Method Detail

isDisplayOnFirstPage

public boolean isDisplayOnFirstPage()
Returns true if the footer should be shown on page 1, and false otherwise.

Returns:
true or false.

setDisplayOnFirstPage

public void setDisplayOnFirstPage(boolean b)
Defines whether the footer should be shown on the first page.

Parameters:
b - a flag indicating whether or not the footer is shown on the first page.

isDisplayOnLastPage

public boolean isDisplayOnLastPage()
Returns true if the footer should be shown on the last page, and false otherwise.

Returns:
true or false.

setDisplayOnLastPage

public void setDisplayOnLastPage(boolean b)
Defines whether the footer should be shown on the last page.

Parameters:
b - a flag indicating whether or not the footer is shown on the first page.