Class StandardTable

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

public class StandardTable extends Object implements Table
The StandardTable class represents a table in a document and implements the Table interface. It provides functionality to manipulate and interact with tables in documents.
  • Constructor Details

    • StandardTable

      public StandardTable(org.docx4j.wml.Tbl tbl)
      Constructs a new StandardTable object with the specified Tbl object.
      Parameters:
      tbl - the Tbl object representing the table
  • Method Details

    • remove

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

      public int indexOf(Table.Row row)
      Description copied from interface: Table
      Returns the index of the given row within the table.
      Specified by:
      indexOf in interface Table
      Parameters:
      row - the row to find the index of
      Returns:
      the index of the row, or -1 if not found
    • addAll

      public void addAll(int index, List<Table.Row> rows)
      Description copied from interface: Table
      Adds all the given rows to the table starting at the specified index.
      Specified by:
      addAll in interface Table
      Parameters:
      index - the index at which to start adding the rows
      rows - the list of rows to add
    • add

      public void add(int index, Table.Row row)
      Description copied from interface: Table
      Adds a row to the table at the specified index.
      Specified by:
      add in interface Table
      Parameters:
      index - the index at which to add the row
      row - the row to add