Record Class TableOptions
java.lang.Object
java.lang.Record
com.nsdev.lettergenerator.model.table.TableOptions
- Record Components:
cellAppearance- optional defaults inherited independently by every cellrowKeepTogether- optional default row split control, null means PREFERrowPolicies- optional body-row overrides, null becomes emptyrowGroups- optional disjoint body-row groups, null becomes empty
public record TableOptions(CellAppearance cellAppearance, Keep rowKeepTogether, List<TableRowPolicy> rowPolicies, List<TableRowGroup> rowGroups)
extends Record
Optional table appearance and body-row page policies. Absent options retain one-millimeter
padding, white quarter-point borders, centered content and a soft keep on every row.
-
Constructor Summary
ConstructorsConstructorDescriptionTableOptions(CellAppearance cellAppearance, Keep rowKeepTogether, List<TableRowPolicy> rowPolicies, List<TableRowGroup> rowGroups) Snapshots row metadata without validating indices or appearance values. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecellAppearancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of therowGroupsrecord component.Returns the value of therowKeepTogetherrecord component.Returns the value of therowPoliciesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TableOptions
public TableOptions(CellAppearance cellAppearance, Keep rowKeepTogether, List<TableRowPolicy> rowPolicies, List<TableRowGroup> rowGroups) Snapshots row metadata without validating indices or appearance values.- Parameters:
cellAppearance- nullable cell appearance defaultsrowKeepTogether- nullable default row keeprowPolicies- nullable body-row overridesrowGroups- nullable disjoint body-row groups
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
cellAppearance
Returns the value of thecellAppearancerecord component.- Returns:
- the value of the
cellAppearancerecord component
-
rowKeepTogether
Returns the value of therowKeepTogetherrecord component.- Returns:
- the value of the
rowKeepTogetherrecord component
-
rowPolicies
Returns the value of therowPoliciesrecord component.- Returns:
- the value of the
rowPoliciesrecord component
-
rowGroups
Returns the value of therowGroupsrecord component.- Returns:
- the value of the
rowGroupsrecord component
-