Package net.sf.paperclips
Class SimplePageDecoration
java.lang.Object
net.sf.paperclips.SimplePageDecoration
- All Implemented Interfaces:
PageDecoration
A PageDecoration which displays the same decoration on every page (ignoring
the page number).
Typically the page number will be in either the header or footer, but not in both. Often the page number is the only thing that changes from page to page in a header. Use this class for a header or footer which does not display the page number.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePrint
(PageNumber pageNumber) Returns a decorator Print for the page with the given page number, or null if no decoration is provided for the given page.boolean
int
hashCode()
-
Constructor Details
-
SimplePageDecoration
Constructs a BasicPageDecoration.- Parameters:
print
- the decoration which will appear on every page.
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
createPrint
Description copied from interface:PageDecoration
Returns a decorator Print for the page with the given page number, or null if no decoration is provided for the given page.- Specified by:
createPrint
in interfacePageDecoration
- Parameters:
pageNumber
- the page number of the page being decorated.- Returns:
- a decorator Print for the page with the given page number, or null if no decoration is provided for the given page.
-