Class SimplePageDecoration
- java.lang.Object
-
- org.eclipse.nebula.paperclips.core.page.SimplePageDecoration
-
- All Implemented Interfaces:
PageDecoration
public class SimplePageDecoration extends java.lang.Object implements 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 Constructor Description SimplePageDecoration(Print print)Constructs a BasicPageDecoration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PrintcreatePrint(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.booleanequals(java.lang.Object obj)inthashCode()
-
-
-
Field Detail
-
print
private final Print print
-
-
Constructor Detail
-
SimplePageDecoration
public SimplePageDecoration(Print print)
Constructs a BasicPageDecoration.- Parameters:
print- the decoration which will appear on every page.
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
createPrint
public Print createPrint(PageNumber pageNumber)
Description copied from interface:PageDecorationReturns a decorator Print for the page with the given page number, or null if no decoration is provided for the given page.- Specified by:
createPrintin 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.
-
-