Record Class TableRow
java.lang.Object
java.lang.Record
io.leandev.appfuse.report.node.TableRow
- Record Components:
cells- 儲存格;colSpan加上前列跨列佔用必須填滿欄數role- 列角色groupPath- 所屬群組路徑,例如["台北信義門市", "2026-01"];無群組時為空keepWithNext- 是否與下一列保持同頁(群組標題預設為true)splittable- 單列高於整頁時是否允許在列內分頁style- 單列樣式;null沿用既有表格行為recordStart- 是否開始新邏輯紀錄;預設 true,false 延續前一列的紀錄
-
Constructor Summary
ConstructorsConstructorDescriptionTableRow(List<Cell> cells, RowRole role, List<String> groupPath, boolean keepWithNext, boolean splittable) 相容既有五參數建構器TableRow(List<Cell> cells, RowRole role, List<String> groupPath, boolean keepWithNext, boolean splittable, TableRowStyle style, boolean recordStart) Creates an instance of aTableRowrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncells()Returns the value of thecellsrecord component.static TableRow不屬於任何群組的明細列static TableRow由純文字建立不屬於任何群組的明細列final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroupPathrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thekeepWithNextrecord component.static TableRow指定角色與群組路徑的列;群組標題預設與下一列保持同頁booleanReturns the value of therecordStartrecord component.role()Returns the value of therolerecord component.booleanReturns the value of thesplittablerecord component.style()Returns the value of thestylerecord component.final StringtoString()Returns a string representation of this record class.withKeepWithNext(boolean keepWithNext) withRecordStart(boolean recordStart) false 將本列接到上一列的紀錄;啟用表格紀錄上限時整筆不可拆頁withSplittable(boolean splittable) withStyle(TableRowStyle style)
-
Constructor Details
-
TableRow
-
TableRow
public TableRow(List<Cell> cells, RowRole role, List<String> groupPath, boolean keepWithNext, boolean splittable, TableRowStyle style, boolean recordStart) Creates an instance of aTableRowrecord class.- Parameters:
cells- the value for thecellsrecord componentrole- the value for therolerecord componentgroupPath- the value for thegroupPathrecord componentkeepWithNext- the value for thekeepWithNextrecord componentsplittable- the value for thesplittablerecord componentstyle- the value for thestylerecord componentrecordStart- the value for therecordStartrecord component
-
-
Method Details
-
detail
-
detail
-
of
-
withKeepWithNext
-
withSplittable
-
withStyle
-
withRecordStart
false 將本列接到上一列的紀錄;啟用表格紀錄上限時整筆不可拆頁 -
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. -
cells
-
role
-
groupPath
-
keepWithNext
public boolean keepWithNext()Returns the value of thekeepWithNextrecord component.- Returns:
- the value of the
keepWithNextrecord component
-
splittable
public boolean splittable()Returns the value of thesplittablerecord component.- Returns:
- the value of the
splittablerecord component
-
style
-
recordStart
public boolean recordStart()Returns the value of therecordStartrecord component.- Returns:
- the value of the
recordStartrecord component
-