Record Class Section
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.node.Section
- Record Components:
id- 選填識別title- 選填標題,供未來 PDF 書籤使用blocks- 內容pageBreakBefore- 是否在分節前換頁summaryLastPage- 選填的本節最後內容頁摘要;須有文件 PageSummary,限非巢狀 Sectionheader- 分節每頁頁首;限頂層且 pageBreakBefore=true- 分節每頁頁尾;限頂層且 pageBreakBefore=true
- All Implemented Interfaces:
Block
public record Section(String id, String title, List<Block> blocks, boolean pageBreakBefore, PageSummaryOverride summaryLastPage, SectionPageRegion header, SectionPageRegion footer)
extends Record
implements Block
邏輯分節;本身不產生可見內容
- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescription相容既有四參數建構器;不設定分節摘要。Section(String id, String title, List<Block> blocks, boolean pageBreakBefore, PageSummaryOverride summaryLastPage) 保留已發布的五參數建構器。Section(String id, String title, List<Block> blocks, boolean pageBreakBefore, PageSummaryOverride summaryLastPage, SectionPageRegion header, SectionPageRegion footer) Creates an instance of aSectionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionblocks()Returns the value of theblocksrecord component.final booleanIndicates whether some other object is "equal to" this one.footer()Returns the value of thefooterrecord component.final inthashCode()Returns a hash code value for this object.header()Returns the value of theheaderrecord component.id()Returns the value of theidrecord component.booleanReturns the value of thepageBreakBeforerecord component.Returns the value of thesummaryLastPagerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Section
public Section(String id, String title, List<Block> blocks, boolean pageBreakBefore, PageSummaryOverride summaryLastPage) 保留已發布的五參數建構器。 -
Section
-
Section
public Section(String id, String title, List<Block> blocks, boolean pageBreakBefore, PageSummaryOverride summaryLastPage, SectionPageRegion header, SectionPageRegion footer) Creates an instance of aSectionrecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componentblocks- the value for theblocksrecord componentpageBreakBefore- the value for thepageBreakBeforerecord componentsummaryLastPage- the value for thesummaryLastPagerecord componentheader- the value for theheaderrecord componentfooter- the value for thefooterrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
title
-
blocks
-
pageBreakBefore
public boolean pageBreakBefore()Returns the value of thepageBreakBeforerecord component.- Returns:
- the value of the
pageBreakBeforerecord component
-
summaryLastPage
Returns the value of thesummaryLastPagerecord component.- Returns:
- the value of the
summaryLastPagerecord component
-
header
-