Record Class TableOptions

java.lang.Object
java.lang.Record
com.nsdev.lettergenerator.model.table.TableOptions
Record Components:
cellAppearance - optional defaults inherited independently by every cell
rowKeepTogether - optional default row split control, null means PREFER
rowPolicies - optional body-row overrides, null becomes empty
rowGroups - 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 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 defaults
      rowKeepTogether - nullable default row keep
      rowPolicies - nullable body-row overrides
      rowGroups - nullable disjoint body-row groups
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • cellAppearance

      public CellAppearance cellAppearance()
      Returns the value of the cellAppearance record component.
      Returns:
      the value of the cellAppearance record component
    • rowKeepTogether

      public Keep rowKeepTogether()
      Returns the value of the rowKeepTogether record component.
      Returns:
      the value of the rowKeepTogether record component
    • rowPolicies

      public List<TableRowPolicy> rowPolicies()
      Returns the value of the rowPolicies record component.
      Returns:
      the value of the rowPolicies record component
    • rowGroups

      public List<TableRowGroup> rowGroups()
      Returns the value of the rowGroups record component.
      Returns:
      the value of the rowGroups record component