public class HeaderFooterPolicy extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
log |
Constructor and Description |
---|
HeaderFooterPolicy(SectPr sectPr,
HeaderFooterPolicy previousHF,
RelationshipsPart rels,
BooleanDefaultTrue evenAndOddHeaders)
Figures out the policy for the given section,
and creates any header and footer objects
as required.
|
Modifier and Type | Method and Description |
---|---|
FooterPart |
getDefaultFooter()
If an even footer is present this is the odd footer
otherwise it is both, even and odd footer
|
HeaderPart |
getDefaultHeader()
If an even header is present this is the odd header
otherwise it is both, even and odd header
|
FooterPart |
getEvenFooter() |
HeaderPart |
getEvenHeader() |
FooterPart |
getFirstFooter() |
HeaderPart |
getFirstHeader() |
FooterPart |
getFooter(int pageNumber)
Get the footer that applies to the given
(1 based) page.
|
HeaderPart |
getHeader(int pageNumber)
Get the header that applies to the given
(1 based) page.
|
public HeaderFooterPolicy(SectPr sectPr, HeaderFooterPolicy previousHF, RelationshipsPart rels, BooleanDefaultTrue evenAndOddHeaders)
public HeaderPart getFirstHeader()
public FooterPart getFirstFooter()
public HeaderPart getEvenHeader()
public FooterPart getEvenFooter()
public HeaderPart getDefaultHeader()
public FooterPart getDefaultFooter()
public HeaderPart getHeader(int pageNumber)
pageNumber
- The one based page numberpublic FooterPart getFooter(int pageNumber)
pageNumber
- The one based page numberCopyright © 2007-2019. All Rights Reserved.