Record Class TableRowStyle

java.lang.Object
java.lang.Record
io.leandev.appfuse.report.node.TableRowStyle
Record Components:
cellPadding - 儲存格內距覆寫
topRule - 上線;null 或零線寬表示不畫
bottomRule - 下線;null 繼承表格,零線寬表示不畫

public record TableRowStyle(Length cellPadding, LineStyle topRule, LineStyle bottomRule) extends Record
單列樣式;null 內距/下線繼承表格,上線 null 表示不畫。 線寬為零明確表示不畫線;與 null 的繼承不同。線畫在列邊緣,不增加列高。 可拆列的每個實體片段都使用相同線條與內距。
Since:
4.0.0
  • Constructor Details

    • TableRowStyle

      public TableRowStyle(Length cellPadding, LineStyle topRule, LineStyle bottomRule)
      Creates an instance of a TableRowStyle record class.
      Parameters:
      cellPadding - the value for the cellPadding record component
      topRule - the value for the topRule record component
      bottomRule - the value for the bottomRule record component
  • Method Details

    • inherit

      public static TableRowStyle inherit()
    • noRules

      public static TableRowStyle noRules()
    • withCellPadding

      public TableRowStyle withCellPadding(Length padding)
    • withTopRule

      public TableRowStyle withTopRule(LineStyle rule)
    • withBottomRule

      public TableRowStyle withBottomRule(LineStyle rule)
    • 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.
    • cellPadding

      public Length cellPadding()
      Returns the value of the cellPadding record component.
      Returns:
      the value of the cellPadding record component
    • topRule

      public LineStyle topRule()
      Returns the value of the topRule record component.
      Returns:
      the value of the topRule record component
    • bottomRule

      public LineStyle bottomRule()
      Returns the value of the bottomRule record component.
      Returns:
      the value of the bottomRule record component