Interface Table.Row

All Known Implementing Classes:
StandardRow
Enclosing interface:
Table

public static interface Table.Row
Represents a row within a table that can be manipulated by the office stamper. This interface provides methods for row-level operations such as removal.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.docx4j.wml.Tr
    Returns the underlying docx4j Tr object.
    Creates a deep copy of this row.
    Returns the hooks associated with this row.
    void
    Removes the entire row from the table.
    void
    Removes a comment from this row.
    Returns the table that this row belongs to.
  • Method Details

    • remove

      void remove()
      Removes the entire row from the table. This operation is irreversible and will delete all content within the row.
    • table

      Table table()
      Returns the table that this row belongs to.
      Returns:
      the Table object.
    • copy

      Table.Row copy()
      Creates a deep copy of this row.
      Returns:
      a copy of the Table.Row.
    • removeComment

      void removeComment(Comment comment)
      Removes a comment from this row.
      Parameters:
      comment - the Comment to remove.
    • hooks

      Iterable<Hook> hooks()
      Returns the hooks associated with this row.
      Returns:
      an Iterable of Hook objects.
    • asTr

      org.docx4j.wml.Tr asTr()
      Returns the underlying docx4j Tr object.
      Returns:
      the Tr object.