Class StandardRow

java.lang.Object
pro.verron.officestamper.core.StandardRow
All Implemented Interfaces:
Table.Row

public class StandardRow extends Object implements Table.Row
Represents a standard row in a table. This class provides functionality for manipulating table rows in a document.
  • Constructor Details

    • StandardRow

      public StandardRow(DocxPart part, org.docx4j.wml.Tbl tbl, org.docx4j.wml.Tr tr)
      Constructs a new StandardRow with the specified table row element.
      Parameters:
      part - the document part containing the table
      tbl - the table containing the row
      tr - the table row element to wrap
  • Method Details

    • remove

      public void remove()
      Description copied from interface: Table.Row
      Removes the entire row from the table. This operation is irreversible and will delete all content within the row.
      Specified by:
      remove in interface Table.Row
    • table

      public Table table()
      Description copied from interface: Table.Row
      Returns the table that this row belongs to.
      Specified by:
      table in interface Table.Row
      Returns:
      the Table object.
    • copy

      public Table.Row copy()
      Description copied from interface: Table.Row
      Creates a deep copy of this row.
      Specified by:
      copy in interface Table.Row
      Returns:
      a copy of the Table.Row.
    • removeComment

      public void removeComment(Comment comment)
      Description copied from interface: Table.Row
      Removes a comment from this row.
      Specified by:
      removeComment in interface Table.Row
      Parameters:
      comment - the Comment to remove.
    • hooks

      public List<Hook> hooks()
      Description copied from interface: Table.Row
      Returns the hooks associated with this row.
      Specified by:
      hooks in interface Table.Row
      Returns:
      an Iterable of Hook objects.
    • asTr

      public org.docx4j.wml.Tr asTr()
      Description copied from interface: Table.Row
      Returns the underlying docx4j Tr object.
      Specified by:
      asTr in interface Table.Row
      Returns:
      the Tr object.