F - L-bound for the page section builder itselfpublic abstract class PageSectionBuilder<F extends PageSectionBuilder<F>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Box<Text> |
curRegionBox
The region box that is currently written
|
protected MarginsBuilder |
marginsBuilder
a margins builder
|
protected Length |
minHeight
the minimum height of the page section
|
| Modifier and Type | Method and Description |
|---|---|
F |
allMargins(Length margin)
Set the margin at the top, bottom, left and right.
|
protected abstract PageSection |
build()
For public calls, see buildFooter or buildHeader
|
Footer |
buildFooter() |
Header |
buildHeader() |
F |
content(String string)
Set the text content of the section
|
F |
marginBottom(Length margin)
Set the bottom margin. margin is a length value
|
F |
marginLeft(Length margin)
Set the left margin.
|
F |
marginRight(Length margin)
Set the right margin.
|
F |
marginTop(Length margin)
Set the top margin.
|
F |
minHeight(Length height)
Set the minimum height.
|
F |
styledContent(String text,
TextStyle ts) |
F |
text(Text text) |
protected final MarginsBuilder marginsBuilder
protected Length minHeight
public F allMargins(Length margin)
margin - the margin sizeprotected abstract PageSection build()
public F content(String string)
string - the textpublic F marginBottom(Length margin)
margin - the margin sizepublic F marginLeft(Length margin)
margin - the margin sizepublic F marginRight(Length margin)
margin - the margin sizepublic F marginTop(Length margin)
margin - the margin sizepublic F minHeight(Length height)
height - the height of the footer/headerpublic F styledContent(String text, TextStyle ts)
text - The text to writets - the text stylepublic Header buildHeader()
public Footer buildFooter()
Copyright © 2016–2021. All rights reserved.