java.lang.Object
com.justifiedsolutions.openpdf.pdf.Section
com.justifiedsolutions.openpdf.pdf.Chapter
public class Chapter extends Section
-
Method Summary
Modifier and Type Method Description boolean
isStartsNewPage()
A Chapter always starts a new page.void
setStartsNewPage(boolean startsNewPage)
If anything other thantrue
is passed, an exception is thrown.Methods inherited from class com.justifiedsolutions.openpdf.pdf.Section
addContent, addSection, equals, getContent, getSectionNumber, getSections, getTitle, hashCode, isDisplaySectionNumber, setDisplaySectionNumber
-
Method Details
-
isStartsNewPage
public boolean isStartsNewPage()A Chapter always starts a new page.- Overrides:
isStartsNewPage
in classSection
- Returns:
true
-
setStartsNewPage
public void setStartsNewPage(boolean startsNewPage)If anything other thantrue
is passed, an exception is thrown.- Overrides:
setStartsNewPage
in classSection
- Parameters:
startsNewPage
- true if the section should start a new page- Throws:
IllegalArgumentException
- iffalse
is passed as an argument
-